[PATCH hyperv-next 5/6] arch, drivers: Add device struct bitfield to not bounce-buffer
Jason Gunthorpe
jgg at ziepe.ca
Thu Apr 10 16:44:57 PDT 2025
On Thu, Apr 10, 2025 at 09:23:54AM +0200, Christoph Hellwig wrote:
> On Wed, Apr 09, 2025 at 04:30:17PM -0700, Dan Williams wrote:
> > > Thanks, I should've highlighted that facet most certainly!
> >
> > One would hope that no one is building a modern device with trusted I/O
> > capability, *and* with a swiotlb addressing dependency. However, I agree
> > that a non-shared swiotlb would be needed in such a scenario.
>
> Hope is never a good idea when dealing with hardware :( PCIe already
> requires no addressing limitations, and programming interface specs
> like NVMe double down on that. But at least one big hyperscaler still
> managed to build such a device.
>
> Also even if the periphal device is not addressing limited, the root
> port or interconnect might still be, we've seen quite a lot of that.
Still it would be very obnoxious for someone to build a CC VM platform
where CC DMA devices can't access all the guest physical memory in the
CC address map :\
Keeping in mind that that the CC address map is being created by using
the CPU MMU and the CPU IOMMU so it is entirely virtual and can be
configured to match most problems the devices might have.
Too much memory would be the main issue..
IMHO I wouldn't implement secure SWIOTLB until someone does such a
foolish thing, and I'd make them do the work as some kind of pennance
:P
Jason
More information about the linux-arm-kernel
mailing list