diff options
author | Joao Martins <[email protected]> | 2024-02-02 13:34:15 +0000 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-02-06 11:31:46 -0400 |
commit | 4bbcbc6ea2fa379632a24c14cfb47aa603816ac6 (patch) | |
tree | 5b3c81d63f323e4e6fa40831acf52b95998f5fc3 /scripts/generate_rust_analyzer.py | |
parent | fe13166f0562117c42fc60a109e664a914523e63 (diff) |
iommufd/iova_bitmap: Consider page offset for the pages to be pinned
For small bitmaps that aren't PAGE_SIZE aligned *and* that are less than
512 pages in bitmap length, use an extra page to be able to cover the
entire range e.g. [1M..3G] which would be iterated more efficiently in a
single iteration, rather than two.
Fixes: b058ea3ab5af ("vfio/iova_bitmap: refactor iova_bitmap_set() to better handle page boundaries")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joao Martins <[email protected]>
Tested-by: Avihai Horon <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions