From: Nathan Chen Date: Thu, 20 Nov 2025 01:42:42 +0000 (-0800) Subject: qemu: Format IOMMU devices after controllers X-Git-Tag: v11.10.0-rc1~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d97bc25b82d320e0b71236b3676823224e308432;p=thirdparty%2Flibvirt.git qemu: Format IOMMU devices after controllers 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 --- 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;