Skip to content

Commit a2ae162

Browse files
Xiao GuangrongGleb Natapov
authored andcommitted
KVM: MMU: drop unnecessary kvm_reload_remote_mmus
It is the responsibility of kvm_mmu_zap_all that keeps the consistent of mmu and tlbs. And it is also unnecessary after zap all mmio sptes since no mmio spte exists on root shadow page and it can not be cached into tlb Signed-off-by: Xiao Guangrong <[email protected]> Reviewed-by: Marcelo Tosatti <[email protected]> Signed-off-by: Gleb Natapov <[email protected]>
1 parent 758ccc8 commit a2ae162

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7060,16 +7060,13 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
70607060
* If memory slot is created, or moved, we need to clear all
70617061
* mmio sptes.
70627062
*/
7063-
if ((change == KVM_MR_CREATE) || (change == KVM_MR_MOVE)) {
7063+
if ((change == KVM_MR_CREATE) || (change == KVM_MR_MOVE))
70647064
kvm_mmu_zap_mmio_sptes(kvm);
7065-
kvm_reload_remote_mmus(kvm);
7066-
}
70677065
}
70687066

70697067
void kvm_arch_flush_shadow_all(struct kvm *kvm)
70707068
{
70717069
kvm_mmu_zap_all(kvm);
7072-
kvm_reload_remote_mmus(kvm);
70737070
}
70747071

70757072
void kvm_arch_flush_shadow_memslot(struct kvm *kvm,

0 commit comments

Comments
 (0)