[libvirt] [PATCH 2/2] conf: properly skip graphics listen element in migratable XML

Pavel Hrdina phrdina at redhat.com
Mon Feb 27 16:31:06 UTC 2017


We should skip <listen type='socket'/> only if the 'socket' path
is specified because if there is no 'socket' path we need to
keep that element in migratable XML.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1366088

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 src/conf/domain_conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index db1890f8a7..4c72cf0573 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -23132,6 +23132,7 @@ virDomainGraphicsDefFormat(virBufferPtr buf,
              * thus we can generate it in the migrateble XML. */
             if (def->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC &&
                 def->listens[i].type == VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_SOCKET &&
+                def->listens[i].socket &&
                 !def->listens[i].autoGenerated)
                 continue;
 
-- 
2.11.1




More information about the libvir-list mailing list