Files
tinygrad/docs/developer
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
..
2026-04-25 19:33:04 +03:00
2025-07-18 16:34:18 +03:00
2026-04-27 23:12:03 +03:00
2025-02-20 18:03:09 -05:00
2026-06-02 18:53:05 -07:00
2025-05-18 11:38:28 -07:00