Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jun 2026 08:54:14 -0700
From:      "Chuck Tuffli" <chuck@tuffli.net>
To:        "Mario Marietto" <marietto2008@gmail.com>, =?UTF-8?Q?Corvin_K=C3=B6hne?= <corvink@freebsd.org>
Cc:        "FreeBSD virtualization" <freebsd-virtualization@freebsd.org>
Subject:   =?UTF-8?Q?Re:_**[Help]_bhyve:_bootrom=5Falloc:_vm=5Fmmap=5Fmapseg:_Inval?= =?UTF-8?Q?id_argument_=E2=80=94_NVIDIA_passthrough_with_Corvin's_branch?= =?UTF-8?Q?_on_FreeBSD_15.0**?=
Message-ID:  <2225a4a9-3d5d-4f44-977e-d7348db66e0e@app.fastmail.com>
In-Reply-To:  <CA%2B1FSihAcrz-9vV8rZjF%2BzoLRSACV3FPdYMcPe-61uW-KSf1kg@mail.gmail.com>
References:   <CA%2B1FSiiGdW4JCi=XA68Wtr1pDbMNAwTpwq9P8TixdDGRHSf%2B6g@mail.gmail.com> <bc674b3f2815204306480f88f71b48ff886c8a56.camel@FreeBSD.org> <CA%2B1FSihAcrz-9vV8rZjF%2BzoLRSACV3FPdYMcPe-61uW-KSf1kg@mail.gmail.com>

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

[-- Attachment #1 --]
On Fri, Jun 5, 2026, at 12:10 AM, Mario Marietto wrote:
> ---> NVIDIA GPU passthrough should work with stock 15.0, no patches required.
> 
> Hello my friend. Unfortunately it does not. Not even with 15.0-p9. With my system it didn't work. If you go on the FreeBSD forums you see people saying that they are still using the passthru on FreeBSD 14. One user offered a patch that I have applied,but it didn't work. So I worked with Claude to fix the bug and after some days of work,we developed the correct patches. Now it is working fine. I attach them here,if you want to give a look.
> 
> On Fri, Jun 5, 2026 at 8:34 AM Corvin Köhne <corvink@freebsd.org> wrote:
>> On Thu, 2026-06-04 at 13:23 +0200, Mario Marietto wrote:
>> >         Hi everyone, 
>> >  I'm trying to get NVIDIA GPU passthrough working with bhyve on FreeBSD 15.0-
>> > RELEASE-p5, using Corvin Köhne's nvidia-wip branch: 
>> >  https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/15.0/nvidia-wip 
>> >  The VM fails to start with the following error before the guest even boots: 
>> >  bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument 
>> 
>> NVIDIA GPU passthrough should work with stock 15.0, no patches required.

>From my limited experiments FreeBSD 15 has what is necessary for Nvidia passthru, but, and it may be GPU dependent, some Nvidia cards absolutely needed the hypervisor ID to be 'KVM KVM\0\0' and not 'bhyve bhyve'.

--chuck
[-- Attachment #2 --]
<!DOCTYPE html><html><head><title></title></head><body><div>On Fri, Jun 5, 2026, at 12:10 AM, Mario Marietto wrote:</div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div><span class="qt-gmail-im">---&gt;&nbsp;</span>NVIDIA GPU passthrough should work with stock 15.0, no patches required.</div><div><br></div><div>Hello my friend. Unfortunately it does not. Not even with 15.0-p9. With my system it didn't work. If you go on the FreeBSD forums you see people saying that they are still using the passthru on FreeBSD 14. One user offered a patch that I have applied,but it didn't work. So I worked with Claude to fix the bug and after some days of work,we developed the correct patches. Now it is working fine. I attach&nbsp;them here,if you want&nbsp;to give a look.</div></div><div><br></div><div class="qt-gmail_quote qt-gmail_quote_container"><div dir="ltr" class="qt-gmail_attr">On Fri, Jun 5, 2026 at 8:34 AM Corvin Köhne &lt;<a href="mailto:corvink@freebsd.org">corvink@freebsd.org</a>&gt; wrote:</div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div>On Thu, 2026-06-04 at 13:23 +0200, Mario Marietto wrote:</div><div> &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi everyone, </div><div> &gt; &nbsp;I'm trying to get NVIDIA GPU passthrough working with bhyve on FreeBSD 15.0-</div><div> &gt; RELEASE-p5, using Corvin Köhne's nvidia-wip branch: </div><div> &gt; &nbsp;<a href="https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/15.0/nvidia-wip" rel="noreferrer" target="_blank">https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/15.0/nvidia-wip</a>; </div><div> &gt; &nbsp;The VM fails to start with the following error before the guest even boots: </div><div> &gt; &nbsp;bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument </div><div> <br></div><div> NVIDIA GPU passthrough should work with stock 15.0, no patches required.<br></div></blockquote></div></blockquote><div><br></div><div>From my limited experiments FreeBSD 15 has what is necessary for Nvidia passthru, but, and it may be GPU dependent, some Nvidia cards absolutely needed the hypervisor ID to be 'KVM KVM\0\0' and not 'bhyve bhyve'.</div><div><br></div><div>--chuck</div></body></html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2225a4a9-3d5d-4f44-977e-d7348db66e0e>