From d97bc25b82d320e0b71236b3676823224e308432 Mon Sep 17 00:00:00 2001 From: Nathan Chen Date: Wed, 19 Nov 2025 17:42:42 -0800 Subject: [PATCH] qemu: Format IOMMU devices after controllers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Ján Tomko --- 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 d5a4201e12..84a3abcfa5 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -10821,15 +10821,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.47.3