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

2025-09-20 Thread Andrea Righi via Devel
Hi Daniel, On Mon, Sep 08, 2025 at 06:02:20PM +0100, Daniel P. Berrangé wrote: > On Sat, Sep 06, 2025 at 03:09:00PM +0200, Andrea Righi wrote: > > Signed-off-by: Andrea Righi > > --- > > src/qemu/qemu_command.c | 45 + > > 1 file changed, 45 insertions(+)

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

2025-09-11 Thread Andrea Righi via Devel
On Mon, Sep 08, 2025 at 06:19:38PM +0100, Daniel P. Berrangé wrote: > On Mon, Sep 08, 2025 at 07:15:18PM +0200, Andrea Righi wrote: > > Hi Daniel, > > > > On Mon, Sep 08, 2025 at 06:02:20PM +0100, Daniel P. Berrangé wrote: > > > On Sat, Sep 06, 2025 at 03:09:00PM +0200, Andrea Righi wrote: > > > >

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

2025-09-07 Thread Andrea Righi via Devel
Signed-off-by: Andrea Righi --- .../acpi-generic-initiator.x86_64-latest.args | 55 .../acpi-generic-initiator.x86_64-latest.xml | 63 +++ .../acpi-generic-initiator.xml| 63 +++ tests/qemuxmlconftest.c | 1 +

[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

[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

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

2025-08-12 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 5/6] qemu: Support acpi-generic-initiator

2025-08-12 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 | 30 +++ .../acpi-generic-initiator.x86_64-latest.args | 8 + 2 files changed, 38 ins

[PATCH 4/6] qemu_validate: Validate acpi-generic-initiator

2025-08-12 Thread Andrea Righi via Devel
From: Michal Privoznik Signed-off-by: Michal Privoznik --- src/qemu/qemu_validate.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 5ead231dd0..0aaf40f971 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_v

[PATCH 3/6] qemu: capabilies: Introduce QEMU_CAPS_ACPI_GENERIC_INITIATOR

2025-08-12 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 6/6] NEWS: Mention new acpi-generic-initiator device

2025-08-12 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 435760e797..36388a736b 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -17,6 +17,14 @@ v11.7.0 (unreleased) * **New features** + * qemu: Introduce acpi-generic-initiator de

[PATCH 1/6] conf: Introduce acpi-generic-initiator device

2025-08-12 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. Link: h

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

2025-08-12 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

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

2025-06-27 Thread Andrea Righi via Devel
Hi Michal, On Mon, Jun 23, 2025 at 10:05:20AM +0200, Michal Prívozník wrote: ... > > Code-wise this is okay. I've merged some patches together and made small > changes. You can find them here: > > https://gitlab.com/MichalPrivoznik/libvirt/-/compare/master...review_acpi_initiator?from_project_id

[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 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 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 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 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 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 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 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 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

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

2025-05-15 Thread Andrea Righi via Devel
Hi Michal, On Fri, May 09, 2025 at 03:30:21PM +0200, Michal Prívozník wrote: > On 4/2/25 10:25, Andrea Righi via Devel wrote: > > = Overview = > > > > This patch set introduces support for acpi-generic-initiator devices, > > supported by QEMU [1]. > > > &g

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

2025-04-05 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 2/6] conf: Introduce acpi-generic-initiator device

2025-04-05 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. Si

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

2025-04-04 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 6/6] qemu: Add test case for acpi-generic-initiator

2025-04-02 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 5/6] qemu: support acpi-generic-initiator

2025-04-02 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 4/6] qemu: capabilies: Introduce QEMU_CAPS_ACPI_GENERIC_INITIATOR

2025-04-02 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 3/6] qemu: Allow to define NUMA nodes without memory or CPUs assigned

2025-04-02 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

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

2025-03-07 Thread Andrea Righi via Devel
Hi Peter, On Fri, Mar 07, 2025 at 01:45:01PM +0100, Peter Krempa wrote: > On Fri, Mar 07, 2025 at 08:13:51 +0100, Andrea Righi via Devel wrote: > > Gentle ping. Is there any feedback, comment, suggestion about this? > > I have a couple points about coding style and some gene

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

2025-03-07 Thread Andrea Righi via Devel
Gentle ping. Is there any feedback, comment, suggestion about this? Thanks, -Andrea

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

2025-02-20 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 6/6] qemu: Add test case for acpi-generic-initiator

2025-02-20 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 6/6] qemu: Add test case for acpi-generic-initiator

2025-02-20 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 5/6] qemu: support acpi-generic-initiator

2025-02-20 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 | 25 + 1 file changed, 25 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c

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

2025-02-20 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 | 2 ++

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

2025-02-20 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 2/6] conf: Introduce acpi-generic-initiator device

2025-02-20 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. Si

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

2025-02-20 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| 25 +

Re: [PATCH 2/2] qemu: Introduce acpi-generic-initiator device

2025-02-12 Thread Andrea Righi via Devel
Hi Peter, On Wed, Feb 12, 2025 at 10:05:08AM +0100, Peter Krempa wrote: > On Wed, Feb 12, 2025 at 07:26:09 +0100, Andrea Righi via Devel wrote: > > Allow to define new acpi-generic-initiator objects to link a PCI device > > with multiple NUMA nodes. > > > > Link: h

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

2025-02-12 Thread Andrea Righi via Devel
Allow to define new acpi-generic-initiator objects 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/ch/ch_domain.c| 1 + src/conf/domain_conf.c| 153

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

2025-02-12 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 0/2] qemu: acpi-generic-initiator support

2025-02-12 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