]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Validate that machine type is supported by qemu
authorPeter Krempa <pkrempa@redhat.com>
Wed, 22 Jan 2020 09:06:53 +0000 (10:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 27 Jan 2020 13:55:03 +0000 (14:55 +0100)
commit0b9d1a80732750d17f9cc3a1eaf646f153291c28
tree962d6742417e87dcccc47682251bc7d5d0ce30c9
parentcb5a89c1156e1e4a5e17bf4c146b8d35e4fea605
qemu: domain: Validate that machine type is supported by qemu

Every supported qemu is able to return the list of machine types it
supports so we can start validating it against that list. The advantage
is a better error message, and the change will also prevent having stale
test data.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_domain.c