]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
xen: Don't add <console> to xml for dom0
authorCole Robinson <crobinso@redhat.com>
Sun, 29 Jan 2012 19:10:00 +0000 (14:10 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 30 Jan 2012 12:17:36 +0000 (07:17 -0500)
It just doesn't really make sense and confuses virt-manager

src/xenxs/xen_sxpr.c

index 7a53f943e7874b68f9c22d753ad8a9921cf32c25..09e77307167b6e8bdba2b74fc082c72ebd383bfb 100644 (file)
@@ -1392,7 +1392,7 @@ xenParseSxpr(const struct sexpr *root,
             chr->target.port = 0;
             def->parallels[def->nparallels++] = chr;
         }
-    } else {
+    } else if (def->id != 0) {
         def->nconsoles = 1;
         if (VIR_ALLOC_N(def->consoles, 1) < 0)
             goto no_memory;