]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Do not enforce source type of console[0]
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 13 Mar 2012 15:48:27 +0000 (16:48 +0100)
committerCole Robinson <crobinso@redhat.com>
Wed, 25 Apr 2012 20:16:37 +0000 (16:16 -0400)
If console[0] is an alias for serial[0], do not enforce the former to
have a PTY source type. This breaks serial consoles on stdio and makes
no sense.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
AUTHORS
src/qemu/qemu_process.c

diff --git a/AUTHORS b/AUTHORS
index b2283830e133bb2f375fe29d4b1a7c0365cd2168..d8ef31a61477e90eeddbcc406bffb55d8b5ee8a9 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -231,6 +231,7 @@ Patches have also been contributed by:
   Ilja Livenson        <ilja.livenson@gmail.com>
   Stefan Bader         <stefan.bader@canonical.com>
   MATSUDA Daiki        <matsudadik@intellilink.co.jp>
+  Jan Kiszka           <jan.kiszka@siemens.com>
 
   [....send patches to get your name here....]
 
index 0ec365d9f568a0b1f0c7c34d6c04edbe30a54371..f5f78a4dcf1556199edb583a402f8b179f6a0521 100644 (file)
@@ -1497,7 +1497,6 @@ qemuProcessFindCharDevicePTYs(virDomainObjPtr vm,
             if ((ret = virDomainChrSourceDefCopy(&chr->source,
                                                  &((vm->def->serials[0])->source))) != 0)
                 return ret;
-            chr->source.type = VIR_DOMAIN_CHR_TYPE_PTY;
         } else {
             if (chr->source.type == VIR_DOMAIN_CHR_TYPE_PTY &&
                 chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_VIRTIO) {