HomeFreeBSD

bhyve: Validate host PAs used to map passthrough BARs.

Description

bhyve: Validate host PAs used to map passthrough BARs.

Reject attempts to map host physical address ranges that are not
subsets of a passthrough device's BAR into a guest.

Reviewed by: markj, emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36238

(cherry picked from commit c94f30ea85b745a5137471876013f79689e0af03)

Details

Provenance
jhbAuthored on Aug 19 2022, 9:59 PM
Reviewer
markj
Differential Revision
D36238: bhyve: Validate host PAs used to map passthrough BARs.
Parents
rG9a647d96eb3c: pci: Add helper routines to iterate over a device's BARs.
Branches
Unknown
Tags
Unknown