HomeFreeBSD

bhyve: enumerate BARs by size

Description

bhyve: enumerate BARs by size

E.g. Framebuffers can require large space and BARs need to be aligned
by their size. If BARs aren't allocated by size, it'll cause much
fragmentation of the MMIO space. Reduce fragmentation by ordering
the BAR allocation on their size to reduce the risk of
OUT_OF_MMIO_SPACE issues.

Reviewed by: markj
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D28278

(cherry picked from commit 01f9362ef4eb14b041ccdf935fccf0f794074258)

Details

Provenance
corvinkAuthored on Jan 3 2022, 1:16 PM
manuCommitted on Jan 17 2022, 12:53 PM
Reviewer
markj
Differential Revision
D28278: bhyve: enumerate BARs by size
Parents
rGe4dd9ce81bee: gpart(8): MFC: add minimal reference to glabel(8) to manual page
Branches
Unknown
Tags
Unknown