[libvirt] [PATCH v1 17/51] util: conf: add bootHash to virDomainParseTotalParam

xinhua.Cao caoxinhua at huawei.com
Thu Feb 8 06:46:15 UTC 2018


add bootHash to  virDomainParseTotalParam
---
 src/conf/domain_conf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 1e949ea..1a8248d 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -18516,6 +18516,7 @@ struct _virDomainParseTotalParam{
     virCapsPtr caps;
     virDomainXMLOptionPtr xmlopt;
     void *parseOpaque;
+    virHashTablePtr bootHash;
     unsigned int flags;
 
     //internal parameters
@@ -19816,6 +19817,7 @@ virDomainDefParseXML(xmlDocPtr xml,
             caps,
             xmlopt,
             parseOpaque,
+            NULL,
             flags,
             false,
             false,
@@ -19861,7 +19863,11 @@ virDomainDefParseXML(xmlDocPtr xml,
     if (!(def = virDomainDefNew()))
         return NULL;
 
+    if (!(bootHash = virHashCreate(5, NULL)))
+        goto error;
+
     param.def = def;
+    param.bootHash = bootHash;
 
     while (parse_funs[fun_index]) {
         if (parse_funs[fun_index](&param) < 0)
-- 
2.8.3





More information about the libvir-list mailing list