aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-07-15 23:21:05 +0000
committerPaolo Bonzini <[email protected]>2022-07-28 13:22:23 -0400
commit65e3b446bcceaac7448cb25a2a5bf4adbcf25fe6 (patch)
treedd5e5776e0af18ba40210e94f8cca7209cb951c5 /scripts/gdb/linux/mm.py
parenta8ac499bb6abbd55fe60f1dc2d053f4b5b13aa73 (diff)
KVM: x86/mmu: Document the "rules" for using host_pfn_mapping_level()
Add a comment to document how host_pfn_mapping_level() can be used safely, as the line between safe and dangerous is quite thin. E.g. if KVM were to ever support in-place promotion to create huge pages, consuming the level is safe if the caller holds mmu_lock and checks that there's an existing _leaf_ SPTE, but unsafe if the caller only checks that there's a non-leaf SPTE. Opportunistically tweak the existing comments to explicitly document why KVM needs to use READ_ONCE(). No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions