]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: check os type / virt type / arch in validate callback
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Dec 2019 11:55:23 +0000 (11:55 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 12 Dec 2019 16:30:02 +0000 (16:30 +0000)
commit87a8b81d402760ef69d974b3a22db62fab46f21a
tree3a6d5249297edf804cdd7c8261395c3b787cc5ad
parent62e4a75ef451731c981a92df9a12354eb834f1a4
qemu: check os type / virt type / arch in validate callback

Don't check os type / virt type / arch in the post-parse callback
because we can't assume qemuCaps is non-NULL at this point. It
also conceptually belongs to the validation callback.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxml2argvtest.c