]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Acpi MADT table correction for VM_MAXCPU > 21
authorrgrimes <rgrimes@FreeBSD.org>
Thu, 25 Apr 2019 22:52:44 +0000 (22:52 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Thu, 25 Apr 2019 22:52:44 +0000 (22:52 +0000)
commit5822161300bbbbfda9919d5f9b011a7ecb192907
treef2fbaa86ae01e3a266d85299e751a3cd2afb59ae
parenta22435f822d910a21dcd448e6b687a7216003f89
Acpi MADT table correction for VM_MAXCPU > 21

The bhyve acpi MADT table was given a static space of 256 (0x100) bytes,
this is enough space to allow VM_MAXCPU to be 21, this patch changes that
so VM_MAXCPU can be of arbitrary value and not overflow the space by
actually calculating the space needed for the table.

PR: 212782
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: bde (mentor), jhb (maintainer)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18815
usr.sbin/bhyve/acpi.c