[PATCH] qemu: block: Always enable discard forwarding for 'throttle' filter layer

2025-09-06 Thread Peter Krempa via Devel
From: Peter Krempa Discards ought to be forwarded to the protocol nodes where we control if discard actually happens. Unconditionally enable discard='unmap' for the intermediate layer. Closes: https://gitlab.com/libvirt/libvirt/-/issues/810 Signed-off-by: Peter Krempa --- src/qemu/qemu_block.

[PATCH 5/8] qemu: Generate acpi-generic-initiator command from acpi nodeset

2025-09-06 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- src/qemu/qemu_command.c | 45 + 1 file changed, 45 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 3f9b583985..9ca0847789 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c

Re: [PATCH v5 0/6] qemu: acpi-generic-initiator support

2025-09-06 Thread Andrea Righi via Devel
Hi Daniel, On Wed, Aug 27, 2025 at 02:17:43PM +0100, Daniel P. Berrangé wrote: > On Wed, Aug 06, 2025 at 02:42:10PM +0200, Andrea Righi via Devel wrote: > > = Overview = > > > > This patch set introduces support for acpi-generic-initiator devices, > > supported by QEMU [1]. > > > > The acpi-gene

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

2025-09-06 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 8/8] NEWS: Mention new acpi-generic-initiator support

2025-09-06 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- NEWS.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 9577be0213..bc894bd996 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6 +17,16 @@ v11.8.0 (unreleased) * **New features** + * qemu: Add support for NUMA affinity o

[PATCH 7/8] docs: Document acpi nodeset in hostdev

2025-09-06 Thread Andrea Righi via Devel
Add documentation for the new element in hostdev, which allows associating devices with ACPI Generic Initiator objects in QEMU. A typical use case is NVIDIA Multi-Instance GPU (MIG), where a physical GPU is partitioned into multiple isolated instances, each tied to one or more virtual NUMA nodes.

[PATCH 4/8] qemu: Validate acpi nodeset

2025-09-06 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- src/qemu/qemu_validate.c | 8 1 file changed, 8 insertions(+) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index adba3e4a89..c7ecb467a3 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -1717,6 +1717,14 @@ qemuVal

[PATCH 3/8] conf: Add nodeset attribute to the element

2025-09-06 Thread Andrea Righi via Devel
This enables partitioning of PCI devices into multiple isolated instances, each requiring a dedicated virtual NUMA node definition. Link: https://mail.gnu.org/archive/html/qemu-arm/2024-03/msg00358.html Signed-off-by: Andrea Righi --- src/conf/device_conf.h| 3 +++ src/conf/domain_c

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

2025-09-06 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 1/8] qemu: capabilies: Introduce QEMU_CAPS_ACPI_GENERIC_INITIATOR

2025-09-06 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