]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_monitor: add features to CPU model for QMP command
authorCollin Walling <walling@linux.ibm.com>
Thu, 19 Sep 2019 20:24:55 +0000 (16:24 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 7 Oct 2019 08:09:49 +0000 (10:09 +0200)
commit708f48525a053373edf7ca49af5615706e262584
treef7a1c4b60f6919c3c181a63810bf9095d040748b
parent67a4dcc15112366f428057a3441e3948a9efde70
qemu_monitor: add features to CPU model for QMP command

query-cpu-model-baseline/comparison will accept a list of features
as part of the command. Since CPUs may be defined with CPU feature
policies, let's parse it to the appropriate boolean that the QMP
command expects.

A feature that is set to required, force, or if it is a hypervisor
CPU feature (-1), then set the property value to true. Otherwise
(optional, disabled) set the value to false.

Signed-off-by: Collin Walling <walling@linux.ibm.com>
Message-Id: <1568924706-2311-5-git-send-email-walling@linux.ibm.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_monitor_json.c