[PATCH 0/2] monitor, kvm: support for boolean statistics

Paolo Bonzini posted 2 patches 3 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220715170249.404786-1-pbonzini@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Cornelia Huck <cohuck@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>
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(-)
[PATCH 0/2] monitor, kvm: support for boolean statistics
Posted by Paolo Bonzini 3 years, 6 months ago
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