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

Move QEMU caps validation of QEMU_CAPS_USB_HUB to a new function in
qemu_domain.c, qemuDomainDeviceDefValidateHub(). This function is
called by qemuDomainDeviceDefValidate() to validate the sound device
in domain define time.

qemuxml2xmltest.c was adjusted to add the now required caps for
domain definition.

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/qemuxml2xmltest.c