[PATCH v3 0/3] Support fd-based KVM stats

Mark Kanda posted 3 patches 2 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220131194312.1192626-1-mark.kanda@oracle.com
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Eric Blake <eblake@redhat.com>
There is a newer version of this series
accel/kvm/kvm-all.c     | 308 ++++++++++++++++++++++++++++++++++++++++
hmp-commands-info.hx    |  28 ++++
include/monitor/hmp.h   |   2 +
include/monitor/stats.h |  36 +++++
monitor/hmp-cmds.c      | 288 +++++++++++++++++++++++++++++++++++++
monitor/qmp-cmds.c      | 183 ++++++++++++++++++++++++
qapi/misc.json          | 253 +++++++++++++++++++++++++++++++++
7 files changed, 1098 insertions(+)
create mode 100644 include/monitor/stats.h
[PATCH v3 0/3] Support fd-based KVM stats
Posted by Mark Kanda 2 years, 3 months ago
v3:
- various QMP API enhancements from v2 review [1] [Daniel, Paolo, Igor]
- general cleanup

v2: [Paolo]
- generalize the interface
- add support for querying stat schema and instances
- add additional HMP semantic processing for a few exponent/unit
   combinations (related to seconds and bytes)

This patchset adds QEMU support for querying fd-based KVM stats. The
kernel support was introduced by:

cb082bfab59a ("KVM: stats: Add fd-based API to read binary stats data")

[1] https://lore.kernel.org/all/20211119195153.11815-1-mark.kanda@oracle.com/

Mark Kanda (3):
  qmp: Support for querying stats
  hmp: Support for querying stats
  kvm: Support for querying fd-based stats

 accel/kvm/kvm-all.c     | 308 ++++++++++++++++++++++++++++++++++++++++
 hmp-commands-info.hx    |  28 ++++
 include/monitor/hmp.h   |   2 +
 include/monitor/stats.h |  36 +++++
 monitor/hmp-cmds.c      | 288 +++++++++++++++++++++++++++++++++++++
 monitor/qmp-cmds.c      | 183 ++++++++++++++++++++++++
 qapi/misc.json          | 253 +++++++++++++++++++++++++++++++++
 7 files changed, 1098 insertions(+)
 create mode 100644 include/monitor/stats.h

-- 
2.27.0