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)
Mon, Oct 13, 1:39 AM
Unknown Object (File)
Sun, Oct 12, 5:57 PM
Unknown Object (File)
Fri, Oct 10, 3:00 PM
Unknown Object (File)
Wed, Oct 8, 8:56 PM
Unknown Object (File)
Wed, Oct 8, 3:10 AM
Unknown Object (File)
Fri, Oct 3, 7:57 AM
Unknown Object (File)
Thu, Oct 2, 5:52 AM
Unknown Object (File)
Wed, Oct 1, 9:37 PM
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