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, Jul 28, 3:16 AM
Unknown Object (File)
Mon, Jul 27, 11:09 AM
Unknown Object (File)
Sun, Jul 26, 5:24 PM
Unknown Object (File)
Sun, Jul 26, 3:21 AM
Unknown Object (File)
Sat, Jul 25, 5:59 AM
Unknown Object (File)
Sat, Jul 25, 12:18 AM
Unknown Object (File)
Tue, Jul 21, 4:43 PM
Unknown Object (File)
Sat, Jul 18, 11:32 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