[libvirt] [PATCH] libxl: Allow libxl to set NIC devid
Jim Fehlig
jfehlig at suse.com
Thu Jun 20 17:47:18 UTC 2013
libxl contains logic to determine an appropriate devid for new devices
that do not specify one in their configuration. For all device types
except NICs, the libxl driver allows libxl to determine devid. Do the
same for NICs.
---
src/libxl/libxl_conf.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index 812d380..1be66da 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -609,8 +609,6 @@ libxlMakeNicList(virDomainDefPtr def, libxl_domain_config *d_config)
}
for (i = 0; i < nnics; i++) {
- x_nics[i].devid = i;
-
if (libxlMakeNic(l_nics[i], &x_nics[i]))
goto error;
}
--
1.7.7
More information about the libvir-list
mailing list