提交 033eef43 编写于 作者: M Matthew Booth 提交者: Daniel Veillard

Extract the assigned pty device for QEmu channels

* src/qemu/qemu_driver.c: Parse pty devices for channels
上级 a8eb010e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册