From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50276 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6VzP-0007o0-AC for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6VzO-0005Ky-4m for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:09:31 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:64136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6VzO-0005Kr-26 for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:09:30 -0400 Received: by qwh5 with SMTP id 5so52669qwh.4 for ; Thu, 14 Oct 2010 15:09:29 -0700 (PDT) Message-ID: <4CB77F91.2050801@codemonkey.ws> Date: Thu, 14 Oct 2010 17:09:21 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Hitting 29 NIC limit References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anjali Kulkarni Cc: "qemu-devel@nongnu.org" , "Richard W.M. Jones" , "kvm@vger.kernel.org" , Avi Kivity On 10/14/2010 05:00 PM, Anjali Kulkarni wrote: > Can you send me pointers to the qdev documentation? How can I use it? Will > it allow us to scale above the 32 PCI limit? > 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. Regards, Anthony Liguori > Anjali > > > On 10/14/10 2:57 PM, "Anthony Liguori" wrote: > > >> On 10/14/2010 04:42 PM, Richard W.M. Jones wrote: >> >>> On Thu, Oct 14, 2010 at 01:10:47PM +0100, Daniel P. Berrange wrote: >>> >>> >>>> Or a PCI bridge to wire up more PCI buses, so we raise the max limit for >>>> any type of device we emulate. >>>> >>>> >>> Break the 29/30/31 virtio-blk limit ... please! >>> >>> >> It was broken ages ago: >> >> 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 >> >> This is what makes qdev so useful. >> >> args="" >> 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="$args -drive >> file=/home/anthony/images/linux.img,if=none,snapshot=on,id=disk${slot}_${fn}" >> args="$args -device >> virtio-blk-pci,addr=${slot}.${fn},drive=disk${slot}_${fn},multifunction=on" >> done >> done >> >> x86_64-softmmu/qemu-system-x86_64 -hda ~/images/linux.img ${args} >> -enable-kvm -serial stdio >> >> Regards, >> >> Anthony Liguori >> >> >>> Rich. >>> >>> >>> >> -- >> 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 >> >