]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Replace smp_mb() with smp_load_acquire() in the kvm_flush_remote_tlbs()
authorLan Tianyu <tianyu.lan@intel.com>
Sun, 13 Mar 2016 03:10:28 +0000 (11:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 15:38:33 +0000 (16:38 +0100)
commitcfe0e40cf91760742d3cec4ff19c0b8705d0a913
tree153de5718a4688050cd3911a7442431a81620926
parent1f86a53c2c350d765b05ccf8d4ce7e2fbc407736
KVM: Replace smp_mb() with smp_load_acquire() in the kvm_flush_remote_tlbs()

smp_load_acquire() is enough here and it's cheaper than smp_mb().
Adding a comment about reusing memory barrier of kvm_make_all_cpus_request()
here to keep order between modifications to the page tables and reading mode.

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