diff options
author | 2025-02-04 00:40:35 +0000 | |
---|---|---|
committer | 2025-02-14 07:17:33 -0800 | |
commit | 9fb13ba6b5ff9649f4283724ed75828d8a53cf3b (patch) | |
tree | 7f735713c8676f36d91b2d78af12fa2c55c7db1f /scripts/lib/kdoc/kdoc_files.py | |
parent | KVM: x86/mmu: Only check gfn age in shadow MMU if indirect_shadow_pages > 0 (diff) | |
download | linux-rng-9fb13ba6b5ff9649f4283724ed75828d8a53cf3b.tar.xz linux-rng-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 <jthoughton@google.com>
Acked-by: Yu Zhao <yuzhao@google.com>
Reviewed-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20250204004038.1680123-9-jthoughton@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions