HomeFreeBSD

bhyve: add helper to read PCI IDs from bhyve config

Description

bhyve: add helper to read PCI IDs from bhyve config

Changing the PCI IDs is valuable in some situations. The Intel GOP
driver requires that some PCI IDs of the LPC bridge are aligned with the
physical values of the host LPC bridge. Another use case are oracles
virtio driver. They require different subvendor ID than the default one.
For that reason, create a helper which makes it easy to read PCI IDs
from bhyve config. Additionally, this helper ensures that all emulation
devices are using the same config keys.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D38402

Details

Provenance
corvinkAuthored on Feb 6 2023, 10:43 AM
Reviewer
jhb
Differential Revision
D38402: bhyve: add helper to read pci ids from bhyve config
Parents
rG107597fbd4dc: rarpd(8): Fix a typo in a source code comment
Branches
Unknown
Tags
Unknown