]> Git Repo - qemu.git/commit - monitor/qmp-cmds.c
qmp: add filtering of statistics by target vCPU
authorPaolo Bonzini <[email protected]>
Tue, 26 Apr 2022 12:59:44 +0000 (14:59 +0200)
committerPaolo Bonzini <[email protected]>
Tue, 14 Jun 2022 14:50:30 +0000 (16:50 +0200)
commit467ef823d83ed7ba68cc92e1a23938726b8c4e9d
treee63eddb9b4aa7cf667440c1d5bdb334bce070b59
parentcc01a3f4cadd91e63c4ebf9774069321afd8a4e0
qmp: add filtering of statistics by target vCPU

Introduce a simple filtering of statistics, that allows to retrieve
statistics for a subset of the guest vCPUs.  This will be used for
example by the HMP monitor, in order to retrieve the statistics
for the currently selected CPU.

Example:
{ "execute": "query-stats",
  "arguments": {
    "target": "vcpu",
    "vcpus": [ "/machine/unattached/device[2]",
               "/machine/unattached/device[4]" ] } }

Extracted from a patch by Mark Kanda.

Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
accel/kvm/kvm-all.c
include/monitor/stats.h
monitor/qmp-cmds.c
qapi/stats.json
This page took 0.026592 seconds and 4 git commands to generate.