[Libvirt-cim] [PATCH V6 21/21] libxkutil: set domain->dype to unknown by default

Wenchao Xia xiawenc at linux.vnet.ibm.com
Mon Mar 25 10:46:07 UTC 2013


  It should not be default as XENPV, which will bring trouble when this value is
not set. One case is script section in bridge xml generation, in resource add
method it will be always added since this value is XENPV, so change it to unknown.

Signed-off-by: Wenchao Xia <xiawenc at linux.vnet.ibm.com>
---
 libxkutil/device_parsing.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libxkutil/device_parsing.h b/libxkutil/device_parsing.h
index d652f0f..6f6b0b4 100644
--- a/libxkutil/device_parsing.h
+++ b/libxkutil/device_parsing.h
@@ -147,10 +147,11 @@ struct lxc_os_info {
 };
 
 struct domain {
-        enum { DOMAIN_XENPV, 
+        enum { DOMAIN_UNKNOWN,
+               DOMAIN_XENPV,
                DOMAIN_XENFV, 
-               DOMAIN_KVM, 
-               DOMAIN_QEMU, 
+               DOMAIN_KVM,
+               DOMAIN_QEMU,
                DOMAIN_LXC } type;
         char *name;
         char *typestr; /*xen, kvm, etc */
-- 
1.7.1





More information about the Libvirt-cim mailing list