Re: [PATCH v2 5/6] KVM: x86: prevent setup of invalid routes

2017-01-10 Thread Paolo Bonzini
On 10/01/2017 06:26, Peter Xu wrote: > On Fri, Dec 16, 2016 at 04:10:05PM +0100, Radim Krčmář wrote: >> The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a >> temporary measure until the code improved enough for us to do this. >> >> This changes APIC in a case when KVM_SET_GSI_ROUT

Re: [PATCH v2 5/6] KVM: x86: prevent setup of invalid routes

2017-01-09 Thread Peter Xu
On Fri, Dec 16, 2016 at 04:10:05PM +0100, Radim Krčmář wrote: > The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a > temporary measure until the code improved enough for us to do this. > > This changes APIC in a case when KVM_SET_GSI_ROUTING is called to set up pic > and ioapic rou

Re: [PATCH v2 5/6] KVM: x86: prevent setup of invalid routes

2017-01-03 Thread David Hildenbrand
Am 16.12.2016 um 16:10 schrieb Radim Krčmář: The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a temporary measure until the code improved enough for us to do this. This changes APIC in a case when KVM_SET_GSI_ROUTING is called to set up pic and ioapic routes before KVM_CREATE_IRQ

[PATCH v2 5/6] KVM: x86: prevent setup of invalid routes

2016-12-16 Thread Radim Krčmář
The check in kvm_set_pic_irq() and kvm_set_ioapic_irq() was just a temporary measure until the code improved enough for us to do this. This changes APIC in a case when KVM_SET_GSI_ROUTING is called to set up pic and ioapic routes before KVM_CREATE_IRQCHIP. Those rules would get overwritten by KVM