Re: [PATCH 1/1] pci: don't skip function 0 occupancy verification for devfn auto assign

2024-07-20 Thread Michael S. Tsirkin
On Sun, Jul 07, 2024 at 09:10:56PM -0700, Dongli Zhang wrote: > When the devfn is already assigned in the command line, the > do_pci_register_device() may verify if the function 0 is already occupied. > > However, when devfn < 0, the verification is skipped because it is part of > the last "else i

[PATCH 1/1] pci: don't skip function 0 occupancy verification for devfn auto assign

2024-07-07 Thread Dongli Zhang
When the devfn is already assigned in the command line, the do_pci_register_device() may verify if the function 0 is already occupied. However, when devfn < 0, the verification is skipped because it is part of the last "else if". For instance, suppose there is already a device at addr=00.00 of a