Open huyuan1999 opened 2 years ago
Hi @huyuan1999 ! Thanks for the report. I understand parts of the problem, because indeed inside a VM a VFIO device can be misreported, but I'm not completely sure what's the question here, could you please elaborate?
Are you requesting for example a way to override the pci.db
?
I think what @huyuan1999 is looking for is a way to determine if a PCI device with a nvidia device.Vendor.Name
is a GPU or not.
Since device.Driver
does not return nvidia
but vfio-pci
, we cannot rely on that property.
We are facing the same problem here. A possible workaround would be to check if device.Class.Name
is a Display controller
. @fromanirh is it reasonable to do it that way?
Same issue here, any updates?
Thanks for elaborating. Rather than make logic on the name, I'd indeed make logic on device class. I'd use ids rather than names.
Is the gpu
subpackage returning the correct information?