ANDROID: GKI: x86: Enable INTEL_IOMMU
pKVM-IA requires Intel IOMMU support for enforcing DMA isolation of protected VMs memory. Also regardless of pKVM, we want to enable IOMMU on chromebooks to enforce DMA isolation of untrusted devices (e.g. WiFi, external Thunderbolt devices) within the host. By default enable IOMMU in PASSTHROUGH mode, i.e. with identity mapping (i.e. no DMA isolation within the host), to avoid pKVM's IOMMU virtualization overhead for most devices (except untrusted devices, for which kernel will enforce STRICT mode instead of PASSTHROUGH anyway). Signed-off-by:Dmytro Maluka <dmaluka@google.com> Bug: 349990461 Bug: 379814782 Test: "grep . /sys/bus/pci/devices/*/iommu_group/type" shows IOMMU domains of PCI devices. Change-Id: Ied41b5c388368bb3bebfdb3dead3513ecc9cf4bb Signed-off-by:
Tomasz Nowicki <tnowicki@google.com>
Loading
Please sign in to comment