]> 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)
committerEric Blake <eblake@redhat.com>
Tue, 17 Apr 2012 04:24:20 +0000 (22:24 -0600)
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 8345cb91bd60fef47d34a9090fdb0085158f43f1..eee4998cb840c08fd54a0d593ee20e1aa631beb5 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 b676947c4652df7544483ac4a4a4bf5e3f36a4ae..566a17e398194ca8dba5957897368e876bdba387 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) {