Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Paolo Bonzini
ger.kernel.org, k...@vger.kernel.org >>> Sent: Thursday, November 24, 2016 6:21:04 PM >>> Subject: Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and >>> pic_irqchip() >>> >>> 2016-11-24 11:55-0500, Paolo Bonzini: >>>>> irqchip_i

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Paolo Bonzini
t: Thursday, November 24, 2016 6:21:04 PM >>> Subject: Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and >>> pic_irqchip() >>> >>> 2016-11-24 11:55-0500, Paolo Bonzini: >>>>> irqchip_in_kernel() tried to save a bit by reusing pic_irq

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Radim Krčmář
2016-11-25 03:59-0500, Paolo Bonzini: > - Original Message - >> From: "Radim Krčmář" <rkrc...@redhat.com> >> To: "Paolo Bonzini" <pbonz...@redhat.com> >> Cc: linux-kernel@vger.kernel.org, k...@vger.kernel.org >> Sent: Thursday, N

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Radim Krčmář
2016-11-25 03:59-0500, Paolo Bonzini: > - Original Message - >> From: "Radim Krčmář" >> To: "Paolo Bonzini" >> Cc: linux-kernel@vger.kernel.org, k...@vger.kernel.org >> Sent: Thursday, November 24, 2016 6:21:04 PM >> Subject:

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Paolo Bonzini
- Original Message - > From: "Radim Krčmář" <rkrc...@redhat.com> > To: "Paolo Bonzini" <pbonz...@redhat.com> > Cc: linux-kernel@vger.kernel.org, k...@vger.kernel.org > Sent: Thursday, November 24, 2016 6:21:04 PM > Subject: Re: [

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-25 Thread Paolo Bonzini
- Original Message - > From: "Radim Krčmář" > To: "Paolo Bonzini" > Cc: linux-kernel@vger.kernel.org, k...@vger.kernel.org > Sent: Thursday, November 24, 2016 6:21:04 PM > Subject: Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and > pi

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Radim Krčmář
2016-11-24 11:55-0500, Paolo Bonzini: >> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it >> just complicated the code. >> Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. >> (Turning them into an exclusive type would be nicer.) > > Then do it. ;) It is

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Radim Krčmář
2016-11-24 11:55-0500, Paolo Bonzini: >> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it >> just complicated the code. >> Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. >> (Turning them into an exclusive type would be nicer.) > > Then do it. ;) It is

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Paolo Bonzini
> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it > just complicated the code. > Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. > (Turning them into an exclusive type would be nicer.) Then do it. ;) Paolo > Signed-off-by: Radim Krčmář

Re: [PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Paolo Bonzini
> irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it > just complicated the code. > Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. > (Turning them into an exclusive type would be nicer.) Then do it. ;) Paolo > Signed-off-by: Radim Krčmář > --- >

[PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Radim Krčmář
irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it just complicated the code. Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. (Turning them into an exclusive type would be nicer.) Signed-off-by: Radim Krčmář ---

[PATCH 2/6] KVM: x86: decouple irqchip_in_kernel() and pic_irqchip()

2016-11-24 Thread Radim Krčmář
irqchip_in_kernel() tried to save a bit by reusing pic_irqchip(), but it just complicated the code. Add kvm->arch.irqchip_kvm that matches kvm->arch.irqchip_split. (Turning them into an exclusive type would be nicer.) Signed-off-by: Radim Krčmář --- arch/x86/include/asm/kvm_host.h | 1 +