Re: [RFC PATCH v2 00/58] KVM: Arm SMMUv3 driver for pKVM

From: Jason Gunthorpe
Date: Wed Jan 22 2025 - 11:21:34 EST


On Wed, Jan 22, 2025 at 11:04:24AM +0000, Mostafa Saleh wrote:
> AFAIK, the most common use cases would be:
> - Devices using DMA API because it requires a lot of memory to be
> contiguous in IOVA, which is hard to do with identity

This is not a feature of the DMA API any driver should rely on .. Are
you aware of one that does?

> - Devices with security requirements/constraints to be isolated from the
> rest of the system, also using DMA API

This is real, but again, in a mobile context does this even exist? It isn't
like there are external PCIe ports that need securing on a phone?

> - VFIO is something we are looking at the moment and have prototyped with
> pKVM, and it should be supported soon in Android (only for platform
> devices for now)

Yes, this makes sense

Jason