Files
tinygrad/docs
geohot 997685493e pci: route DMA through vfio type1v2 when the device is behind an IOMMU
A misbehaving device doing raw DMA to host memory used to take the whole
system down (fatal machine check from corrupted/poisoned memory). When
the device is managed by a real IOMMU, bind it to vfio-pci and pin every
page exposed to the device (sysmem allocations, mapped CPU buffers) into
the container at iova=paddr, so a wild DMA faults in the IOMMU instead
of corrupting host memory. Falls back to vfio no-iommu (with a warning)
when no IOMMU is available. Also map BARs through the vfio device fd,
since sysfs BAR mappings are revoked under vfio-pci.
2026-08-06 10:41:56 -07:00
..
2023-06-16 18:55:19 -07:00
2026-07-28 19:30:13 -04:00
2026-04-22 17:25:18 -04:00
2024-05-27 14:32:09 -07:00
2025-05-17 16:39:14 -07:00
2025-11-22 20:49:56 -08:00
2024-10-13 19:39:06 +08:00