util: virHostCPUGetStatsLinux: support VIR_NODE_CPU_STATS_GUEST

it is very useful for platforms to know how much time a node is
spending running guests.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Claudio Fontana
2025-09-01 16:14:31 +02:00
committed by Michal Privoznik
parent 317626fae9
commit b5878727c7
5 changed files with 49 additions and 3 deletions
+10
View File
@@ -267,6 +267,16 @@ typedef enum {
*/
# define VIR_NODE_CPU_STATS_INTR "intr"
/**
* VIR_NODE_CPU_STATS_GUEST:
*
* The cumulative CPU time spent running guests,
* since the node booting up (in nanoseconds).
*
* Since: 11.8.0
*/
# define VIR_NODE_CPU_STATS_GUEST "guest"
/**
* VIR_NODE_CPU_STATS_UTILIZATION:
*