From: Roger Pau Monne Date: Thu, 26 Jul 2012 09:35:34 +0000 (+0100) Subject: libxl: set nic type of stub to PV instead of copying from the parent X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8141 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=214825a938dc04280f42efec9c2341e547c47890;p=xen.git libxl: set nic type of stub to PV instead of copying from the parent Set the type of the nics used in sutbdoms to PV unconditianlly, or the call to setdefaults later is going to fail. Signed-off-by: Roger Pau Monne Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 11cfc42708..2c140b0086 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -626,6 +626,7 @@ static void libxl__dm_vifs_from_hvm_guest_config(libxl__gc *gc, for (i=0; inics[i] = guest_config->nics[i]; + dm_config->nics[i].nictype = LIBXL_NIC_TYPE_VIF; if (dm_config->nics[i].ifname) dm_config->nics[i].ifname = GCSPRINTF("%s" TAP_DEVICE_SUFFIX, dm_config->nics[i].ifname);