bfc56c3413
- Add support for gluster pool - Separation of python binding - vbox: add support for 4.3 APIs - Many incremental improvements and bug fixes, see http://libvirt.org/news.html - Updated and renamed clone.patch to ia64-clone.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=334
23 lines
723 B
Diff
23 lines
723 B
Diff
Index: libvirt-1.2.0/src/libxl/libxl_conf.c
|
|
===================================================================
|
|
--- 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
|
|
* 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")) {
|
|
@@ -932,6 +930,8 @@ libxlMakeNicList(virDomainDefPtr def, l
|
|
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;
|
|
}
|