]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_command: Generate aw_bits prop for virtio-iommu
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 21 Jan 2026 11:56:06 +0000 (12:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Feb 2026 15:13:35 +0000 (16:13 +0100)
Resolves: https://issues.redhat.com/browse/RHEL-76269
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
tests/qemuxmlconfdata/virtio-iommu-aarch64.aarch64-latest.args

index ca6779a6eae3dec30c1e1b8cde1357abc3b2334b..85f24c6307174843b197b993b4098e999af88ac9 100644 (file)
@@ -6382,6 +6382,7 @@ qemuBuildIOMMUCommandLine(virCommand *cmd,
             if (virJSONValueObjectAdd(&props,
                                       "s:driver", "virtio-iommu",
                                       "s:id", iommu->info.alias,
+                                      "p:aw-bits", iommu->aw_bits,
                                       NULL) < 0) {
                 return -1;
             }
index 40b5bf77669914f0d6dc00d0eb622cde34f41579..071bc00b34d64df5b9e560fc2f0392cb9bc12e1e 100644 (file)
@@ -28,7 +28,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-guest/.config \
 -rtc base=utc \
 -no-shutdown \
 -boot strict=on \
--device '{"driver":"virtio-iommu","id":"iommu0","bus":"pcie.0","addr":"0x1"}' \
+-device '{"driver":"virtio-iommu","id":"iommu0","aw-bits":48,"bus":"pcie.0","addr":"0x1"}' \
 -audiodev '{"id":"audio1","driver":"none"}' \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on