]> xenbits.xensource.com Git - libvirt.git/commitdiff
Document caveats of hypervisor-specific stats in 'VIR_DOMAIN_STATS_VCPU' group
authorPeter Krempa <pkrempa@redhat.com>
Mon, 28 Nov 2022 16:09:23 +0000 (17:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 29 Nov 2022 08:36:10 +0000 (09:36 +0100)
In commit c43718ef67944 I've added a disclaimer that the new stats which
are fetched from qemu and passed directly to the user are not guaranteed
by libvirt. I didn't notice that per-vcpu hypervisor specific stats are
also snuck into the VIR_DOMAIN_STATS_VCPU group along with other
pre-existing stats we do guarantee.

Extend the disclaimer for VIR_DOMAIN_STATS_VCPU too.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
docs/manpages/virsh.rst
src/libvirt-domain.c

index 5f5f48f83e42f1438cc9ef9c87ac837dfd500240..1e8a43bc55ac4bab4e1d09ac4254b931ed5c999b 100644 (file)
@@ -2399,6 +2399,28 @@ When selecting the *--state* group the following fields are returned:
   host scheduler, but was waiting in the queue instead of running.
   Exposed to the VM as a steal time.
 
+This group of statistics also reports additional hypervisor-originating per-vCPU
+stats. The hypervisor-specific statistics in this group have the following
+naming scheme:
+
+ ``vcpu.<num>.$NAME.$TYPE``
+
+ ``$NAME``
+   name of the statistics field provided by the hypervisor
+
+ ``$TYPE``
+   Type of the value. The following types are returned:
+
+   ``cur``
+     current instant value
+   ``sum``
+     aggregate value
+   ``max``
+     peak value
+
+ The returned value may be either an unsigned long long or a boolean. Meaning
+ is hypervisor specific. Please see the disclaimer for the *--vm* group which
+ also consists of hypervisor-specific stats.
 
 
 *--interface* returns:
index 56c2abf3fae72a4e607f0c260732cb78704db8ba..78c26b221918cc60fc86052e71b4d11270217647 100644 (file)
@@ -12270,6 +12270,23 @@ virConnectGetDomainCapabilities(virConnectPtr conn,
  *                          instead of running. Exposed to the VM as a steal
  *                          time.
  *
+ *    This group of statistics also reports additional hypervisor-originating
+ *    per-vCPU stats. The hypervisor-specific statistics in this group have the
+ *    following naming scheme:
+ *
+ *     "vcpu.<num>.$NAME.$TYPE"
+ *
+ *       $NAME - name of the statistics field provided by the hypervisor
+ *
+ *       $TYPE - Type of the value. The following types are returned:
+ *          'cur' - current instant value
+ *          'sum' - aggregate value
+ *          'max' - peak value
+ *
+ *      The returned value may be either an unsigned long long or a boolean.
+ *      Meaning is hypervisor specific. Please see the disclaimer for the
+ *      VIR_DOMAIN_STATS_VM group below.
+ *
  * VIR_DOMAIN_STATS_INTERFACE:
  *     Return network interface statistics (from domain point of view).
  *     The typed parameter keys are in this format: