diff options
author | 2024-02-02 13:34:12 +0000 | |
---|---|---|
committer | 2024-02-06 11:31:45 -0400 | |
commit | 02a8c61a8b06a4a082b58c3e643b28036c6be60f (patch) | |
tree | 030721d05f6ef59c436cd2e6961d0af4f1b0fe1a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommufd/selftest: Refactor dirty bitmap tests (diff) | |
download | wireguard-linux-02a8c61a8b06a4a082b58c3e643b28036c6be60f.tar.xz wireguard-linux-02a8c61a8b06a4a082b58c3e643b28036c6be60f.zip |
iommufd/selftest: Refactor mock_domain_read_and_clear_dirty()
Move the clearing of the dirty bit of the mock domain into
mock_domain_test_and_clear_dirty() helper, simplifying the caller
function.
Additionally, rework the mock_domain_read_and_clear_dirty() loop to
iterate over a potentially variable IO page size. No functional change
intended with the loop refactor.
This is in preparation for dirty tracking support for IOMMU hugepage mock
domains.
Link: https://lore.kernel.org/r/20240202133415.23819-7-joao.m.martins@oracle.com
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions