]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: support -chardev for platform devices
authorCole Robinson <crobinso@redhat.com>
Mon, 26 Jun 2017 18:01:52 +0000 (14:01 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 10 Jul 2017 21:22:42 +0000 (17:22 -0400)
commit426dc5eb28bade109bf27bdd10d7305a040b4a3e
tree1fe346b4cb72df666529734a0873c70501e4a5e1
parentb4d560435041216fab4e4b417aef708107c83c4b
qemu: command: support -chardev for platform devices

Some qemu arch/machine types have built in platform devices that
are always implicitly available. For platform serial devices, the
current code assumes that only old style -serial config can be
used for these devices.

Apparently though since -chardev was introduced, we can use -chardev
in these cases, like this:

  -chardev pty,id=foo
  -serial chardev:foo

Since -chardev enables all sorts of modern features, use this method
for platform devices.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_process.c
tests/qemuxml2argvdata/qemuxml2argv-aarch64-kvm-32-on-64.args
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.args
tests/qemuxml2argvdata/qemuxml2argv-arm-vexpressa9-basic.args
tests/qemuxml2argvdata/qemuxml2argv-arm-vexpressa9-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-arm-virt-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args
tests/qemuxml2argvdata/qemuxml2argv-ppce500-serial.args