Some PCI register of passthru devices require a special handling. E.
g. MSI registers are emulated by bhyve. Additionally, some PCI
devices like Intel's integrated graphics device require that some
PCI registers are handled in a non standard way. Instead of using
many if's for each special case, use different handlers. Each
passthru device has an own set of handlers.
This patch uses handlers to emulate some PCI header register.At the moment, It can be expanded to use a specialthis patch only uses handler for cmd/msi/... register accesses in the future.
s to emulate some PCI
header register. Note: It might add more complexityIt can be expanded to use a special handler for now. However,
cmd/msi/... it'll simplify the emulation of some special registers like those used by GVT-d (see D26209) accesses in the future.