Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1529562

[PATCH 1/6] KVM: x86: do allow kvm irqchip with split irqchip

From Radim Krčmář <rkrcmar@redhat.com>
Newsgroups linux.kernel
Subject [PATCH 1/6] KVM: x86: do allow kvm irqchip with split irqchip
Date 2016-11-24 17:40 +0100
Message-ID <sH5e2-5eA-47@gated-at.bofh.it> (permalink)
References <sH5e1-5eA-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Split irqchip cannot be created after creating the kvm irqchip, but we
forgot to restrict the other way.  This is an API change.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
---
 arch/x86/kvm/x86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 6f9c9ad13f88..dbed51045c37 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3901,7 +3901,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
 
 		mutex_lock(&kvm->lock);
 		r = -EEXIST;
-		if (kvm->arch.vpic)
+		if (irqchip_in_kernel(kvm))
 			goto create_irqchip_unlock;
 		r = -EINVAL;
 		if (kvm->created_vcpus)
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] KVM: x86: minor irqchip improvements (API change) Radim Krčmář <rkrcmar@redhat.com> - 2016-11-24 17:40 +0100
  [PATCH 4/6] KVM: x86: refactor pic setup in kvm_set_routing_entry Radim Krčmář <rkrcmar@redhat.com> - 2016-11-24 17:40 +0100
  [PATCH 1/6] KVM: x86: do allow kvm irqchip with split irqchip Radim Krčmář <rkrcmar@redhat.com> - 2016-11-24 17:40 +0100
  [PATCH 5/6] KVM: x86: prevent setup of invalid routes Radim Krčmář <rkrcmar@redhat.com> - 2016-11-24 17:40 +0100
  Re: [PATCH 0/6] KVM: x86: minor irqchip improvements (API change) Paolo Bonzini <pbonzini@redhat.com> - 2016-11-24 18:00 +0100

csiph-web