]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: error out on missing machine type in configs
authorJán Tomko <jtomko@redhat.com>
Thu, 25 Feb 2016 15:21:41 +0000 (16:21 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 26 Feb 2016 09:32:31 +0000 (10:32 +0100)
commit21b316f4d351859d9ccbf8a20199f7e8707fd51d
tree412a8f3530adba07ccc7a225d38244776cd3e8a3
parentb564113d568cdc46f28985bc1ff8d64ccdb8c075
qemu: error out on missing machine type in configs

Commit f1a89a8 allowed parsing configs from /etc/libvirt
without validating the emulator capabilities.

Check for the presence of a machine type in the qemu driver's
post parse function instead of crashing.

https://bugzilla.redhat.com/show_bug.cgi?id=1267256
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/qemuxml2argv-missing-machine.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c