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

Mark Kanda posted 3 patches 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220215150433.2310711-1-mark.kanda@oracle.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Michael Roth <michael.roth@amd.com>
There is a newer version of this series
accel/kvm/kvm-all.c     | 393 ++++++++++++++++++++++++++++++++++++++++
hmp-commands-info.hx    |  28 +++
include/monitor/hmp.h   |   2 +
include/monitor/stats.h |  51 ++++++
monitor/hmp-cmds.c      | 328 +++++++++++++++++++++++++++++++++
monitor/qmp-cmds.c      | 219 ++++++++++++++++++++++
qapi/meson.build        |   1 +
qapi/qapi-schema.json   |   1 +
qapi/stats.json         | 259 ++++++++++++++++++++++++++
9 files changed, 1282 insertions(+)
create mode 100644 include/monitor/stats.h
create mode 100644 qapi/stats.json
[PATCH v4 0/3] Support fd-based KVM stats
Posted by Mark Kanda 2 years, 2 months ago
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")

v4:
- revise and cleanup the API [Daniel, Paolo]
- filtering for multiple providers [Daniel]
- cache KVM stat descriptors [Paolo]
- use g_autofree and other cleanup [Daniel]

v3:
- various QMP API enhancements from review [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)

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     | 393 ++++++++++++++++++++++++++++++++++++++++
 hmp-commands-info.hx    |  28 +++
 include/monitor/hmp.h   |   2 +
 include/monitor/stats.h |  51 ++++++
 monitor/hmp-cmds.c      | 328 +++++++++++++++++++++++++++++++++
 monitor/qmp-cmds.c      | 219 ++++++++++++++++++++++
 qapi/meson.build        |   1 +
 qapi/qapi-schema.json   |   1 +
 qapi/stats.json         | 259 ++++++++++++++++++++++++++
 9 files changed, 1282 insertions(+)
 create mode 100644 include/monitor/stats.h
 create mode 100644 qapi/stats.json

-- 
2.27.0