From: Jan Kiszka Date: Tue, 13 Mar 2012 15:48:27 +0000 (+0100) Subject: Do not enforce source type of console[0] X-Git-Tag: v0.9.12-rc1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde91ab9172c7aa929b98df74c16afd296fe435a;p=thirdparty%2Flibvirt.git Do not enforce source type of console[0] 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 --- diff --git a/AUTHORS b/AUTHORS index 8345cb91bd..eee4998cb8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -231,6 +231,7 @@ Patches have also been contributed by: Ilja Livenson Stefan Bader MATSUDA Daiki + Jan Kiszka [....send patches to get your name here....] diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index b676947c46..566a17e398 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -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) {