kvm,powerpc: Serialize wq active checks in ops->vcpu_kick
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 13 Sep 2017 20:08:23 +0000 (13:08 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Sep 2017 14:57:13 +0000 (16:57 +0200)
commit267ad7bc2d3f69af536035b6a3e4a9a2b6ae11dc
treef3aef348c35710389e1be449b0fe390b397e292d
parent5e0018b3e39e9b44dbfb380b83026e55d2f65b91
kvm,powerpc: Serialize wq active checks in ops->vcpu_kick

Particularly because kvmppc_fast_vcpu_kick_hv() is a callback,
ensure that we properly serialize wq active checks in order to
avoid potentially missing a wakeup due to racing with the waiter
side.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_hv.c