aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-02-04 00:40:35 +0000
committerSean Christopherson <[email protected]>2025-02-14 15:17:33 +0000
commit9fb13ba6b5ff9649f4283724ed75828d8a53cf3b (patch)
tree7f735713c8676f36d91b2d78af12fa2c55c7db1f /tools/testing/selftests/net/lib/py/utils.py
parentKVM: x86/mmu: Only check gfn age in shadow MMU if indirect_shadow_pages > 0 (diff)
downloadkernel-9fb13ba6b5ff9649f4283724ed75828d8a53cf3b.tar.gz
kernel-9fb13ba6b5ff9649f4283724ed75828d8a53cf3b.zip
KVM: x86/mmu: Refactor low level rmap helpers to prep for walking w/o mmu_lock
Refactor the pte_list and rmap code to always read and write rmap_head->val exactly once, e.g. by collecting changes in a local variable and then propagating those changes back to rmap_head->val as appropriate. This will allow implementing a per-rmap rwlock (of sorts) by adding a LOCKED bit into the rmap value alongside the MANY bit. Signed-off-by: James Houghton <[email protected]> Acked-by: Yu Zhao <[email protected]> Reviewed-by: James Houghton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions