From 9963f590c1aecb41d419cbeb8db8339fb87b514e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 13 Mar 2012 16:48:27 +0100 Subject: [PATCH] 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 --- AUTHORS | 1 + src/qemu/qemu_process.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index b2283830e1..d8ef31a614 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 0ec365d9f5..f5f78a4dcf 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) {