From: Matthew Booth Date: Mon, 14 Dec 2009 09:42:14 +0000 (+0100) Subject: Extract the assigned pty device for QEmu channels X-Git-Tag: v0.7.5~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=033eef435830a10d63255fa642559fa2bcb5228c;p=thirdparty%2Flibvirt.git Extract the assigned pty device for QEmu channels * src/qemu/qemu_driver.c: Parse pty devices for channels --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 20fb8c5967..c5aa2db4fe 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -1439,6 +1439,16 @@ qemudFindCharDevicePTYs(virConnectPtr conn, } } + /* then the channel devices */ + for (i = 0 ; i < vm->def->nchannels ; i++) { + virDomainChrDefPtr chr = vm->def->channels[i]; + if (chr->type == VIR_DOMAIN_CHR_TYPE_PTY) { + if ((ret = qemudExtractTTYPath(conn, output, &offset, + &chr->data.file.path)) != 0) + return ret; + } + } + return 0; }