[PATCH 2/8] conf: Introduce acpi-generic-initiator device

2025-06-08 Thread Andrea Righi via Devel
Introduce apci-generic-initiator device to the domain XML. Example definition: dev0 1 This enables partitioning of PCI resources into multiple isolated instances, each requiring a dedicated NUMA node definition, that can be represented by the acpi-generic-initiator object. Signed-

[PATCH v4 0/8] qemu: acpi-generic-initiator support

2025-06-08 Thread Andrea Righi via Devel
= Overview = This patch set introduces support for acpi-generic-initiator devices, supported by QEMU [1]. The acpi-generic-initiator object is required to support Multi-Instance GPU (MIG) configurations on NVIDIA GPUs [2]. MIG enables partitioning of GPU resources into multiple isolated instances

[PATCH 1/8] schema: Introduce acpi-generic-initiator definition

2025-06-08 Thread Andrea Righi via Devel
Introduce the definition of a new acpi-generic-initiator object that can be used to link a PCI device with multiple NUMA nodes. Link: https://mail.gnu.org/archive/html/qemu-arm/2024-03/msg00358.html Signed-off-by: Andrea Righi --- src/conf/domain_conf.c| 26 +

[PATCH 3/8] qemu: Allow to define NUMA nodes without memory or CPUs assigned

2025-06-08 Thread Andrea Righi via Devel
Allow to define NUMA nodes without memory or CPUs assigned to properly support the new acpi-generic-initiator device. This is required because the NUMA nodes passed to the acpi-generic-initiator object must be independent and not be shared with other resources, such as CPU or memory. Signed-off-b

[PATCH 6/8] qemu: Add test case for acpi-generic-initiator

2025-06-08 Thread Andrea Righi via Devel
Implement a sub-test in qemuxmlconftest that uses acpi-generic-initiator to link a PCI device with multiple NUMA node definitions (without any memory/cpu resource assigned). Then translate the VM definition to the corresponding qemu command line that associates the hostdev with the NUMA nodes. Si

[PATCH 4/8] qemu: capabilies: Introduce QEMU_CAPS_ACPI_GENERIC_INITIATOR

2025-06-08 Thread Andrea Righi via Devel
This capability tracks whether QEMU supports the acpi-generic-initiator object type. This object has been introduced in QEMU with the commit: b64b7ed8bb ("qom: new object to associate device to NUMA node"). Signed-off-by: Andrea Righi --- src/qemu/qemu_capabilities.c

[PATCH 7/8] docs: Document acpi-generic-initiator device

2025-06-08 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- docs/formatdomain.rst | 36 1 file changed, 36 insertions(+) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 1acf203d18..17c7ca2ae3 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -9093,6 +909

[PATCH 5/8] qemu: Support acpi-generic-initiator

2025-06-08 Thread Andrea Righi via Devel
Add support to the qemu driver to generate the proper command line for the acpi-generic-initiator definitions. Signed-off-by: Andrea Righi --- src/qemu/qemu_command.c | 28 1 file changed, 28 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command

[PATCH 8/8] NEWS: Mention new acpi-generic-initiator device

2025-06-08 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- NEWS.rst | 8 1 file changed, 8 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index b97f86ffb6..fed249744d 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -24,6 +24,14 @@ v11.5.0 (unreleased) * **New features** + * qemu: Introduce acpi-generic-initiator de

[PATCH pushed] virDomainDriverAutoShutdown: Fix printf conversion specifier for 'waitShutdownSecs'

2025-06-08 Thread Peter Krempa via Devel
From: Peter Krempa The variable is declared as unsigned int but two places used '%d'. Reported-in: https://issues.redhat.com/browse/RHEL-95721 Signed-off-by: Peter Krempa --- Trivial. src/hypervisor/domain_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/h