linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: Remove redundant smp_mb() in the kvm_mmu_commit_zap_page()
@ 2016-03-04  1:35 Lan Tianyu
  2016-03-04  7:21 ` Thomas Gleixner
  2016-03-04  8:04 ` Paolo Bonzini
  0 siblings, 2 replies; 18+ messages in thread
From: Lan Tianyu @ 2016-03-04  1:35 UTC (permalink / raw)
  To: gleb, pbonzini, tglx, mingo, hpa, x86; +Cc: Lan Tianyu, kvm, linux-kernel

The following kvm_flush_remote_tlbs() will call smp_mb() inside and so
remove smp_mb() here.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 arch/x86/kvm/mmu.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index a54ecd9..6315416 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2383,12 +2383,6 @@ static void kvm_mmu_commit_zap_page(struct kvm *kvm,
 		return;
 
 	/*
-	 * wmb: make sure everyone sees our modifications to the page tables
-	 * rmb: make sure we see changes to vcpu->mode
-	 */
-	smp_mb();
-
-	/*
 	 * Wait for all vcpus to exit guest mode and/or lockless shadow
 	 * page table walks.
 	 */
-- 
1.8.4.rc0.1.g8f6a3e5.dirty

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-03-11  1:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04  1:35 [PATCH] KVM: Remove redundant smp_mb() in the kvm_mmu_commit_zap_page() Lan Tianyu
2016-03-04  7:21 ` Thomas Gleixner
2016-03-04  7:12   ` Lan Tianyu
2016-03-04  8:49     ` Paolo Bonzini
2016-03-08  8:36       ` Lan Tianyu
2016-03-08 15:27         ` Paolo Bonzini
2016-03-09  7:18           ` Lan Tianyu
2016-03-10 17:07             ` Paolo Bonzini
2016-03-10 18:08               ` Xiao Guangrong
2016-03-10 14:40           ` Xiao Guangrong
2016-03-10 15:26             ` Paolo Bonzini
2016-03-10 15:31               ` Paolo Bonzini
2016-03-10 15:45                 ` Xiao Guangrong
2016-03-10 16:04                   ` Paolo Bonzini
2016-03-10 17:57                     ` Xiao Guangrong
2016-03-11  1:13               ` Lan Tianyu
2016-03-04  8:04 ` Paolo Bonzini
2016-03-04 13:48   ` Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).