KVM: PPC: Make wakeups work again for Book3S HV guests
authorPaul Mackerras <paulus@samba.org>
Mon, 12 Dec 2011 12:24:48 +0000 (12:24 +0000)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:34 +0000 (14:52 +0200)
commit4e72dbe13528394a413889d73e5025dbdf6cab70
treee7aec9cbd0f0a141af136e76df240ee5673b287f
parentbefdc0a65afd17181392eff3d43c63407f266a9f
KVM: PPC: Make wakeups work again for Book3S HV guests

When commit f43fdc15fa ("KVM: PPC: booke: Improve timer register
emulation") factored out some code in arch/powerpc/kvm/powerpc.c
into a new helper function, kvm_vcpu_kick(), an error crept in
which causes Book3s HV guest vcpus to stall.  This fixes it.
On POWER7 machines, guest vcpus are grouped together into virtual
CPU cores that share a single waitqueue, so it's important to use
vcpu->arch.wqp rather than &vcpu->wq.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/powerpc.c