linux_dsm_epyc7002/arch/x86/kvm/mmu
Ben Gardon 29cf0f5007 kvm: x86/mmu: NX largepage recovery for TDP MMU
When KVM maps a largepage backed region at a lower level in order to
make it executable (i.e. NX large page shattering), it reduces the TLB
performance of that region. In order to avoid making this degradation
permanent, KVM must periodically reclaim shattered NX largepages by
zapping them and allowing them to be rebuilt in the page fault handler.

With this patch, the TDP MMU does not respect KVM's rate limiting on
reclaim. It traverses the entire TDP structure every time. This will be
addressed in a future patch.

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>
Message-Id: <20201014182700.2888246-21-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-23 03:42:16 -04:00
..
mmu_audit.c KVM: x86/mmu: Rename page_header() to to_shadow_page() 2020-07-08 16:21:55 -04:00
mmu_internal.h kvm: x86/mmu: NX largepage recovery for TDP MMU 2020-10-23 03:42:16 -04:00
mmu.c kvm: x86/mmu: NX largepage recovery for TDP MMU 2020-10-23 03:42:16 -04:00
mmutrace.h kvm: x86/mmu: Add TDP MMU PF handler 2020-10-23 03:42:04 -04:00
page_track.c KVM: x86/mmu: Add MMU-internal header 2020-07-08 16:21:54 -04:00
paging_tmpl.h kvm: x86/mmu: Remove disallowed_hugepage_adjust shadow_walk_iterator arg 2020-10-21 18:17:02 -04:00
spte.c KVM: mmu: extract spte.h and spte.c 2020-10-21 18:16:59 -04:00
spte.h KVM: mmu: extract spte.h and spte.c 2020-10-21 18:16:59 -04:00
tdp_iter.c kvm: x86/mmu: Support zapping SPTEs in the TDP MMU 2020-10-21 18:17:02 -04:00
tdp_iter.h kvm: x86/mmu: Support dirty logging for the TDP MMU 2020-10-23 03:42:13 -04:00
tdp_mmu.c kvm: x86/mmu: NX largepage recovery for TDP MMU 2020-10-23 03:42:16 -04:00
tdp_mmu.h kvm: x86/mmu: Support MMIO in the TDP MMU 2020-10-23 03:42:15 -04:00