Page MenuHomeFreeBSD

bhyve: scan PCI device ID to properly set BDSM address
ClosedPublic

Authored by corvink on Jun 12 2025, 1:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 5, 3:18 PM
Unknown Object (File)
Sat, Aug 2, 11:12 PM
Unknown Object (File)
Sat, Aug 2, 11:02 PM
Unknown Object (File)
Tue, Jul 29, 9:08 AM
Unknown Object (File)
Tue, Jul 29, 9:08 AM
Unknown Object (File)
Tue, Jul 29, 1:32 AM
Unknown Object (File)
Fri, Jul 25, 5:52 AM
Unknown Object (File)
Fri, Jul 25, 5:39 AM
Subscribers

Details

Summary

The address and size of the BDSM register has changed in recent Intel GPUs. To
account for that change, we have to detect the GPU generation. We've recently
added all known PCI IDs of Intel GPUs from Linux. Make use of this header to
scan the device ID and properly set the BDSM address.

Note that even though a bunch of devices is listed in our device array, not all
device will work properly. Especially some old devices may not support VT-d,
required for passthrough in general, at all.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65114
Build 61997: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/amd64/pci_gvt-d.c
57
59
70
83
  • fix style issues
  • make global variables const
This revision is now accepted and ready to land.Jun 30 2025, 6:24 PM