From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: 8 nics limits on KVM ?? Date: Mon, 02 Feb 2009 18:25:36 +0200 Message-ID: <49871E80.7000804@redhat.com> References: <4981BC2E.1010902@univ-nantes.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Jean-Philippe MENIL , RESEAUCRI To: Yann Dupont Return-path: Received: from mx2.redhat.com ([66.187.237.31]:37603 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752422AbZBBQ0E (ORCPT ); Mon, 2 Feb 2009 11:26:04 -0500 In-Reply-To: <4981BC2E.1010902@univ-nantes.fr> Sender: kvm-owner@vger.kernel.org List-ID: Yann Dupont wrote: > Hello, > > we are using kvm for wifidog, a wifi portal. In our case, we have lots > of VLANS, and those vlans are connected on separate bridges on the > host. So, for the kvm machine running wifidog, we're having lots of > virtual nics (more than 10). Launching kvm, we had this error mesage : > Too many nics. > > The limit seems hardcoded in qemu (in qemu/net.h), I've changed > MAX_NICS from 8 to 24, and this seems to do the trick. > > Is there any adverse effects doing this ? Is the limit arbitrary , or > there for a good reason ? No good reason I can think of. Qemu used to have only a few PCI slots, but now we have 32 (I think) so the limit can easily be raised. -- error compiling committee.c: too many arguments to function