]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move PCI command modelName check to controller def validate
authorJohn Ferlan <jferlan@redhat.com>
Mon, 27 Nov 2017 19:36:22 +0000 (14:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 2 Feb 2018 19:35:26 +0000 (14:35 -0500)
commit4d7f9bf0ef90878ad0e6bb14155fcb40df903c17
tree6239f61e34b82bcf326046088e09fe89beaae590
parentc44ba1d4d176cc334c134b8e3fa8592512c2021c
qemu: Move PCI command modelName check to controller def validate

Move the various modelName == NAME_NONE from the command line
generation into domain controller validation.  Also rather than
have multiple cases with the same check, let's make the code
more generic, but also note that it was the modelName option
that caused the failure. We also have to be sure not to check
the PCI models that we don't care about.

For the remaining checks in command line building, we can use
the field name in the error message to be more specific about
what causes the failure.
src/qemu/qemu_command.c
src/qemu/qemu_domain.c