Re:Struck by a Thunderbolt
by ncmncm on Tuesday February 26, 2019 @03:59PM
(#19258259)
I have been warned against turning on IOMMU because the code to operate it is so little exercised, and therefore buggy. A crashed kernel is secure only in that it stops running.
[ Parent
| on HN ]
On the other hand IOMMU helps protecting system memory not just against malicious but also faulty devices that could otherwise write anywhere.
And people who use GPU passthrough rely on IOMMUs, so it's not like those code paths are not being exercised.
Using IOMMU through the "userspace PCI" vfio driver, as done in pass-through scenarios, is a different path than using it through the DMA API.
Re:Struck by a Thunderbolt
by walterbell on Wednesday February 27, 2019 @07:48AM
(#19262891)
IOMMU is also exercised by Xen PCI passthrough (e.g. QubesOS network and USB driver VMs) and SR-IOV (e.g. AWS Nitro networking).