diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2022-07-07 08:56:02 +0800 |
---|---|---|
committer | Konstantin Kostiuk <kkostiuk@redhat.com> | 2022-07-13 12:19:18 +0300 |
commit | 1db8a0b0ea2fb72ecab36bd3143a9715c083d5d3 (patch) | |
tree | fb9e329f89c25214d7a002b48fbce58c71cedef8 /qga/commands-win32.c | |
parent | fd89c8ab091bf7faeea04bef51d4296a53a35279 (diff) |
qga: add command 'guest-get-cpustats'
A vCPU thread always reaches 100% utilization when:
- guest uses idle=poll
- disable HLT vm-exit
- enable MWAIT
Add new guest agent command 'guest-get-cpustats' to get guest CPU
statistics, we can know the guest workload and how busy the CPU is.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Message-Id: <20220707005602.696557-3-pizhenwei@bytedance.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'qga/commands-win32.c')
-rw-r--r-- | qga/commands-win32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 36f94c0f9c..7ed7664715 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -2543,3 +2543,9 @@ GuestDiskStatsInfoList *qmp_guest_get_diskstats(Error **errp) error_setg(errp, QERR_UNSUPPORTED); return NULL; } + +GuestCpuStatsList *qmp_guest_get_cpustats(Error **errp) +{ + error_setg(errp, QERR_UNSUPPORTED); + return NULL; +} |