mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 11:21:44 +03:00
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)
This commit is contained in:
parent
f67f965077
commit
d0b1a9a087
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user