Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Alexander Graf
On 06.06.14 18:31, Paolo Bonzini wrote: Il 06/06/2014 14:46, Alexander Graf ha scritto: KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping table, it checks for r = -EINVAL; if (routin

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Paolo Bonzini
Il 06/06/2014 14:46, Alexander Graf ha scritto: KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping table, it checks for r = -EINVAL; if (routing.nr >= KVM_MAX_IRQ_ROUTES) goto out

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Cornelia Huck
On Fri, 06 Jun 2014 15:28:13 +0200 Alexander Graf wrote: > > On 06.06.14 15:23, Cornelia Huck wrote: > > On Fri, 06 Jun 2014 15:15:54 +0200 > > Alexander Graf wrote: > > > >> On 06.06.14 15:12, Cornelia Huck wrote: > >>> On Fri, 6 Jun 2014 14:46:05 +0200 > >>> Alexander Graf wrote: > >>> > >>

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Alexander Graf
On 06.06.14 15:23, Cornelia Huck wrote: On Fri, 06 Jun 2014 15:15:54 +0200 Alexander Graf wrote: On 06.06.14 15:12, Cornelia Huck wrote: On Fri, 6 Jun 2014 14:46:05 +0200 Alexander Graf wrote: KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MA

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Cornelia Huck
On Fri, 06 Jun 2014 15:15:54 +0200 Alexander Graf wrote: > > On 06.06.14 15:12, Cornelia Huck wrote: > > On Fri, 6 Jun 2014 14:46:05 +0200 > > Alexander Graf wrote: > > > >> KVM tells us the number of GSIs it can handle inside the kernel. That > >> value is > >> basically KVM_MAX_IRQ_ROUTES.

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Alexander Graf
On 06.06.14 15:12, Cornelia Huck wrote: On Fri, 6 Jun 2014 14:46:05 +0200 Alexander Graf wrote: KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping table, it checks for r = -EINVAL;

Re: [Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Cornelia Huck
On Fri, 6 Jun 2014 14:46:05 +0200 Alexander Graf wrote: > KVM tells us the number of GSIs it can handle inside the kernel. That value is > basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping > table, > it checks for > > r = -EINVAL; > if (routing.nr >= KVM_MAX_IRQ_

[Qemu-devel] [PATCH] KVM: Fix GSI number space limit

2014-06-06 Thread Alexander Graf
KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping table, it checks for r = -EINVAL; if (routing.nr >= KVM_MAX_IRQ_ROUTES) goto out; erroring out even when we're only using all of