linux/arch/x86/kvm/mmu
Sean Christopherson eeb87272a3 KVM: x86/mmu: Don't rely on page-track mechanism to flush on memslot change
Call kvm_mmu_zap_all_fast() directly when flushing a memslot instead of
bouncing through the page-track mechanism.  KVM (unfortunately) needs to
zap and flush all page tables on memslot DELETE/MOVE irrespective of
whether KVM is shadowing guest page tables.

This will allow changing KVM to register a page-track notifier on the
first shadow root allocation, and will also allow deleting the misguided
kvm_page_track_flush_slot() hook itself once KVM-GT also moves to a
different method for reacting to memslot changes.

No functional change intended.

Cc: Yan Zhao <yan.y.zhao@intel.com>
Link: https://lore.kernel.org/r/20221110014821.1548347-2-seanjc@google.com
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Link: https://lore.kernel.org/r/20230729013535.1070024-14-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-08-31 13:49:00 -04:00
..
mmu_internal.h KVM: x86/mmu: Use BUILD_BUG_ON_INVALID() for KVM_MMU_WARN_ON() stub 2023-08-31 13:48:48 -04:00
mmu.c KVM: x86/mmu: Don't rely on page-track mechanism to flush on memslot change 2023-08-31 13:49:00 -04: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: x86/mmu: Convert "runtime" WARN_ON() assertions to WARN_ON_ONCE() 2023-08-31 13:48:44 -04:00
paging_tmpl.h KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode without PAE enabled 2023-08-31 13:48:47 -04:00
spte.c KVM: x86/mmu: Convert "runtime" WARN_ON() assertions to WARN_ON_ONCE() 2023-08-31 13:48:44 -04:00
spte.h KVM: x86/mmu: Rename MMU_WARN_ON() to KVM_MMU_WARN_ON() 2023-08-31 13:48:43 -04:00
tdp_iter.c KVM: x86/mmu: Convert "runtime" WARN_ON() assertions to WARN_ON_ONCE() 2023-08-31 13:48:44 -04:00
tdp_iter.h KVM: x86/mmu: Atomically clear SPTE dirty state in the clear-dirty-log flow 2023-04-04 12:37:30 -07:00
tdp_mmu.c KVM: x86/mmu: Convert "runtime" WARN_ON() assertions to WARN_ON_ONCE() 2023-08-31 13:48:44 -04:00
tdp_mmu.h KVM: x86/mmu: Pivot on "TDP MMU enabled" to check if active MMU is TDP MMU 2022-12-29 15:33:25 -05:00