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
F161621242: D50807.id159774.diff
Sun, Jul 5, 9:13 AM
F161543367: D50807.id159774.diff
Sat, Jul 4, 5:12 PM
Unknown Object (File)
Tue, Jun 30, 12:02 AM
Unknown Object (File)
Tue, Jun 23, 4:46 AM
Unknown Object (File)
Sun, Jun 21, 1:34 AM
Unknown Object (File)
Thu, Jun 18, 7:56 PM
Unknown Object (File)
Sun, Jun 7, 8:08 AM
Unknown Object (File)
Jun 4 2026, 2:20 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 Not Applicable
Unit
Tests Not Applicable

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