HomeFreeBSD

bhyve: verify OpRegion size

Description

bhyve: verify OpRegion size

If the OpRegion size doesn't match the size of our igd_opregion struct, it's
using a different layout than we're expecting. To avoid strange issues, we
should exit hard. If we see any devices in the field with a different OpRegion
size, we can analyse it and fix it accordingly.

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

Details

Provenance
corvinkAuthored on Dec 15 2023, 11:46 AM
Reviewer
markj
Differential Revision
D45335: bhyve: verify OpRegion size
Parents
rG5e09c5a1ed66: bhyve: use correct size to map the OpRegion
Branches
Unknown
Tags
Unknown