]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain: move video validation out of qemu_command
authorPavel Hrdina <phrdina@redhat.com>
Tue, 11 Oct 2016 15:48:59 +0000 (17:48 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 12 Oct 2016 15:46:47 +0000 (17:46 +0200)
commit133fb1401f55b15b4768732b9d00d456ddc75807
treee4bb54da7f7e251c4c69473b295f5acbca74ba70
parentf5eae0a59579e74e30ea66283cc475345a9e7753
qemu_domain: move video validation out of qemu_command

All definition validation that doesn't depend on qemu capabilities
and was allowed previously as valid definition should be placed into
qemuDomainDefValidate.

The check whether video type is supported or not was based on an enum
that translates type into model.  Use switch to ensure that if new
video type is added, it will be properly handled.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c