]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildUSBControllerDevStr: Split out validation of USB controller
authorPeter Krempa <pkrempa@redhat.com>
Tue, 5 Oct 2021 11:02:02 +0000 (13:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:05 +0000 (10:26 +0200)
commit3e8d38237d774a6354814a47b3401cbacee4e72b
treebf68e7d500685991c5245eaa238cf0c618e1943f
parentd8f04f1575cfa57b319baffdcf1ef8fb6626b5a4
qemuBuildUSBControllerDevStr: Split out validation of USB controller

Move the validation code into a separate function. For now the
validation is still kept in the commandline format step as simply just
moving it to the validator causes failures in the test suite, which will
need to be investigated deeper.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/usb-controller-explicit-unavailable-q35.err
tests/qemuxml2argvdata/usb-controller-qemu-xhci-unavailable.err