- Add load average information type into virDomainGetGuestInfo (RHEL-88447) - qemu_agent: Add qemuAgentGetLoadAvg() (RHEL-88447) - qemu: Add support for VIR_DOMAIN_GUEST_INFO_LOAD (RHEL-88447) - virsh: Add support for VIR_DOMAIN_GUEST_INFO_LOAD (RHEL-88447) - qemu_capabilities: Fetch caps for virtio-mem-ccw too (RHEL-87532) - cpu_map: Add avx10* CPU features (RHEL-87796) - cpu_map: Add GraniteRapids-v2 CPU model (RHEL-87796) - cpu_map: Add sha512, sm3, and sm4 CPU features (RHEL-87796) - virsh: Introduce new hypervisor-cpu-models command (RHEL-11435) - qemu: remove nonsensical sanity check in processNetdevStreamDisconnectedEvent() (RHEL-80169) - qemu: make processNetDevStreamDisconnectedEvent() reusable (RHEL-80169) - qemu: respond to NETDEV_VHOST_USER_DISCONNECTED event (RHEL-80169) - qemu: put vhost-user code that's special for passt in a helper function (RHEL-80169) - qemu: make passt+vhostuser reconnect behave identically to passt+user (RHEL-80169) Resolves: RHEL-11435, RHEL-80169, RHEL-87532, RHEL-87796, RHEL-88447
54 lines
2.2 KiB
Diff
54 lines
2.2 KiB
Diff
From 9874072fc9396d609f1a0213bb06fa7e9a2fa019 Mon Sep 17 00:00:00 2001
|
|
Message-ID: <9874072fc9396d609f1a0213bb06fa7e9a2fa019.1747908717.git.jdenemar@redhat.com>
|
|
From: Martin Kletzander <mkletzan@redhat.com>
|
|
Date: Tue, 25 Feb 2025 15:36:03 +0100
|
|
Subject: [PATCH] Add load average information type into virDomainGetGuestInfo
|
|
|
|
The public API part.
|
|
|
|
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
(cherry picked from commit c52c449fd40c7263896d5f17129207b815c3a09c)
|
|
|
|
https://issues.redhat.com/browse/RHEL-88447
|
|
|
|
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
|
|
---
|
|
include/libvirt/libvirt-domain.h | 1 +
|
|
src/libvirt-domain.c | 8 ++++++++
|
|
2 files changed, 9 insertions(+)
|
|
|
|
diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
|
|
index f026ce197c..c04b696f03 100644
|
|
--- a/include/libvirt/libvirt-domain.h
|
|
+++ b/include/libvirt/libvirt-domain.h
|
|
@@ -6425,6 +6425,7 @@ typedef enum {
|
|
VIR_DOMAIN_GUEST_INFO_FILESYSTEM = (1 << 4), /* return filesystem information (Since: 5.7.0) */
|
|
VIR_DOMAIN_GUEST_INFO_DISKS = (1 << 5), /* return disks information (Since: 7.0.0) */
|
|
VIR_DOMAIN_GUEST_INFO_INTERFACES = (1 << 6), /* return interfaces information (Since: 7.10.0) */
|
|
+ VIR_DOMAIN_GUEST_INFO_LOAD = (1 << 7), /* return load averages (Since: 11.2.0) */
|
|
} virDomainGuestInfoTypes;
|
|
|
|
int virDomainGetGuestInfo(virDomainPtr domain,
|
|
diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
|
|
index 7c6b93963c..24752a9888 100644
|
|
--- a/src/libvirt-domain.c
|
|
+++ b/src/libvirt-domain.c
|
|
@@ -13292,6 +13292,14 @@ virDomainSetVcpu(virDomainPtr domain,
|
|
* "if.<num>.addr.<num1>.addr" - the IP address of addr <num1>
|
|
* "if.<num>.addr.<num1>.prefix" - the prefix of IP address of addr <num1>
|
|
*
|
|
+ * VIR_DOMAIN_GUEST_INFO_LOAD:
|
|
+ * Returns load (the number of processes in the runqueue or waiting for disk
|
|
+ * I/O) as double values:
|
|
+ *
|
|
+ * "load.1m" - load averaged over 1 minute
|
|
+ * "load.5m" - load averaged over 5 minutes
|
|
+ * "load.15m" - load averaged over 15 minutes
|
|
+ *
|
|
* Using 0 for @types returns all information groups supported by the given
|
|
* hypervisor.
|
|
*
|
|
--
|
|
2.49.0
|