diff options
author | Joao Martins <joao.m.martins@oracle.com> | 2024-02-02 13:34:12 +0000 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-02-06 11:31:45 -0400 |
commit | 02a8c61a8b06a4a082b58c3e643b28036c6be60f (patch) | |
tree | 030721d05f6ef59c436cd2e6961d0af4f1b0fe1a /tools/testing/selftests/bpf/prog_tests/recursion.c | |
parent | 407fc184f0e0bfde61026d6ce3fb1e70a15159a3 (diff) |
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/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions