Re: [PATCH 1/2] qmp: Support fd-based KVM stats query

2021-10-20 Thread Paolo Bonzini
On 19/10/21 22:29, Mark Kanda wrote: +# +# @filter: KVM stat name (optional) Nitpicking on the name, "filter" makes me think that some kind of globbing is supported. So I would just call it "name". Also nitpicking on the name, let's drop "kvm" from everything. In the future other subsyste

[PATCH 1/2] qmp: Support fd-based KVM stats query

2021-10-19 Thread Mark Kanda
Introduce a QMP command 'query-kvmstats' to query KVM for vm and vcpu fd-based statistics. The kernel support is provided by commit: cb082bfab59a ("KVM: stats: Add fd-based API to read binary stats data") The interface supports an optional 'filter' argument to specify a particular stat to query.