HomeFreeBSD

bhyve: export funcs for read/write pci config

Description

bhyve: export funcs for read/write pci config

Export functions for reading and writing the pci config space from passthru
device to be used by other devices.
This is required for lpc devices to set their vendor/device ids to their
physical values.
Otherwise, GPU passthrough for integrated Intel GPUs won't work properly.

Differential Revision: https://reviews.freebsd.org/D33769
Reviewed by: markj
Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 1 month

Details

Provenance
c.koehne_beckhoff.comAuthored on Mar 10 2022, 10:26 AM
manuCommitted on Mar 10 2022, 11:30 AM
Reviewer
markj
Differential Revision
D33769: bhyve: export funcs for read/write pci config
Parents
rGb344de4d0d16: Extend device_get_property API
Branches
Unknown
Tags
Unknown