Re: [PATCH 0/2] rust: pci: expose is_virtfn() and reject VFs in nova-core
From: Jason Gunthorpe
Date: Thu Oct 02 2025 - 08:02:07 EST
On Thu, Oct 02, 2025 at 12:52:10AM +0200, Danilo Krummrich wrote:
> Indicating whether the driver supports VFs through a boolean in struct
> pci_driver is about the same effort (well, maybe slightly more), but solves the
> problem in a cleaner way since it avoids probe() being called in the first
> place. Other existing drivers benefit from that as well.
I'm strongly against that idea.
Drivers should not be doing things like this, giving them core code
helpers to do something they should not do is the wrong direction.
I think this patchset should be simply dropped. Novacore should try to
boot on a VF and fail if it isn't setup.
Jason