]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix query-cpus-fast target architecture detection
authorViktor Mihajlovski <mihajlov@linux.ibm.com>
Fri, 1 Mar 2019 10:29:51 +0000 (11:29 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Mar 2019 15:53:12 +0000 (16:53 +0100)
commit696239ba6f83c65ded476e87d3ba77b424e16fd1
treef97dffb87bded5b6f0bd9ed9ffeb9690aab3617d
parent62cb9c335c43a722e81ac0a1ed6e1111ba1d428b
qemu: Fix query-cpus-fast target architecture detection

Since qemu 2.13 reports the target architecture in a property called
'target' additionally to the property 'arch', that has been used in
qemu 2.12 in the response data of 'query-cpus-fast'.
Libvirts monitor code prefers the 'target' property over 'arch'.

At least for s390(x), target is reported as 's390x' while arch is 's390'.
In a later step a comparison is performed against 's390' which fails for
qemu 2.13 and later.

In consequence the architecture specific data for s390 won't be extracted
from the returned data, leading to incorrect values being reported by
virsh domstats --vcpu.

Changing to check explicitly for 's390' and 's390x'.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.ibm.com>
Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
src/qemu/qemu_monitor_json.c