]> 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>
Fri, 15 Jun 2012 14:56:57 +0000 (10:56 -0400)
It just doesn't really make sense and confuses virt-manager
(cherry picked from commit efb0839c1d5471ab70ad81a36372c5cb6e5ed9a6)

Conflicts:

src/xenxs/xen_sxpr.c

src/xenxs/xen_sxpr.c

index 15eaf1863bff5cf61331c1104c526d827189c327..19fbcaa9a098698b117bedd52fff50b722cdbc8d 100644 (file)
@@ -1377,7 +1377,7 @@ xenParseSxpr(const struct sexpr *root,
             chr->target.port = 0;
             def->parallels[def->nparallels++] = chr;
         }
-    } else {
+    } else if (def->id != 0) {
         /* Fake a paravirt console, since that's not in the sexpr */
         if (!(def->console = xenParseSxprChar("pty", tty)))
             goto error;