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-
= 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
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 +
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
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
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
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
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
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
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
10 matches
Mail list logo