]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Dissolve qemuBuildVhostuserCommandLine in qemuBuildInterfaceCommandLine
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Nov 2018 17:21:12 +0000 (18:21 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Nov 2018 07:52:56 +0000 (08:52 +0100)
commit4de4e4bc991158ea2a881d4729a668b2eb5fe83a
treeb10f2da0b64541c35edbb190defa5313fd104f16
parente7b7b617689ab6fff49b16b96aa417bf2382e79b
qemu: Dissolve qemuBuildVhostuserCommandLine in qemuBuildInterfaceCommandLine

https://bugzilla.redhat.com/show_bug.cgi?id=1524230

The qemuBuildVhostuserCommandLine builds command line for
vhostuser type interfaces. It is duplicating some code of the
function it is called from (qemuBuildInterfaceCommandLine)
because of the way it's called. If we merge it into the caller
not only we save a few lines but we also enable checks that we
would have to duplicate otherwise (e.g. QoS availability).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_command.c