diff options
author | Ben Gardon <bgardon@google.com> | 2020-10-14 21:26:45 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-22 01:17:01 +0300 |
commit | 2f2fad0897cbfda4e384a7b9eab73654974015ac (patch) | |
tree | 2a240ade0144f4efd8ad877b02f6e08aec260aa1 /arch/x86/kvm/irq_comm.c | |
parent | 02c00b3a2f7e86203d878ff432a5a19876049db6 (diff) | |
download | linux-2f2fad0897cbfda4e384a7b9eab73654974015ac.tar.xz |
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:
https://linux-review.googlesource.com/c/virt/kvm/kvm/+/2538
Signed-off-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/irq_comm.c')
0 files changed, 0 insertions, 0 deletions