4 ms·
> Wouldn't it be nice if the OS managed an IOMMU so the peripheral device could not access memory it is not allowed to access? I would be entirely unsurprised
by bpye 5y ago
> Wouldn't it be nice if the OS managed an IOMMU so the peripheral device could not access memory it is not allowed to access?
I would be entirely unsurprised if a lot of device drivers didn't use the correct method to get a DMA buffer - meaning that this would just break them...
- yjftsjthsd-h 5y agoOkay, but Linux is a monorepo; it might be a lot of work if they can't be automatically fixed, but you could change the standard and switch over every single driver at once. (Ignoring, of course, out of tree drivers, which I suppose shouldn't be totally ignored but which aren't generally viewed as blockers.)
- temac 5y agoIf I remember correctly, if an IOMMU is present it is enabled by default on modern Linux versions. Most drivers should be fine now.