[RFCv2 PATCH 31/36] iommu/arm-smmu-v3: Add support for PCI ATS
Jean-Philippe Brucker
jean-philippe.brucker at arm.com
Fri Nov 17 03:39:25 PST 2017
On 17/11/17 06:11, Bharat Kumar Gogada wrote:
[...]
> Thanks Jean, I see that currently vfio_group_fops_open does not allow multiple instances.
> If a device supports multiple PASID there might be different applications running parallel.
> So why is multiple instances restricted ?
You can't have multiple processes owning the same PCI device, it's
unmanageable.
For using multiple PASIDs, my idea was that the userspace driver ("the
server"), that owns the device, would have a way to partition it into
smaller frames. It forks to create "clients" and assigns a PASID to each
of them (by issuing VFIO_BIND(client_pid) -> pasid, then writing the PASID
into a privileged MMIO frame that defines the partition properties). Each
client accesses an unprivileged MMIO frame to use a device partition (or
sends commands to the server via IPC), and can perform DMA on its own
virtual memory.
This is complete speculation of course, we have very little information on
how PASID-capable devices will be designed, so I'm trying to imagine
likely scenarios.
Thanks,
Jean
More information about the linux-arm-kernel
mailing list