mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Do not enforce source type of console[0]
If console[0] is an alias for serial[0], do not enforce the former to have a PTY source type. This breaks serial consoles on stdio and makes no sense. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
10c31135f3
commit
dde91ab917
1
AUTHORS
1
AUTHORS
@ -231,6 +231,7 @@ Patches have also been contributed by:
|
||||
Ilja Livenson <ilja.livenson@gmail.com>
|
||||
Stefan Bader <stefan.bader@canonical.com>
|
||||
MATSUDA Daiki <matsudadik@intellilink.co.jp>
|
||||
Jan Kiszka <jan.kiszka@siemens.com>
|
||||
|
||||
[....send patches to get your name here....]
|
||||
|
||||
|
@ -1497,7 +1497,6 @@ qemuProcessFindCharDevicePTYs(virDomainObjPtr vm,
|
||||
if ((ret = virDomainChrSourceDefCopy(&chr->source,
|
||||
&((vm->def->serials[0])->source))) != 0)
|
||||
return ret;
|
||||
chr->source.type = VIR_DOMAIN_CHR_TYPE_PTY;
|
||||
} else {
|
||||
if (chr->source.type == VIR_DOMAIN_CHR_TYPE_PTY &&
|
||||
chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_VIRTIO) {
|
||||
|
Loading…
Reference in New Issue
Block a user