]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: move qemuBuildSmartcardCommandLine validation to qemu_domain.c
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 18 Dec 2019 00:36:02 +0000 (21:36 -0300)
committerCole Robinson <crobinso@redhat.com>
Wed, 18 Dec 2019 18:01:30 +0000 (13:01 -0500)
commita15de75dc537e0544dde3e93d30c71756e80afd7
tree910e4e114eadf6e3038919836b9382553e2ed357
parent379e955eb84005c413c350154d02cf14a659fac7
qemu: command: move qemuBuildSmartcardCommandLine validation to qemu_domain.c

Move smartcard validation being done by qemuBuildSmartcardCommandLine()
to the existing qemuDomainSmartcardDefValidate() function. This
function is called by qemuDomainDeviceDefValidate(), allowing smartcard
validation in 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/qemuxml2xmltest.c