1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

Extract the assigned pty device for QEmu channels

* src/qemu/qemu_driver.c: Parse pty devices for channels
This commit is contained in:
Matthew Booth 2009-12-14 10:42:14 +01:00 committed by Daniel Veillard
parent a8eb010ea2
commit 033eef4358

View File

@ -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;
}