[libvirt] [PATCH 1/2] qemu: Scrape stdout for virtio console pty
Eric Blake
eblake at redhat.com
Mon Jun 13 18:03:47 UTC 2011
On 06/08/2011 10:36 AM, Cole Robinson wrote:
> Currently we forget to do this and have to fallback to info chardev (which
> also fails, see following patch)
>
> Signed-off-by: Cole Robinson <crobinso at redhat.com>
> ---
> src/qemu/qemu_process.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
ACK.
>
> diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
> index 1efe024..349c25a 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;
> }
>
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110613/b8200884/attachment-0001.sig>
More information about the libvir-list
mailing list