Re: [libvirt] [PATCH v3 17/28] qemu: Remove redundancy in qemuBuildSerialChrDeviceStr()

2017-11-27 Thread Pavel Hrdina
On Sun, Nov 26, 2017 at 11:25:38PM +0100, Andrea Bolognani wrote: > 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. > >

[libvirt] [PATCH v3 17/28] qemu: Remove redundancy in qemuBuildSerialChrDeviceStr()

2017-11-26 Thread Andrea Bolognani
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 --- src/qemu/qemu_command.c