HomeFreeBSD

bhyve: Make the MADT dynamically sized.

Description

bhyve: Make the MADT dynamically sized.

Use basl_ncpu instead of VM_MAXCPU in MADT_SIZE. Since several of the
offsets are no longer compile time constants, unroll the loop
generating ACPI tables.

Reviewed by: grehan
Differential Revision: https://reviews.freebsd.org/D34490

(cherry picked from commit 340a293f9147a37bb71c80a767e37794ca277a28)

Details

Provenance
jhbAuthored on Mar 9 2022, 11:38 PM
Reviewer
grehan
Differential Revision
D34490: bhyve: Make the MADT dynamically sized.
Parents
rG2412b82929a6: bhyve: Allocate mmio_hint array based on number of guest CPUs.
Branches
Unknown
Tags
Unknown