From the email sent to the freebsd-virtualization list, subject "High vCPU Counts in bhyve" https://lists.freebsd.org/pipermail/freebsd-virtualization/2016-September/004721.html The cause and fix was described in a follow-on post: https://lists.freebsd.org/pipermail/freebsd-virtualization/2016-September/004724.html This PR will track the fix.
Return to the mailing list.
I will take it.
For reference, this ticket is being discussed on this review: https://reviews.freebsd.org/D18755
(In reply to Marcelo Araujo from comment #3) A proposed fix is now available in https://reviews.freebsd.org/D18815
A commit references this bug: Author: rgrimes Date: Thu Apr 25 22:52:44 UTC 2019 New revision: 346715 URL: https://svnweb.freebsd.org/changeset/base/346715 Log: 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 Changes: head/usr.sbin/bhyve/acpi.c
A commit references this bug: Author: rgrimes Date: Sat May 4 13:43:49 UTC 2019 New revision: 347124 URL: https://svnweb.freebsd.org/changeset/base/347124 Log: MFC: r346715: 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, implicit), jhb (maintainer) Differential Revision: https://reviews.freebsd.org/D18815 Changes: _U stable/11/ stable/11/usr.sbin/bhyve/acpi.c _U stable/12/ stable/12/usr.sbin/bhyve/acpi.c