From: Ian Campbell <Ian.Campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel <xen-devel@lists.xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Anthony Perard <anthony.perard@citrix.com>,
xen-users@lists.xen.org, Jim Fehlig <jfehlig@suse.com>,
hanyandong <hanyandong@iie.ac.cn>
Subject: Re: Number of NICs per VM with qemu-upstream (Was: Re: Re: [Xen-users] libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4)
Date: Thu, 20 Nov 2014 09:13:34 +0000 [thread overview]
Message-ID: <1416474814.29243.59.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1411171237340.26318@kaball.uk.xensource.com>
On Mon, 2014-11-17 at 13:00 +0000, Stefano Stabellini wrote:
> On Mon, 17 Nov 2014, Ian Campbell wrote:
> > On Sat, 2014-11-15 at 10:16 +0800, hanyandong wrote:
> > > By the way, how many NICs can I apply to a VM?
> > >
> > > On xen-4.4.0, Using qemu-dm, I can apply 8 NIC to a VM, but using
> > > qemu-system-i386, I can only apply 4 NICs to an VM?
> > > is it normal?
> >
> > I've no idea, CCing the qemu maintainers.
> >
> > I'd have expected the number of PV nics to be completely independent of
> > the device mode, so I suppose you mean emulated NICs?
>
> I can pass 4 emulated NICs maximum, but you can easily reach 8 if you
> use PV NICs instead. Just pass 'type=pv' like this:
>
> vif=['', '', '', '', 'type=pv', 'type=pv', 'type=pv', 'type=pv']
>
> it is going to create 4 emulated nics and 4 pv nics. The 4 emulated nics
> also have 4 corresponding pv nics. The emulated nics get disconnected
> soon after boot by the guest operating system (if it has pv drivers
> installed, such as Linux). So overall once the boot sequence is fully
> completed you'll end up with the 8 pv nics that you want.
I wonder if we should do something in (lib)xl such that by default the
first 4 NICs have type LIBXL_NIC_TYPE_VIF_IOEMU (i.e. emulated+PV path)
and the rest have LIBXL_NIC_TYPE_VIF (i.e. PV only).
> BTW the reason for the failure seems to be that QEMU runs out of ram
> (xen: failed to populate ram at 80110000, so
> xc_domain_populate_physmap_exact failed) allocating roms for the rtl8139
> (40000 bytes each). Maybe qemu-trad wasn't loading any roms for rtl8139.
> Interestingly e1000 doesn't need any roms either, so another way around
> this would be to set 'type=e1000' for all the vifs.
Or to use the new option in 4.5 to increase the MMIO space (or is that
not where ROMs end up?)
Do we need to plumb through qemu's optionrom parameter to allow a)
limiting the number of NICs which will try to do PXE and b) allow custom
roms etc?
Ian.
next parent reply other threads:[~2014-11-20 9:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1ac72b0.26f7c.149ae18f6bb.Coremail.hanyandong@iie.ac.cn>
[not found] ` <1415967767.7113.19.camel@citrix.com>
[not found] ` <a0cc29.27c3f.149b13c965c.Coremail.hanyandong@iie.ac.cn>
[not found] ` <1416217990.27385.10.camel@citrix.com>
[not found] ` <alpine.DEB.2.02.1411171237340.26318@kaball.uk.xensource.com>
2014-11-20 9:13 ` Ian Campbell [this message]
2014-11-20 11:39 ` Number of NICs per VM with qemu-upstream (Was: Re: Re: [Xen-users] libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4) Stefano Stabellini
2014-11-20 11:42 ` Ian Campbell
2014-11-20 14:46 ` Stefano Stabellini
2014-11-20 14:49 ` Ian Campbell
2014-11-20 16:14 ` Stefano Stabellini
2014-11-21 17:11 ` [PATCH for-4.5] libxl: do not load roms for any NICs except the first to avoid wasting memory Stefano Stabellini
2014-11-21 17:34 ` Konrad Rzeszutek Wilk
2014-11-21 18:48 ` Stefano Stabellini
2014-11-21 19:07 ` Konrad Rzeszutek Wilk
2014-11-24 12:17 ` Stefano Stabellini
2014-11-24 15:06 ` Konrad Rzeszutek Wilk
2014-11-24 15:26 ` Stefano Stabellini
2014-11-24 15:46 ` Konrad Rzeszutek Wilk
2014-11-24 16:09 ` Don Slutz
2014-11-24 17:07 ` Stefano Stabellini
2014-11-24 20:35 ` Don Slutz
2014-11-25 12:21 ` Stefano Stabellini
2014-11-20 14:52 ` Number of NICs per VM with qemu-upstream (Was: Re: Re: [Xen-users] libvirt <emulator> /usr/local/lib/xen/bin/qemu-dm <emulator> did not work on xen-4.4) Ian Campbell
2014-11-20 15:15 ` Processed: " xen
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=1416474814.29243.59.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=hanyandong@iie.ac.cn \
--cc=jfehlig@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
--cc=xen-users@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.