2013-12-06 19:39:18 +01:00
|
|
|
Index: libvirt-1.2.0/src/libxl/libxl_conf.c
|
2013-11-05 00:05:28 +01:00
|
|
|
===================================================================
|
2013-12-06 19:39:18 +01:00
|
|
|
--- libvirt-1.2.0.orig/src/libxl/libxl_conf.c
|
|
|
|
+++ libvirt-1.2.0/src/libxl/libxl_conf.c
|
|
|
|
@@ -886,8 +886,6 @@ libxlMakeNic(virDomainNetDefPtr l_nic, l
|
2013-11-05 00:05:28 +01:00
|
|
|
* x_nics[i].mtu = 1492;
|
|
|
|
*/
|
|
|
|
|
|
|
|
- libxl_device_nic_init(x_nic);
|
|
|
|
-
|
|
|
|
virMacAddrGetRaw(&l_nic->mac, x_nic->mac);
|
|
|
|
|
|
|
|
if (l_nic->model && !STREQ(l_nic->model, "netfront")) {
|
2013-12-06 19:39:18 +01:00
|
|
|
@@ -932,6 +930,8 @@ libxlMakeNicList(virDomainDefPtr def, l
|
2013-11-05 00:05:28 +01:00
|
|
|
return -1;
|
|
|
|
|
|
|
|
for (i = 0; i < nnics; i++) {
|
|
|
|
+ libxl_device_nic_init(&x_nics[i]);
|
|
|
|
+ x_nics[i].devid = i;
|
|
|
|
if (libxlMakeNic(l_nics[i], &x_nics[i]))
|
|
|
|
goto error;
|
|
|
|
}
|