path: root/virt
diff options
authorBen Gardon <>2020-10-14 20:26:45 +0200
committerPaolo Bonzini <>2020-10-21 18:17:01 -0400
commit2f2fad0897cbfda4e384a7b9eab73654974015ac (patch)
tree2a240ade0144f4efd8ad877b02f6e08aec260aa1 /virt
parent02c00b3a2f7e86203d878ff432a5a19876049db6 (diff)
kvm: x86/mmu: Add functions to handle changed TDP SPTEs
The existing bookkeeping done by KVM when a PTE is changed is spread around several functions. This makes it difficult to remember all the stats, bitmaps, and other subsystems that need to be updated whenever a PTE is modified. When a non-leaf PTE is marked non-present or becomes a leaf PTE, page table memory must also be freed. To simplify the MMU and facilitate the use of atomic operations on SPTEs in future patches, create functions to handle some of the bookkeeping required as a result of a change. Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell machine. This series introduced no new failures. This series can be viewed in Gerrit at: Signed-off-by: Ben Gardon <> Signed-off-by: Paolo Bonzini <>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions