KVM: Remove redundant smp_mb() in the kvm_mmu_commit_zap_page()
authorLan Tianyu <tianyu.lan@intel.com>
Sun, 13 Mar 2016 03:10:24 +0000 (11:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 15:38:27 +0000 (16:38 +0100)
commit9753f529156d03112d1ff6f3758ccd6fa6faf189
tree675585108c6efb772d2d0503468fcef602237044
parentb9baba861489041b37b54fc7ee0b0006b5327151
KVM: Remove redundant smp_mb() in the kvm_mmu_commit_zap_page()

There is already a barrier inside of kvm_flush_remote_tlbs() which can
help to make sure everyone sees our modifications to the page tables and
see changes to vcpu->mode here. So remove the smp_mb in the
kvm_mmu_commit_zap_page() and update the comment.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c