Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

From: Dan Williams
Date: Mon Nov 02 2020 - 14:26:18 EST


On Mon, Nov 2, 2020 at 10:52 AM Jason Gunthorpe <jgg@xxxxxxxxxx> wrote:
>
> On Mon, Nov 02, 2020 at 10:38:28AM -0800, Dan Williams wrote:
>
> > > I think you will be the first to use the namespace stuff for this, it
> > > seems like a good idea and others should probably do so as well.
> >
> > I was thinking either EXPORT_SYMBOL_NS, or auxiliary bus, because you
> > should be able to export an ops structure with all the necessary
> > callbacks.
>
> 'or'?
>
> Auxiliary bus should not be used with huge arrays of function
> pointers... The module providing the device should export a normal
> linkable function interface. Putting that in a namespace makes a lot
> of sense.

True, probably needs to be a mixture of both.