]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: move qemuBuildHostdevCommandLine caps validation to qemu_domain
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 9 Dec 2019 23:15:18 +0000 (20:15 -0300)
committerCole Robinson <crobinso@redhat.com>
Mon, 16 Dec 2019 22:50:50 +0000 (17:50 -0500)
commit3d21545f6d245dafbfc2003f0c1efdda37643476
tree1bea656470a632072b43966e688f01f639c7e2de
parent8ed79ecc8849d2383a8230e748426ba5a503d0c3
qemu: command: move qemuBuildHostdevCommandLine caps validation to qemu_domain

Move QEMU caps validation of qemuBuildHostdevCommandLine() to
qemuDomainDeviceDefValidateHostdev() and qemuDomainMdevDefValidate(),
allowing them to be validated at domain define time.

Tests were adapted to consider the new caps being needed in
this earlier stage.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemumemlocktest.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c