You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GPU information cannot be queried after virtual machine GPU pass through. By traversing the PCI information, it is found that the driver is not NVIDIA but vfio PCI. Can I add a vendor Name judge whether the PCI identification is GPU
#314
Open
huyuan1999 opened this issue
Apr 17, 2022
· 5 comments
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?
The text was updated successfully, but these errors were encountered: