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)
commitb6d33834bd4e8bdf4a199812e31b3e36da53c794
tree3360ac4b5fa572e3acb21ecdc686c6d941baa2fc
parent66ef89315f121cda9bf5b65a4ef02ad1b4fb16d9
KVM: Factor out kvm_vcpu_kick to arch-generic code

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>
arch/ia64/include/asm/kvm_host.h
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c