Re: [PATCH v2 3/6] iommufd: Initializing and releasing IO page fault data

From: Jason Gunthorpe
Date: Wed Dec 13 2023 - 08:20:08 EST


On Wed, Dec 13, 2023 at 02:15:28AM +0000, Tian, Kevin wrote:
> > From: Baolu Lu <baolu.lu@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, December 13, 2023 10:05 AM
> > >
> > >> 2. This is not intended to work only with idxd and uacce. right?
> > > It should work everywhere, I suspect Intel Team didn't hit this
> > > because they are testing IDXD SIOV?
> >
> > Yes.
> >
> > > Can you guys also test it as a PF
> > > assignment?
> >
> > For PF assignment, probably the driver (vfio-pci) needs to enable iopf.
> >
>
> We haven't merged anything for SIOV yet.
>
> so the base of this series should be PCI functions (PF or VF) and vfio-pci
> has to be extended with whatever required to support iopf.

Right. I suggest you target full idxd device assignment to a guest
with working PRI/etc as a validation.

Jason