diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2016-12-16 10:10:01 -0500 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-01-09 08:38:19 -0500 |
commit | 35e6eaa3df55822d0cb1df3bf08e6cb816737131 (patch) | |
tree | 5df885fa18a409a7d3d80826594236cfc1bd5ff7 | |
parent | a121103c922847ba5010819a3f250f1f7fc84ab8 (diff) |
KVM: x86: don't allow kernel irqchip with split irqchip
Split irqchip cannot be created after creating the kernel irqchip, but
we forgot to restrict the other way. This is an API change.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 2f22810a7e0c..c72a8d00a1c0 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3961,7 +3961,7 @@ long kvm_arch_vm_ioctl(struct file *filp, | |||
3961 | 3961 | ||
3962 | mutex_lock(&kvm->lock); | 3962 | mutex_lock(&kvm->lock); |
3963 | r = -EEXIST; | 3963 | r = -EEXIST; |
3964 | if (kvm->arch.vpic) | 3964 | if (irqchip_in_kernel(kvm)) |
3965 | goto create_irqchip_unlock; | 3965 | goto create_irqchip_unlock; |
3966 | r = -EINVAL; | 3966 | r = -EINVAL; |
3967 | if (kvm->created_vcpus) | 3967 | if (kvm->created_vcpus) |