Commit eeb8727
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>1 parent db0d70e commit eeb8727
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6159 | 6159 | | |
6160 | 6160 | | |
6161 | 6161 | | |
6162 | | - | |
6163 | | - | |
6164 | | - | |
6165 | | - | |
6166 | | - | |
6167 | | - | |
6168 | | - | |
6169 | 6162 | | |
6170 | 6163 | | |
6171 | 6164 | | |
| |||
6183 | 6176 | | |
6184 | 6177 | | |
6185 | 6178 | | |
6186 | | - | |
6187 | 6179 | | |
6188 | 6180 | | |
6189 | 6181 | | |
| |||
6711 | 6703 | | |
6712 | 6704 | | |
6713 | 6705 | | |
| 6706 | + | |
| 6707 | + | |
6714 | 6708 | | |
6715 | 6709 | | |
6716 | 6710 | | |
| |||
0 commit comments