From: Chris Wright <chrisw@sous-sol.org>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: kvm@vger.kernel.org, linux_kvm@proinbox.com
Subject: Re: 8 NIC limit - patch - places limit at 32
Date: Wed, 6 Oct 2010 18:39:54 -0700 [thread overview]
Message-ID: <20101007013954.GH18885@sequoia.sous-sol.org> (raw)
In-Reply-To: <1286385112.6026.1398703073@webmail.messagingengine.com>
* Anthony Liguori (anthony@codemonkey.ws) wrote:
> BTW, using -device, it should be possible to add a very high number of
> nics because you can specify the PCI address including a function. If
> this doesn't Just Work today, we should make it work.
Should work...test...mostly[1], but I don't actually know of any tools that
make use of it.
thanks,
-chris
[1] 40 worked, 48 caused guest kernel stack corruption, didn't dig in to
see why yet.
Here's my simple wrapper to build up the command line:
QEMU=/home/chrisw/git/kvm/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
BIOS=/home/chrisw/git/kvm/qemu-kvm/pc-bios
DISK=/home/chrisw/disk-snap1.img
SCRIPT=/home/chrisw/git/kvm/qemu-kvm/kvm/scripts/qemu-ifup
unset NETARGS
i=0
dev=4
func=0
max_dev=40
while [ $i -lt $max_dev ]
do
unset MULTIFUNC
if [ $(($i + 1)) -lt $max_dev -a $func -eq 0 ]; then
MULTIFUNC=",multifunction=on"
fi
NETARGS="${NETARGS} -netdev type=tap,id=netdev$i,script=$SCRIPT -device virtio-net-pci,mac=52:54:00:12:34:$(printf "%.2x\n" $i),netdev=netdev$i,bus=pci.0,addr=$dev.$func$MULTIFUNC"
i=$(($i+1))
func=$(($func+1))
if [ $func -eq 8 ]; then
func=0
dev=$(($dev+1))
fi
done
$QEMU -L $BIOS -m 1024 -drive file=$DISK,if=virtio,boot=on $NETARGS -vnc :0
next prev parent reply other threads:[~2010-10-07 1:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 14:48 8 NIC limit linux_kvm
2010-10-05 15:24 ` Dustin Kirkland
[not found] ` <1286294888.11462.1398488135@webmail.messagingengine.com>
[not found] ` <1286295603.7731.28.camel@x200>
2010-10-06 5:46 ` 8 NIC limit - patch - places limit at 32 linux_kvm
[not found] ` <4CAC719E.6060004@codemonkey.ws>
2010-10-06 17:11 ` linux_kvm
2010-10-07 1:39 ` Chris Wright [this message]
2010-10-05 15:57 ` 8 NIC limit Markus Armbruster
2010-10-05 16:20 ` linux_kvm
2010-10-05 16:43 ` Brian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101007013954.GH18885@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=anthony@codemonkey.ws \
--cc=kvm@vger.kernel.org \
--cc=linux_kvm@proinbox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox