diff options
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 6 | ||||
-rw-r--r-- | include/linux/kvm_host.h | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 889383735e73..20ab5b2dbd0f 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h | |||
@@ -498,10 +498,6 @@ struct kvm_vcpu_arch { | |||
498 | #define KVM_MMIO_REG_QPR 0x0040 | 498 | #define KVM_MMIO_REG_QPR 0x0040 |
499 | #define KVM_MMIO_REG_FQPR 0x0060 | 499 | #define KVM_MMIO_REG_FQPR 0x0060 |
500 | 500 | ||
501 | #define __KVM_HAVE_ARCH_VCPU_GET_WQ 1 | 501 | #define __KVM_HAVE_ARCH_WQP |
502 | static inline wait_queue_head *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) | ||
503 | { | ||
504 | return vcpu->arch.wqp; | ||
505 | } | ||
506 | 502 | ||
507 | #endif /* __POWERPC_KVM_HOST_H__ */ | 503 | #endif /* __POWERPC_KVM_HOST_H__ */ |
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 5b624e1ff814..5184817e714a 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -524,12 +524,14 @@ static inline void kvm_arch_free_vm(struct kvm *kvm) | |||
524 | } | 524 | } |
525 | #endif | 525 | #endif |
526 | 526 | ||
527 | #ifndef __KVM_HAVE_ARCH_VCPU_GET_WQ | ||
528 | static inline wait_queue_head_t *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) | 527 | static inline wait_queue_head_t *kvm_arch_vcpu_wq(struct kvm_vcpu *vcpu) |
529 | { | 528 | { |
529 | #ifdef __KVM_HAVE_ARCH_WQP | ||
530 | return vcpu->arch.wqp; | ||
531 | #else | ||
530 | return &vcpu->wq; | 532 | return &vcpu->wq; |
531 | } | ||
532 | #endif | 533 | #endif |
534 | } | ||
533 | 535 | ||
534 | int kvm_arch_init_vm(struct kvm *kvm, unsigned long type); | 536 | int kvm_arch_init_vm(struct kvm *kvm, unsigned long type); |
535 | void kvm_arch_destroy_vm(struct kvm *kvm); | 537 | void kvm_arch_destroy_vm(struct kvm *kvm); |