提交 d0b1a9a0 编写于 作者: C Cole Robinson

qemu: Scrape stdout for virtio console pty

Currently we forget to do this and have to fallback to info chardev (which
also fails, see following patch)
上级 f67f9650
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册