Page MenuHomeFreeBSD

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

Authored by corvink on Jun 12 2025, 1:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 8, 6:28 PM
Unknown Object (File)
Fri, Jul 4, 10:27 PM
Unknown Object (File)
Fri, Jul 4, 8:51 AM
Unknown Object (File)
Tue, Jul 1, 9:32 AM
Unknown Object (File)
Mon, Jun 30, 2:42 PM
Unknown Object (File)
Mon, Jun 30, 8:00 AM
Unknown Object (File)
Mon, Jun 30, 7:04 AM
Unknown Object (File)
Wed, Jun 25, 11:49 PM
Subscribers

Details

Reviewers
jhb
markj
Group Reviewers
bhyve
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.Mon, Jun 30, 6:24 PM