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

(cherry picked from commit 563fd2240e13cfb53f6e5d50e9d1dc738b7c441e)

Details

Provenance
corvinkAuthored on Mar 10 2022, 10:26 AM
manuCommitted on May 16 2022, 12:41 PM
Reviewer
markj
Differential Revision
D33769: bhyve: export funcs for read/write pci config
Parents
rG72bcf2fe9041: libutil: eliminate one syscall from kinfo_getproc
Branches
Unknown
Tags
Unknown