From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] Hitting 29 NIC limit Date: Thu, 14 Oct 2010 16:57:36 -0500 Message-ID: <4CB77CD0.3030203@codemonkey.ws> References: <4CB6388A.30006@codemonkey.ws> <4CB6F275.2060204@redhat.com> <20101014121047.GN11403@redhat.com> <20101014214205.GA32682@amd.home.annexia.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Daniel P. Berrange" , Avi Kivity , Anjali Kulkarni , "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" To: "Richard W.M. Jones" Return-path: Received: from mail-gx0-f174.google.com ([209.85.161.174]:60969 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932212Ab0JNV5p (ORCPT ); Thu, 14 Oct 2010 17:57:45 -0400 Received: by gxk6 with SMTP id 6so64895gxk.19 for ; Thu, 14 Oct 2010 14:57:44 -0700 (PDT) In-Reply-To: <20101014214205.GA32682@amd.home.annexia.org> Sender: kvm-owner@vger.kernel.org List-ID: 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. > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59403 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6Vyn-0007Rb-AH for qemu-devel@nongnu.org; Thu, 14 Oct 2010 18:08:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6Vo1-0003Xj-BF for qemu-devel@nongnu.org; Thu, 14 Oct 2010 17:57:46 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:54173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6Vo1-0003Xf-8H for qemu-devel@nongnu.org; Thu, 14 Oct 2010 17:57:45 -0400 Received: by ywg4 with SMTP id 4so85576ywg.4 for ; Thu, 14 Oct 2010 14:57:44 -0700 (PDT) Message-ID: <4CB77CD0.3030203@codemonkey.ws> Date: Thu, 14 Oct 2010 16:57:36 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Hitting 29 NIC limit References: <4CB6388A.30006@codemonkey.ws> <4CB6F275.2060204@redhat.com> <20101014121047.GN11403@redhat.com> <20101014214205.GA32682@amd.home.annexia.org> In-Reply-To: <20101014214205.GA32682@amd.home.annexia.org> 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: "Richard W.M. Jones" Cc: Anjali Kulkarni , Avi Kivity , "kvm@vger.kernel.org" , "qemu-devel@nongnu.org" 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. > >