[PATCHv3 07/27] fix fallout in phyp driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/phyp/phyp_driver.c | 8 ++++++--
 src/phyp/phyp_driver.h | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index 8c67338..59cc1ca 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -1204,6 +1204,9 @@ phypOpen(virConnectPtr conn,
         goto failure;
     }

+    if (!(phyp_driver->xmlconf = virDomainXMLConfNew(NULL, NULL)))
+        goto failure;
+
     conn->privateData = phyp_driver;
     conn->networkPrivateData = connection_data;

@@ -1252,6 +1255,7 @@ phypClose(virConnectPtr conn)
     libssh2_session_free(session);

     virObjectUnref(phyp_driver->caps);
+    virObjectUnref(phyp_driver->xmlconf);
     phypUUIDTable_Free(phyp_driver->uuid_table);
     VIR_FREE(phyp_driver->managed_system);
     VIR_FREE(phyp_driver);
@@ -3633,8 +3637,8 @@ phypDomainCreateAndStart(virConnectPtr conn,

     virCheckFlags(0, NULL);

-    if (!(def = virDomainDefParseString(phyp_driver->caps, xml,
-                                        1 << VIR_DOMAIN_VIRT_PHYP,
+    if (!(def = virDomainDefParseString(phyp_driver->caps, phyp_driver->xmlconf,
+                                        xml, 1 << VIR_DOMAIN_VIRT_PHYP,
                                         VIR_DOMAIN_XML_SECURE)))
         goto err;

diff --git a/src/phyp/phyp_driver.h b/src/phyp/phyp_driver.h
index 8114b67..8d4cc16 100644
--- a/src/phyp/phyp_driver.h
+++ b/src/phyp/phyp_driver.h
@@ -68,6 +68,7 @@ typedef phyp_driver_t *phyp_driverPtr;
 struct _phyp_driver {
     uuid_tablePtr uuid_table;
     virCapsPtr caps;
+    virDomainXMLConfPtr xmlconf;
     int vios_id;

     /* system_type:
-- 
1.8.1.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]