<?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>293470</bug_id>
          
          <creation_ts>2026-02-26 19:49:46 +0000</creation_ts>
          <short_desc>bhyve: VMs with NUMA configuration fail to start with certain devices</short_desc>
          <delta_ts>2026-02-28 11:54:57 +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>bhyve</component>
          <version>CURRENT</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>Works As Intended</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Only Me</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roman Bogorodskiy">novel</reporter>
          <assigned_to name="freebsd-virtualization (Nobody)">virtualization</assigned_to>
          <cc>bnovkov</cc>
    
    <cc>markj</cc>
    
    <cc>michaelo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1409113</commentid>
    <comment_count>0</comment_count>
    <who name="Roman Bogorodskiy">novel</who>
    <bug_when>2026-02-26 19:49:46 +0000</bug_when>
    <thetext>Initial test:

bhyve -c 8 -n id=0,size=2048,cpus=0-3 -n id=1,size=2048,cpus=4-7 -m 4096 \
       -u -H -P \
       -s 0:0,hostbridge \
       -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
       -s 1:0,lpc -s 4:0,e1000,slirp,open \
       -s 5:0,virtio-blk,/data/img/fedora.img \
       -s 6:0,fbuf,tcp=127.0.0.1:5944 \
       -l com1,stdio fedora

This boots fine.

Just for the info, `numactl --hardware` shows the following:

available: 2 nodes (0-1)
node 0 cpus: 0 1 2 3
node 0 size: 2013 MB
node 0 free: 1093 MB
node 1 cpus: 4 5 6 7
node 1 size: 1890 MB
node 1 free: 1035 MB
node distances:
node     0    1 
   0:   10   20 
   1:   20   10 

Configurations that do not boot:

1. Replacing e1000 with virtio-net.

bhyve prints:
fbuf frame buffer base: 0x1728d7200000 [sz 33554432]

I can connect with VNC, but only see a black screen.
When running `bhyvectl --destroy` on it, it prints:

vm_run error -1, errno 6
vm_run error -1, errno 6
vm_run error -1, errno 6
vm_run error -1, errno 6
vm_run error -1, errno 6
vm_run error -1, errno 6
vm_run error -1, errno 6

2. Same command, keeping e1000, but adding &quot;-s 2:0,xhci,tablet&quot; leads to the same result.

3. Same command, keeping e1000, but adding &quot;-s 2:0,virtio-rnd&quot; leads to the same result.

I&apos;m running -CURRENT as of end of January. I didn&apos;t use this feature previously, so don&apos;t know if it worked previously with these devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409123</commentid>
    <comment_count>1</comment_count>
    <who name="Bojan Novković">bnovkov</who>
    <bug_when>2026-02-26 20:07:20 +0000</bug_when>
    <thetext>(In reply to Roman Bogorodskiy from comment #0)

Do you have a link to the fedora image you are using?

I tried booting a -CURRENT VM and a Debian 12 VM with all three cases you provided and I couldn&apos;t replicate the hangs you are seeing.
I&apos;m on -CURRENT from a similar period (&apos;080d8ed7dd29&apos;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409127</commentid>
    <comment_count>2</comment_count>
    <who name="Roman Bogorodskiy">novel</who>
    <bug_when>2026-02-26 20:15:49 +0000</bug_when>
    <thetext>(In reply to Bojan Novković from comment #1)

&gt; I&apos;m on -CURRENT from a similar period (&apos;080d8ed7dd29&apos;).

Oh yeah, I&apos;m actually still running your hotplug branch :)

I can reproduce the issue with the unmodified FreeBSD image also:

https://download.freebsd.org/releases/VM-IMAGES/15.0-RELEASE/amd64/Latest/FreeBSD-15.0-RELEASE-amd64-ufs.raw.xz

PS I tried similar scenarios on 15.0-RELEASE-p2 and wasn&apos;t able to reproduce the issue. This was a super quick test though, it uses a different topology (bhyve -c 4 -m 4096 -n id=0,size=2048,cpus=0-1) as I have less CPUs there, and uses a different image and also different PCI addresses. A bit later I&apos;ll do a proper test where only the host is different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1409295</commentid>
    <comment_count>3</comment_count>
    <who name="Roman Bogorodskiy">novel</who>
    <bug_when>2026-02-28 11:54:57 +0000</bug_when>
    <thetext>(In reply to Bojan Novković from comment #1)

I&apos;ve updated to a slightly fresher -CURRENT (20285cad7a55ecd0020f51f3daee74db8b1ea5a0; maybe just a couple of days difference from the original branch; cannot run newer versions because of the other unrelated issue) and it works for me.

So it looks like a possible regression in the hotplug branch, not in the mainline -CURRENT. Closing this PR, sorry for the false alert.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>