lkml.org 
[lkml]   [2021]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 8/9] vfio/pci: use x86 naming instead of igd
On Wed, Feb 03, 2021 at 09:54:48AM -0400, Jason Gunthorpe wrote:
> If people are accepting that these device-specific drivers are
> required then we need to come to a community consensus to decide what
> direction to pursue:
>
> * Do we embrace the driver core and use it to load VFIO modules like a
> normal subsytem (this RFC)
>
> OR
>
> * Do we make a driver-core like thing inside the VFIO bus drivers and
> have them run their own special driver matching, binding, and loading
> scheme. (May RFC)
>
> Haven't heard a 3rd option yet..

The third option would be to use the driver core to bind the VFIO
submodules. Define a new bus for it, which also uses the normal PCI IDs
for binding, and walk through those VFIO specific drivers when vfio_pci
is bound to a device. That would provide a pretty clean abstraction
and could even keep the existing behavior of say bind to all VGA devices
with an Intel vendor ID (even if I think that is a bad idea).

\
 
 \ /
  Last update: 2021-02-11 09:58    [W:0.372 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site