linux/arch/x86/kvm/mmu
Paolo Bonzini 6c7b2202e4 KVM: x86: avoid memslot check in NX hugepage recovery if it cannot succeed
Since gfn_to_memslot() is relatively expensive, it helps to
skip it if it the memslot cannot possibly have dirty logging
enabled.  In order to do this, add to struct kvm a counter
of the number of log-page memslots.  While the correct value
can only be read with slots_lock taken, the NX recovery thread
is content with using an approximate value.  Therefore, the
counter is an atomic_t.

Based on https://lore.kernel.org/kvm/20221027200316.2221027-2-dmatlack@google.com/
by David Matlack.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-11-18 11:30:12 -05:00
..
mmu_internal.h KVM: x86/mmu: Add helper to convert SPTE value to its shadow page 2022-11-09 12:31:33 -05:00
mmu.c KVM: x86: avoid memslot check in NX hugepage recovery if it cannot succeed 2022-11-18 11:30:12 -05:00
mmutrace.h KVM: x86/mmu: Add RET_PF_CONTINUE to eliminate bool+int* "returns" 2022-05-12 09:51:42 -04:00
page_track.c KVM: use __vcalloc for very large allocations 2022-03-08 09:30:57 -05:00
paging_tmpl.h KVM: x86/mmu: Rename NX huge pages fields/functions for consistency 2022-11-09 12:31:31 -05:00
spte.c KVM: x86/mmu: Properly account NX huge page workaround for nonpaging MMUs 2022-11-09 12:31:32 -05:00
spte.h KVM: x86/mmu: Add helper to convert SPTE value to its shadow page 2022-11-09 12:31:33 -05:00
tdp_iter.c KVM: x86/mmu: Don't bottom out on leafs when zapping collapsible SPTEs 2022-07-28 13:22:24 -04:00
tdp_iter.h KVM: x86/mmu: Don't bottom out on leafs when zapping collapsible SPTEs 2022-07-28 13:22:24 -04:00
tdp_mmu.c KVM: x86/mmu: simplify kvm_tdp_mmu_map flow when guest has to retry 2022-11-17 11:10:25 -05:00
tdp_mmu.h KVM: x86/mmu: Add helper to convert SPTE value to its shadow page 2022-11-09 12:31:33 -05:00