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

Details

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