<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>212782</bug_id>
          
          <creation_ts>2016-09-18 03:37:29 +0000</creation_ts>
          <short_desc>[bhyve] Increasing VM_MAXCPU to &gt;= 26 will result in ACPI MADT table corruption</short_desc>
          <delta_ts>2019-05-04 13:49:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Base System</product>
          <component>kern</component>
          <version>CURRENT</version>
          <rep_platform>amd64</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Some People</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Grehan">grehan</reporter>
          <assigned_to name="Rodney W. Grimes">rgrimes</assigned_to>
          <cc>araujo</cc>
    
    <cc>olevole</cc>
    
    <cc>rgrimes</cc>
    
    <cc>seanc</cc>
    
    <cc>trentnthompson</cc>
    
    <cc>virtualization</cc>
          

      

      

      <flag name="mfc-stable12"
          id="36660"
          type_id="9"
          status="+"
          setter="rgrimes"
    />
    <flag name="mfc-stable11"
          id="36659"
          type_id="8"
          status="+"
          setter="rgrimes"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>898265</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Grehan">grehan</who>
    <bug_when>2016-09-18 03:37:29 +0000</bug_when>
    <thetext>From the email sent to the freebsd-virtualization list, subject &quot;High vCPU Counts in bhyve&quot;

 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998519</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Linimon">linimon</who>
    <bug_when>2018-06-21 07:08:40 +0000</bug_when>
    <thetext>Return to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998525</commentid>
    <comment_count>2</comment_count>
    <who name="Marcelo Araujo">araujo</who>
    <bug_when>2018-06-21 07:27:23 +0000</bug_when>
    <thetext>I will take it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1030700</commentid>
    <comment_count>3</comment_count>
    <who name="Marcelo Araujo">araujo</who>
    <bug_when>2019-01-08 16:59:31 +0000</bug_when>
    <thetext>For reference, this ticket is being discussed on this review: https://reviews.freebsd.org/D18755</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1031285</commentid>
    <comment_count>4</comment_count>
    <who name="Rodney W. Grimes">rgrimes</who>
    <bug_when>2019-01-11 01:12:00 +0000</bug_when>
    <thetext>(In reply to Marcelo Araujo from comment #3)
A proposed fix is now available in https://reviews.freebsd.org/D18815</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1048641</commentid>
    <comment_count>5</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2019-04-25 22:53:45 +0000</bug_when>
    <thetext>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 &gt; 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 &lt;patrick.mooney@joyent.com&gt;
  Approved by:		bde (mentor), jhb (maintainer)
  MFC after:		3 days
  Differential Revision:	https://reviews.freebsd.org/D18815

Changes:
  head/usr.sbin/bhyve/acpi.c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1049677</commentid>
    <comment_count>6</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2019-05-04 13:44:23 +0000</bug_when>
    <thetext>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 &gt; 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 &lt;patrick.mooney@joyent.com&gt;
  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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>