]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check for presence of device and properities when getting CPUID
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 Nov 2013 15:34:53 +0000 (16:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Nov 2013 18:36:06 +0000 (19:36 +0100)
commit84f69602143551433e3e0a5226dc572ecb33c059
treed0807a0ad7fa62851029b36f62f67c20fd4d078c
parenta6a6f84af92a506f83fdecf56f292bcb89905492
qemu: Check for presence of device and properities when getting CPUID

The QOM path in qemu that contains the CPUID registers of a running VM
may not be present (introduced in QEMU 1.5).

Since commit d94b7817719 we have a regression with QEMU that don't
support reporting of the CPUID register state via the monitor as the
process startup code expects the path to exist.

This patch adds code that checks with the monitor if the requested path
already exists and uses it only in this case.
src/qemu/qemu_monitor_json.c
tests/qemumonitorjsontest.c