mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +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:
parent
a8eb010ea2
commit
033eef4358
@ -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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user