KVM: Factor out kvm_vcpu_kick to arch-generic code
authorChristoffer Dall <c.dall@virtualopensystems.com>
Thu, 8 Mar 2012 21:44:24 +0000 (16:44 -0500)
committerAvi Kivity <avi@redhat.com>
Sun, 8 Apr 2012 09:47:47 +0000 (12:47 +0300)
The kvm_vcpu_kick function performs roughly the same funcitonality on
most all architectures, so we shouldn't have separate copies.

PowerPC keeps a pointer to interchanging waitqueues on the vcpu_arch
structure and to accomodate this special need a
__KVM_HAVE_ARCH_VCPU_GET_WQ define and accompanying function
kvm_arch_vcpu_wq have been defined. For all other architectures this
is a generic inline that just returns &vcpu->wq;

Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found