KVM: Ensure all vcpus are consistent with in-kernel irqchip settings
[linux-2.6.git] / arch / ia64 / kvm / kvm-ia64.c
index d8ddbba..f5104b7 100644 (file)
@@ -1172,6 +1172,11 @@ out:
 
 #define PALE_RESET_ENTRY    0x80000000ffffffb0UL
 
+bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu)
+{
+       return irqchip_in_kernel(vcpu->kcm) == (vcpu->arch.apic != NULL);
+}
+
 int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
 {
        struct kvm_vcpu *v;