Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- src/qemu/qemu_alias.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qemu/qemu_alias.c b/src/qemu/qemu_alias.c index 7efd91051e..7b91fe3141 100644 --- a/src/qemu/qemu_alias.c +++ b/src/qemu/qemu_alias.c @@ -597,6 +597,14 @@ qemuAssignDeviceVsockAlias(virDomainVsockDef *vsock) } +static void +qemuAssignDeviceIOMMUAlias(virDomainIOMMUDef *iommu) +{ + if (!iommu->info.alias) + iommu->info.alias = g_strdup("iommu0"); +} + + int qemuAssignDeviceAliases(virDomainDef *def, virQEMUCaps *qemuCaps) { @@ -681,6 +689,8 @@ qemuAssignDeviceAliases(virDomainDef *def, virQEMUCaps *qemuCaps) if (def->vsock) { qemuAssignDeviceVsockAlias(def->vsock); } + if (def->iommu) + qemuAssignDeviceIOMMUAlias(def->iommu); return 0; } -- 2.35.3