Skip to content

Support fd-based KVM stats

Mark Kanda qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 6 repliesIn review
  2. v33 patches 13 repliesSuperseded
  3. v23 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qmp: Support for querying statsinclude/monitor/stats.h monitor/qmp-cmds.c qapi/meson.build +2 more+531 -06 replies
2/3hmp: Support for querying statshmp-commands-info.hx include/monitor/hmp.h monitor/hmp-cmds.c+358 -00 replies
3/3kvm: Support for querying fd-based statsaccel/kvm/kvm-all.c qapi/stats.json+394 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

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

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
Signature · 1 line
2.27.0