HomeFreeBSD

bhyve: add hook for PCI header of passthru devices

Description

bhyve: add hook for PCI header of passthru devices

Most register of the PCI header are either constant values or require
emulation anyway. The command and status register are the only exception which
require hardware access. So, we're adding an emulation handler for all
other register.

As this emulation handler will be reused by some future features like
GPU passthrough, we directly export it.

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

(cherry picked from commit b6e67875a3e5bc706fe37565e464c61fe7833846)

Details

Provenance
corvinkAuthored on Sep 7 2021, 11:42 AM
Reviewer
markj
Differential Revision
D33010: bhyve: add hook for PCI header of passthru devices
Parents
rG847adbb116fb: bhyve: define array to protect passthru regs
Branches
Unknown
Tags
Unknown