Re: [PATCH 0/2] rust: pci: expose is_virtfn() and reject VFs in nova-core
From: Jason Gunthorpe
Date: Thu Oct 02 2025 - 08:05:24 EST
On Wed, Oct 01, 2025 at 05:54:45PM -0700, John Hubbard wrote:
> saying the reason for this is because the VFs share the same device
> IDs when in reality we have 2 different drivers that handle the
> different functions.
That's the fundamental problem here. Presenting the same device ID
when the device actually has a very different programming model is
against how PCI is supposed to operate.
For examplem mlx5 devices give unique IDs to their VFs - though they
don't have different programming models.
If novacore doesn't work on VFs at all, even in VMs, then use the
register based detection that was said earlier.
Jason