diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2016-03-13 11:10:26 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-03-22 16:38:30 +0100 |
commit | a30a0509165d9bc5a3107894338e6adf4be7b60f (patch) | |
tree | dc879d2b7ee3e3d533f068b76f158b65efa4204f /virt | |
parent | 36ca7e0a577aa61f648953886958e50398732d63 (diff) | |
download | linux-a30a0509165d9bc5a3107894338e6adf4be7b60f.tar.gz linux-a30a0509165d9bc5a3107894338e6adf4be7b60f.tar.bz2 linux-a30a0509165d9bc5a3107894338e6adf4be7b60f.zip |
KVM: Replace smp_mb() with smp_mb_after_atomic() in the kvm_make_all_cpus_request()
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index db021c383aa7..402590dfcf9b 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -170,8 +170,8 @@ bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) kvm_make_request(req, vcpu); cpu = vcpu->cpu; - /* Set ->requests bit before we read ->mode */ - smp_mb(); + /* Set ->requests bit before we read ->mode. */ + smp_mb__after_atomic(); if (cpus != NULL && cpu != -1 && cpu != me && kvm_vcpu_exiting_guest_mode(vcpu) != OUTSIDE_GUEST_MODE) |