Re: [RFC v2] /dev/iommu uAPI proposal

Jason Gunthorpe
2021-07-15T12:48:20Z

On Thu, Jul 15, 2021 at 06:49:54AM +0000, Tian, Kevin wrote:

> No. You are right on this case. I don't think there is a way to
> differentiate one mdev from the other if they come from the
> same parent and attached by the same guest process. In this
> case the fault could be reported on either mdev (e.g. the first
> matching one) to get it fixed in the guest.

If the IOMMU can't distinguish the two mdevs they are not isolated
and would have to share a group. Since group sharing is not supported
today this seems like a non-issue

Jason