]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: remove unnecessary memory barriers for shared MSRs
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jul 2015 09:06:34 +0000 (11:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jul 2015 12:27:23 +0000 (14:27 +0200)
commit69af30df25fb0ff5ea653a45cd8d18ad24e3a740
tree8a2e5f7f5cf0300c3cea056c782884cfae72bde0
parent8f7b21340ac0eada88a920ca58070b38ba4e6f0c
KVM: x86: remove unnecessary memory barriers for shared MSRs

There is no smp_rmb matching the smp_wmb.  shared_msr_update is called from
hardware_enable, which in turn is called via on_each_cpu.  on_each_cpu
and must imply a read memory barrier (on x86 the rmb is achieved simply
through asm volatile in native_apic_mem_write).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c