diff options
author | Vipin Sharma <vipinsh@google.com> | 2025-07-07 22:47:14 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-08-19 07:39:10 -0700 |
commit | 6777885605e1538bd8126360c62669c4615690c1 (patch) | |
tree | 2007718e341d6c236da8522d98d8f6bfb26b77f7 /net/unix/af_unix.c | |
parent | c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9 (diff) |
KVM: x86/mmu: Track possible NX huge pages separately for TDP vs. Shadow MMU
Track possible NX huge pages for the TDP MMU separately from Shadow MMUs
in anticipation of doing recovery for the TDP MMU while holding mmu_lock
for read instead of write.
Use a small structure to hold the list of pages along with the number of
pages/entries in the list, as relying on kvm->stat.nx_lpage_splits to
calculating the number of pages to recover would result in over-zapping
when both TDP and Shadow MMUs are active.
Suggested-by: Sean Christopherson <seanjc@google.com>
Suggested-by: David Matlack <dmatlack@google.com>
Signed-off-by: Vipin Sharma <vipinsh@google.com>
Co-developed-by: James Houghton <jthoughton@google.com>
Signed-off-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20250707224720.4016504-2-jthoughton@google.com
[sean: rewrite changelog, use #ifdef instead of dummy KVM_TDP_MMU #define]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions