Some statistics exported by KVM only ever have a 0 or 1 value, and Linux has
grown the ability to mark them as such. Bring it over to the new statistics
subsystem of QEMU: they will be presented to QAPI clients as JSON booleans, and
in HMP as "yes"/"no".
(This was proposed in the context of the Libvirt query-stats GSoC project,
and support will be in Linux 5.19-rc7).
Paolo
Paolo Bonzini (2):
monitor: add support for boolean statistics
kvm: add support for boolean statistics
accel/kvm/kvm-all.c | 10 +++++++++-
linux-headers/linux/kvm.h | 1 +
monitor/hmp-cmds.c | 2 ++
qapi/stats.json | 4 +++-
4 files changed, 15 insertions(+), 2 deletions(-)
--
2.36.1