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