]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_monitor: allow cpu props to be optional
authorCollin Walling <walling@linux.ibm.com>
Thu, 19 Sep 2019 20:24:56 +0000 (16:24 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 7 Oct 2019 08:09:49 +0000 (10:09 +0200)
commitafd222684ef2d922582ff767e4c03fdb745253e2
tree49dbe51a225c0e12685510aca6492bfc5a55b708
parent708f48525a053373edf7ca49af5615706e262584
qemu_monitor: allow cpu props to be optional

Some older s390 CPU models (e.g. z900) will not report props as a
response from query-cpu-model-expansion. As such, we should make the
props field optional when parsing the return data from the QMP response.

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