]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't query unavailable-features if qom-list-get is supported
authorJiri Denemark <jdenemar@redhat.com>
Thu, 4 Sep 2025 13:49:01 +0000 (15:49 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Sep 2025 13:32:48 +0000 (15:32 +0200)
commitd05443820e2204e309a957147906c94b82529051
tree0f9ee802c15b321cfe213998f50bf5d42a604698
parente18bc302361ac9a7cf8c5cca43c35ec1a726679e
qemu: Don't query unavailable-features if qom-list-get is supported

With qom-list-get we already have the value of unavailable-features
property in the returned object (just like we have all values of all
bool properties). Let's use the value from there instead of querying for
it separately using qom-get.

After this patch only a single QMP command is used for getting all the
required info about guest CPUs created by QEMU 10.1 or newer.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor_json.c
tests/qemumonitorjsondata/get-guest-cpu-SierraForest.json
tests/qemumonitorjsondata/get-guest-cpu-SkylakeClient.json