Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2025 02:51:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 290920] FreeBSD 15 Regression: BHyve PCI Passthrough Broken on 15-STABLE (No GSI/Interrupt Remapping Failure)
Message-ID:  <bug-290920-27103-e7Wweni7Qa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-290920-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-290920-27103@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290920

--- Comment #27 from dan@sunsaturn.com ---
(In reply to Bojan Novković from comment #25)

Works perfectly, thank you!

This patch successfully resolves the PCI passthrough failure (previously
observed as 'PCI INT A: no GSI') for multiple device types, confirming the
IOMMU mapping issue in vmm.c is corrected.

Testing Confirms Passthrough for:
* **NVIDIA GPU Passthrough** (Tesla V100)
* **USB Controller Passthrough** (via a PCI-e USB controller hosting
Zigbee/Z-Wave dongles)

---

**Testing Procedure**
The environment was fully synchronized after patching vmm.c and reverting the
previous libvmmapi workaround.

    1. Reverted local libvmmapi.c change to original source (restoring the
userland to a clean state).
    2. Cleaned source, applied the new kernel patch, built, and installed.

    cd /usr/src
    git pull
    make clean cleanworld
    patch -p1 -d /usr/src < /root/freebsd-usb3.patch
    make -j$(sysctl -n hw.ncpu) buildworld
    make -j$(sysctl -n hw.ncpu) buildkernel
    make installkernel
    shutdown -r now
    etcupdate -p
    cd /usr/src; make installworld
    etcupdate -B
    make -DBATCH_DELETE_OLD_FILES delete-old delete-old-libs
    # Reverted the kernel patch for clean future git pulls:
    patch -p1 -R -d /usr/src < /root/freebsd-usb3.patch
    shutdown -r now

---

**Results (Inside Linux Guest VM)**

**1. GPU Passthrough Validation (nvidia-smi)**

    ubuntu:/data/remote/sunsaturn/home/dan # nvidia-smi
    Sat Dec 13 20:48:48 2025
   
+-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 580.95.05        Driver Version: 580.95.05      CUDA Version:
13.0       |
   
+-----------------------------------------+------------------------+----------------------+
    | GPU  Name                   Persistence-M | Bus-Id         Disp.A |
Volatile Uncorr. ECC |
    | Fan  Temp             Perf          Pwr:Usage/Cap |           
Memory-Usage | GPU-Util  Compute M. |
    |                                             |                        |   
          MIG M. |
   
|=========================================+========================+======================|
    |   0  Tesla V100-PCIE-16GB              Off |   00000000:00:06.0 Off |    
               0 |
    | N/A   49C    P0                  46W /  250W |    1272MiB /  16384MiB |  
   0%      Default |
    |                                             |                        |   
          N/A |
   
+-----------------------------------------+------------------------+----------------------+

   
+-----------------------------------------------------------------------------------------+
    | Processes:                                                               
              |
    |  GPU   GI  CI               PID   Type  Process name                     
    GPU Memory |
    |        ID  ID                                                            
       Usage |
   
|=========================================================================================|
    |    0  N/A N/A             1193     C  python3                            
   1268MiB |
   
+-----------------------------------------------------------------------------------------+
    ubuntu:/data/remote/sunsaturn/home/dan #


**2. USB Passthrough Validation (lsusb output)**

    # lsusb
    Bus 005 Device 001: ID 1d6b:0002 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 003 Device 001: ID 1d6b:0002 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 001 Device 001: ID 1d6b:0002 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 006 Device 001: ID 1d6b:0003 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 001 Device 002: ID 303a:4001 Nabu Casa ZWA-2
    Bus 004 Device 001: ID 1d6b:0003 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 002 Device 001: ID 1d6b:0003 Linux 6.12.51-haos xhci-hcd xHCI Host
Controller
    Bus 003 Device 002: ID 10c4:ea60 Itead Sonoff Zigbee 3.0 USB Dongle Plus V2
    Bus 006 Device 002: ID fb5d:0001 BHYVE HID Tablet
    #

This fix appears ready for commitment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-290920-27103-e7Wweni7Qa>