]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Remove redundancy in qemuBuildSerialChrDeviceStr()
authorAndrea Bolognani <abologna@redhat.com>
Sun, 26 Nov 2017 11:30:10 +0000 (12:30 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:33 +0000 (15:46 +0100)
commitfa96d3524296e7119acf5ad7b02653f4c062d030
treefb4da5a4194ae40e4f1229bcd77365b9bf4084c1
parent7c76c30465ff6038df3b7aa27b40a3348ec599c9
qemu: Remove redundancy in qemuBuildSerialChrDeviceStr()

Instead duplicating the capability check for each possible target
model, introduce a small helper that matches the target model with
the corresponding capability and collapse all existing checks into
a single one.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c