From: Cole Robinson Date: Wed, 8 Jun 2011 16:27:18 +0000 (-0400) Subject: qemu: Scrape stdout for virtio console pty X-Git-Tag: v0.9.3-rc1~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b1a9a08741eadb7f9b98543376b6a0d20d4cac;p=thirdparty%2Flibvirt.git qemu: Scrape stdout for virtio console pty Currently we forget to do this and have to fallback to info chardev (which also fails, see following patch) --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 887e31b3f7..3aa436ebfd 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -989,6 +989,16 @@ qemuProcessFindCharDevicePTYs(virDomainObjPtr vm, } } + if (vm->def->console) { + virDomainChrDefPtr chr = vm->def->console; + if (chr->source.type == VIR_DOMAIN_CHR_TYPE_PTY && + chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_VIRTIO) { + if ((ret = qemuProcessExtractTTYPath(output, &offset, + &chr->source.data.file.path)) != 0) + return ret; + } + } + return 0; }