From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPwYW-0001eD-83 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 12:08:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPwYQ-0004VX-9w for qemu-devel@nongnu.org; Tue, 18 Mar 2014 12:07:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPwYP-0004VS-WE for qemu-devel@nongnu.org; Tue, 18 Mar 2014 12:07:50 -0400 Message-ID: <53286F47.2020100@redhat.com> Date: Tue, 18 Mar 2014 17:07:35 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1395079899-29239-1-git-send-email-cornelia.huck@de.ibm.com> <1395079899-29239-6-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1395079899-29239-6-git-send-email-cornelia.huck@de.ibm.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 5/5] KVM: Bump KVM_MAX_IRQ_ROUTES for s390 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck , kvm@vger.kernel.org, linux-s390@vger.kernel.org, qemu-devel@nongnu.org Cc: gleb@kernel.org, borntraeger@de.ibm.com, agraf@suse.de Il 17/03/2014 19:11, Cornelia Huck ha scritto: > The maximum number for irq routes is currently 1024, which is a bit on > the small size for s390: We support up to 4 x 64k virtual devices with > up to 64 queues, and we need one route for each of the queues if we want > to operate it via irqfd. > > Let's bump this to 4k on s390 for now, as this at least covers the saner > setups. > > We need to find a more general solution, though, as we can't just grow > the routing table indefinitly. > > Signed-off-by: Cornelia Huck > --- > include/linux/kvm_host.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index da7510b..7d21cf9 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -922,7 +922,11 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq) > > #ifdef CONFIG_HAVE_KVM_IRQ_ROUTING > > +#ifdef CONFIG_S390 > +#define KVM_MAX_IRQ_ROUTES 4096 //FIXME: we can have more than that... > +#else > #define KVM_MAX_IRQ_ROUTES 1024 > +#endif > > int kvm_setup_default_irq_routing(struct kvm *kvm); > int kvm_set_irq_routing(struct kvm *kvm, > Acked-by: Paolo Bonzini