]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: report error if missing model name when baselining
authorCollin Walling <walling@linux.ibm.com>
Fri, 25 Sep 2020 00:22:37 +0000 (20:22 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 24 Nov 2020 20:04:07 +0000 (21:04 +0100)
commite2df0b488aa3cf24c722e3734e653009135adde4
tree50ac47f69709e10ebea1fd8db38e2eae55fc82ee
parent60bb33293baa9c4850181ac79d7594dc7bc15440
qemu: report error if missing model name when baselining

When executing the hypervisor-cpu-baseline command and the
XML file contains a CPU definition without a model name, or
an invalid CPU definition, then the commands will fail and
return an error message from the QMP response.

Let's clean this up by checking for a valid definition and
presence of a model name.

This code is copied from virCPUBaseline.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_driver.c