[Bug 288848] bhyve GPU passthru for NVIDIA not working

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Aug 2025 18:01:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288848

            Bug ID: 288848
           Summary: bhyve GPU passthru for NVIDIA not working
           Product: Base System
           Version: 14.3-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: vincent@landgrafx.de

Dear freebsd dev community,

currently, it is not possible to pass-thru a NVIDIA GPU using bhyve. One is
presented with the following error in the dmesg of e.g. linux:

[ 77.208984] NVRM: Can't find an IRQ for your NVIDIA card!
[ 77.212697] NVRM: Please check your BIOS settings.
[ 77.212699] NVRM: [Plug & Play OS] should be set to NO
[ 77.212700] NVRM: [Assign IRQ to VGA] should be set to YES
[ 77.212702] nvidia: probe of 0000:00:07.0 failed with error -1

This issue was discussed in the forums and a solution found with a set of
patches to bhyve:

# cd /usr/
# rm -rf /usr/src
# git clone https://github.com/beckhoff/freebsd-src /usr/src
# cd /usr/src
# git checkout -f origin/phab/corvink/14.2/nvidia-wip
# cd /usr/src/usr.sbin/bhyve
# make && make install

I can confirm this works for my (AMD Ryzen 9 7900X / NVIDIA GA104 [GeForce RTX
3060]). But also others in the forums reported that it works.

This is a kind request to maybe checkout the changes in the PR and
check if they can be included in a next release of bhyve.

Thanks a lot for this amazing system.

Links:
* Forums discussion:
https://forums.freebsd.org/threads/current-state-of-bhyve-nvidia-passthrough.88244/page-5)
* Related Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277627

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