Re: [PATCH] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-01-23 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 10:22:41PM -0500, Christoffer Dall wrote: 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

Re: [PATCH] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-01-23 Thread Marcelo Tosatti
On Thu, Jan 19, 2012 at 10:22:41PM -0500, Christoffer Dall wrote: 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

Re: [PATCH] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-01-20 Thread Jan Kiszka
On 2012-01-20 04:22, Christoffer Dall wrote: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d9cfb78..cd30b68 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -153,6 +153,7 @@ void vcpu_load(struct kvm_vcpu *vcpu) cpu = get_cpu();

Re: [PATCH] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-01-20 Thread Jan Kiszka
On 2012-01-20 04:22, Christoffer Dall wrote: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d9cfb78..cd30b68 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -153,6 +153,7 @@ void vcpu_load(struct kvm_vcpu *vcpu) cpu = get_cpu();

[PATCH] KVM: Factor out kvm_vcpu_kick to arch-generic code

2012-01-19 Thread Christoffer Dall
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