diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2013-05-30 20:36:21 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-06-05 05:32:24 -0400 |
commit | a2ae162265e88bf5490ce54fd5f2d430d6d992b7 (patch) | |
tree | e2cf34d6189894424687160d9946b4f33efa4677 /arch | |
parent | 758ccc89b83cc15d575204091c1a1fec306245cb (diff) |
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 <xiaoguangrong@linux.vnet.ibm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/x86.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 6739b1d4ce7c..3758ff910d1f 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -7060,16 +7060,13 @@ void kvm_arch_commit_memory_region(struct kvm *kvm, | |||
7060 | * If memory slot is created, or moved, we need to clear all | 7060 | * If memory slot is created, or moved, we need to clear all |
7061 | * mmio sptes. | 7061 | * mmio sptes. |
7062 | */ | 7062 | */ |
7063 | if ((change == KVM_MR_CREATE) || (change == KVM_MR_MOVE)) { | 7063 | if ((change == KVM_MR_CREATE) || (change == KVM_MR_MOVE)) |
7064 | kvm_mmu_zap_mmio_sptes(kvm); | 7064 | kvm_mmu_zap_mmio_sptes(kvm); |
7065 | kvm_reload_remote_mmus(kvm); | ||
7066 | } | ||
7067 | } | 7065 | } |
7068 | 7066 | ||
7069 | void kvm_arch_flush_shadow_all(struct kvm *kvm) | 7067 | void kvm_arch_flush_shadow_all(struct kvm *kvm) |
7070 | { | 7068 | { |
7071 | kvm_mmu_zap_all(kvm); | 7069 | kvm_mmu_zap_all(kvm); |
7072 | kvm_reload_remote_mmus(kvm); | ||
7073 | } | 7070 | } |
7074 | 7071 | ||
7075 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | 7072 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, |