3 ms·
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
by ncmncm 8y ago
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.
- the8472 8y agoOn 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.
- bonzini 8y agoUsing IOMMU through the "userspace PCI" vfio driver, as done in pass-through scenarios, is a different path than using it through the DMA API.
- walterbell 8y agoIOMMU is also exercised by Xen PCI passthrough (e.g. QubesOS network and USB driver VMs) and SR-IOV (e.g. AWS Nitro networking).
- bonzini 8y agoThe problem isn't bugs in the IOMMU, it's bugs or performance issues in using the DMA API with an IOMMU.