xen/arm: Allow device-passthrough even the IOMMU is off
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 14 Feb 2022 03:19:48 +0000 (03:19 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 17 Feb 2022 19:43:02 +0000 (19:43 +0000)
commit02d552627c2b2b4e8874ff9b6e9a47b728964c18
treeec6f7a781d01873966214f22d9e025dbe122ef4d
parent80e2005373dd40f9d4696e78f1f9ddef2e978abf
xen/arm: Allow device-passthrough even the IOMMU is off

At the moment, we are only supporting device-passthrough when Xen has
enabled the IOMMU. There are some use cases where it is not possible to
use the IOMMU (e.g. doesn't exist, hardware limitation, performance) yet
it would be OK to assign a device to trusted domain so long they are
direct-mapped or the device doesn't do DMA.

Note that when the IOMMU is disabled, it will be necessary to add
xen,force-assign-without-iommu for every device that needs to be assigned.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c