From nobody Sun Dec 14 02:51:47 2025 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dTSQG1B1hz6KYpf for ; Sun, 14 Dec 2025 02:51:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dTSQF6dhzz3hJH for ; Sun, 14 Dec 2025 02:51:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765680709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZUKUmzybLddb0xSEEsNxPjeGz5iSw4wsSSfTH+ngFYU=; b=N1ab2f2Z7GHHcXWd/n4AZ4oLGYEilFlbYxPMdwYDFrGvwsDL4sK9hV8uR3LH6QFeZjalq0 Yec0Cm1sOD5BIcwSMsudHnGmXYDAUOV5l0krrXak3JeEG/ZqhUx0R2msBSx5ZLE5IhgVMX ehzm1a2VqSPtw6R63eJknANc+YH7KGbW0ZPB9Alz8iuhfJPbwPmab7+sZ+PjAkXjQpNugP eMOlfOC74LjFa1LDRMrVMHc2sW0FnGkxMt3t009R0Td4q06jpVEoLmoy5PrnQM16DijA1P AiYd223T5TSHIolO7PeVP3Tdr0LayFrnRs6JSbaDryhIOFtsV1lX4E0dB33lUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765680709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZUKUmzybLddb0xSEEsNxPjeGz5iSw4wsSSfTH+ngFYU=; b=FQPjSmjn8ouyTC0zXwboWb6SSFfZI1ObIZ7Bm9x0DZFG3pCx/QdE2sBTMwNNNolHj7Ix3n mOSd3EDW18H+ysA+VnrNVIuJ3s+24rgk8LpUcWQLneZk+gH2CK/F6GUWYzogJ0Aw+0Xubs nFPApSs9X61YrMJpOSg9xyJtcdJrzm7M/QTU+VvKHxhVaP0y9dnEwBA3LihkXbccGuksUA 6LgMFfJZbFVt7ceN5Co2LMYQ9/nHE/aPmdB25cB1nKDQ1g3lufOPWWX+kByil7bMZziDQH 0ulvDfqs/FdNJpYwfguGNx/1cmkUAj82GsuE5bhXbY2+cQ8PyZff1U+1rZmDUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765680709; a=rsa-sha256; cv=none; b=TcxEOrPBpmmcORCKhQyBnGqJKkVqx5QHHAKur2wQcTvcqiwV2dhEIT5sIcMvdPzPgNrfac 6lmpNS6jJkOD9iD2R8lNPVazSKE/XMpyKLZTi2l1z3IvtaSXXV3cBVU9R5YAKEUlPMr5Qd 4cO/l+CMFd9h8OKItaUwPCqNP4RAqNyYq7tFNR08EKqcCOPWKmSs4trOCE8WqYhHL6X36+ pHxvKxNsDW6jBwdsFhe2PPZzDys8TH2KOqQQyynWi4OrfDY9ZYFMyMNgA0OH14LazwZiy7 cwPaY2TW970VWKf1QYpqOUDRT0gAl9Okne9xJ1ilYnA1l3EsAgS2cJ046UvsuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dTSQF64WKz16c for ; Sun, 14 Dec 2025 02:51:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5BE2pnoo007653 for ; Sun, 14 Dec 2025 02:51:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BE2pnAe007652 for virtualization@FreeBSD.org; Sun, 14 Dec 2025 02:51:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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) Date: Sun, 14 Dec 2025 02:51:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-STABLE X-Bugzilla-Keywords: regression, uefi X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dan@sunsaturn.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290920 --- Comment #27 from dan@sunsaturn.com --- (In reply to Bojan Novkovi=C4=87 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 t= he 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 =20=20=20 +--------------------------------------------------------------------------= ---------------+ | NVIDIA-SMI 580.95.05 Driver Version: 580.95.05 CUDA Versi= on: 13.0 | =20=20=20 +-----------------------------------------+------------------------+-------= ---------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap |=20=20=20=20=20=20= =20=20=20=20=20 Memory-Usage | GPU-Util Compute M. | | | = |=20=20=20 MIG M. | =20=20=20 |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| | 0 Tesla V100-PCIE-16GB Off | 00000000:00:06.0 Off |= =20=20=20=20 0 | | N/A 49C P0 46W / 250W | 1272MiB / 16384MiB= |=20=20 0% Default | | | = |=20=20=20 N/A | =20=20=20 +-----------------------------------------+------------------------+-------= ---------------+ =20=20=20 +--------------------------------------------------------------------------= ---------------+ | Processes:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | | GPU GI CI PID Type Process name=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 GPU Memory | | ID ID=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Usage | =20=20=20 |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| | 0 N/A N/A 1193 C python3=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1268MiB | =20=20=20 +--------------------------------------------------------------------------= ---------------+ 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 Plu= s V2 Bus 006 Device 002: ID fb5d:0001 BHYVE HID Tablet # This fix appears ready for commitment. --=20 You are receiving this mail because: You are the assignee for the bug.=