From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43854 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6W4Q-0002mh-8m for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:14:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6W4P-0006Dc-5p for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:14:42 -0400 Received: from exprod7og126.obsmtp.com ([64.18.2.206]:60281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6W4O-0006DY-UH for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:14:41 -0400 From: Anjali Kulkarni Date: Thu, 14 Oct 2010 15:12:14 -0700 Subject: Re: [Qemu-devel] Hitting 29 NIC limit Message-ID: In-Reply-To: <4CB77F91.2050801@codemonkey.ws> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "qemu-devel@nongnu.org" , "Richard W.M. Jones" , "kvm@vger.kernel.org" , Avi Kivity Thanks. Does this work for e1000 as well? Also, does it support pci hotplug? Anjali On 10/14/10 3:09 PM, "Anthony Liguori" wrote: > On 10/14/2010 05:00 PM, Anjali Kulkarni wrote: >> Can you send me pointers to the qdev documentation? How can I use it? Wi= ll >> it allow us to scale above the 32 PCI limit? >> =20 >=20 > It's all below. You just have to create a PCI device and mark the > multifunction flag to on and then assign it a PCI address that includes > a function number. Then you can pack 8 virtio PCI devices into a single > slot. >=20 > Regards, >=20 > Anthony Liguori >=20 >> Anjali >>=20 >>=20 >> On 10/14/10 2:57 PM, "Anthony Liguori" wrote: >>=20 >> =20 >>> On 10/14/2010 04:42 PM, Richard W.M. Jones wrote: >>> =20 >>>> On Thu, Oct 14, 2010 at 01:10:47PM +0100, Daniel P. Berrange wrote: >>>>=20 >>>> =20 >>>>> Or a PCI bridge to wire up more PCI buses, so we raise the max limit = for >>>>> any type of device we emulate. >>>>>=20 >>>>> =20 >>>> Break the 29/30/31 virtio-blk limit ... please! >>>>=20 >>>> =20 >>> It was broken ages ago: >>>=20 >>> anthony@howler:~$ wc -l /proc/partitions; tail /proc/partitions >>> 422 /proc/partitions >>> 251 1618 1 vdcx2 >>> 251 1621 489951 vdcx5 >>> 251 1632 10485760 vdcy >>> 251 1633 9992398 vdcy1 >>> 251 1634 1 vdcy2 >>> 251 1637 489951 vdcy5 >>> 251 1648 10485760 vdcz >>> 251 1649 9992398 vdcz1 >>> 251 1650 1 vdcz2 >>> 251 1653 489951 vdcz5 >>>=20 >>> This is what makes qdev so useful. >>>=20 >>> args=3D"" >>> for slot in 5 6 7 8 9 10 11 12 13 14 15 16 17; do >>> for fn in 0 1 2 3 4 5 6 7; do >>> args=3D"$args -drive >>>=20 file=3D/home/anthony/images/linux.img,if=3Dnone,snapshot=3Don,id=3Ddisk${sl= ot}_${fn}>>> " >>> args=3D"$args -device >>> virtio-blk-pci,addr=3D${slot}.${fn},drive=3Ddisk${slot}_${fn},multifunc= tion=3Don" >>> done >>> done >>>=20 >>> x86_64-softmmu/qemu-system-x86_64 -hda ~/images/linux.img ${args} >>> -enable-kvm -serial stdio >>>=20 >>> Regards, >>>=20 >>> Anthony Liguori >>>=20 >>> =20 >>>> Rich. >>>>=20 >>>>=20 >>>> =20 >>> -- >>> To unsubscribe from this list: send the line "unsubscribe kvm" in >>> the body of a message to majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> =20 >> =20 >=20