mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: format dma-translation on intel-iommu command line
Add dma-translation attribute to qemu command line if specified in domain conf. Signed-off-by: Sandesh Patel <sandesh.patel@nutanix.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
6866f958c1
commit
6d7dd09e8a
@ -6209,6 +6209,7 @@ qemuBuildIOMMUCommandLine(virCommand *cmd,
|
|||||||
"S:eim", qemuOnOffAuto(iommu->eim),
|
"S:eim", qemuOnOffAuto(iommu->eim),
|
||||||
"T:device-iotlb", iommu->iotlb,
|
"T:device-iotlb", iommu->iotlb,
|
||||||
"z:aw-bits", iommu->aw_bits,
|
"z:aw-bits", iommu->aw_bits,
|
||||||
|
"T:dma-translation", iommu->dma_translation,
|
||||||
NULL) < 0)
|
NULL) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
|
|||||||
-rtc base=utc \
|
-rtc base=utc \
|
||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-boot strict=on \
|
-boot strict=on \
|
||||||
-device '{"driver":"intel-iommu","id":"iommu0","intremap":"on"}' \
|
-device '{"driver":"intel-iommu","id":"iommu0","intremap":"on","dma-translation":false}' \
|
||||||
-audiodev '{"id":"audio1","driver":"none"}' \
|
-audiodev '{"id":"audio1","driver":"none"}' \
|
||||||
-global ICH9-LPC.noreboot=off \
|
-global ICH9-LPC.noreboot=off \
|
||||||
-watchdog-action reset \
|
-watchdog-action reset \
|
||||||
|
Loading…
Reference in New Issue
Block a user