[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-users
Subject: Re: [Xen-users] Number of NICs per VM with qemu-upstream (Was: Re: Re: libvirt <emulator> /usr/local
From: Stefano Stabellini <stefano.stabellini () eu ! citrix ! com>
Date: 2014-11-20 16:14:51
Message-ID: alpine.DEB.2.02.1411201613300.12596 () kaball ! uk ! xensource ! com
[Download RAW message or body]
On Thu, 20 Nov 2014, Ian Campbell wrote:
> On Thu, 2014-11-20 at 14:46 +0000, Stefano Stabellini wrote:
> > On Thu, 20 Nov 2014, Ian Campbell wrote:
> > > There is, it's the romfile option to -device e.g.
> > > -device $NICMODEL,vlan=0,romfile=$ROMFILE
> > >
> > > where NICMODEL is e100, rtl8139, virtio-blah
> > > and ROMFILE is e.g. an ipxe binary.
> >
> > I think that option was intended to point QEMU to a different file, not
> > to disable the romfile.
>
> romfile="" does that, I think. Or use /dev/null etc etc.
Confirmed working.
---
libxl: do not load roms for any NICs except the first to avoid wasting memory
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 3e191c3..f907ca9 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -674,9 +674,10 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
LIBXL_NIC_TYPE_VIF_IOEMU);
flexarray_append(dm_args, "-device");
flexarray_append(dm_args,
- libxl__sprintf(gc, "%s,id=nic%d,netdev=net%d,mac=%s",
+ libxl__sprintf(gc, "%s,id=nic%d,netdev=net%d,mac=%s%s",
nics[i].model, nics[i].devid,
- nics[i].devid, smac));
+ nics[i].devid, smac,
+ i ? ",romfile=\"\"" : ""));
flexarray_append(dm_args, "-netdev");
flexarray_append(dm_args, GCSPRINTF(
"type=tap,id=net%d,ifname=%s,"
_______________________________________________
Xen-users mailing list
Xen-users@lists.xen.org
http://lists.xen.org/xen-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic