[PATCH 3/4] qemu: Format IOMMU devices after controllers

Nathan Chen via Devel posted 4 patches 1 day, 8 hours ago
[PATCH 3/4] qemu: Format IOMMU devices after controllers
Posted by Nathan Chen via Devel 1 day, 8 hours ago
Format qemu arguments for IOMMU devices after
controllers as the multi-SMMUv3 model associates
SMMUv3 devices with hostdevs by plugging them
into the same controller upstream.

Signed-off-by: Nathan Chen <nathanc@nvidia.com>
---
 src/qemu/qemu_command.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 16521bb4e5..d414d6d02f 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -10871,15 +10871,15 @@ qemuBuildCommandLine(virDomainObj *vm,
     if (qemuBuildBootCommandLine(cmd, def) < 0)
         return NULL;
 
-    if (qemuBuildIOMMUCommandLine(cmd, def, qemuCaps) < 0)
-        return NULL;
-
     if (qemuBuildGlobalControllerCommandLine(cmd, def) < 0)
         return NULL;
 
     if (qemuBuildControllersCommandLine(cmd, def, qemuCaps) < 0)
         return NULL;
 
+    if (qemuBuildIOMMUCommandLine(cmd, def, qemuCaps) < 0)
+        return NULL;
+
     if (qemuBuildMemoryDeviceCommandLine(cmd, cfg, def, priv) < 0)
         return NULL;
 
-- 
2.43.0
Re: [PATCH 3/4] qemu: Format IOMMU devices after controllers
Posted by Ján Tomko via Devel 18 hours ago
On a Wednesday in 2025, Nathan Chen via Devel wrote:
>Format qemu arguments for IOMMU devices after
>controllers as the multi-SMMUv3 model associates
>SMMUv3 devices with hostdevs by plugging them
>into the same controller upstream.
>
>Signed-off-by: Nathan Chen <nathanc@nvidia.com>
>---
> src/qemu/qemu_command.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano