Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2026 18:52:28 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Matthew Grooms <mgrooms@shrew.net>
Cc:        virtualization@freebsd.org
Subject:   =?UTF-8?Q?Re=3A_=2A=2A=5BHelp=5D_bhyve=3A_bootrom=5Falloc=3A_vm=5Fmmap=5Fmapseg=3A_I?= =?UTF-8?Q?nvalid_argument_=E2=80=94_NVIDIA_passthrough_with_Corvin=27s_branch_?= =?UTF-8?Q?on_FreeBSD_15=2E0=2A=2A?=
Message-ID:  <CA%2B1FSihqNJGVreAcT6zsgS_LfvBzG1RmD5Uf9OtiHzh_FuJopw@mail.gmail.com>
In-Reply-To: <1bbf28a7-7025-4d83-937d-72d8583048ca@shrew.net>
References:  <CA%2B1FSiiGdW4JCi=XA68Wtr1pDbMNAwTpwq9P8TixdDGRHSf%2B6g@mail.gmail.com> <bc674b3f2815204306480f88f71b48ff886c8a56.camel@FreeBSD.org> <1bbf28a7-7025-4d83-937d-72d8583048ca@shrew.net>

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

[-- Attachment #1 --]
--> I was about to attempt this myself. Are all the required patches
present in 14.4 as well ?

It would be nice if you can apply the Corvin patches for FreeBSD 15.x and
tell if you get the error "bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid
argument". This will help to understand if there is a problem between
Corvin's code and some component of FreeBSD 15.x or if it belongs only to
me.

Mario.


On Fri, Jun 5, 2026 at 6:21 PM Matthew Grooms <mgrooms@shrew.net> wrote:

> On 6/5/26 01:34, Corvin Köhne 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.
>
> I was about to attempt this myself. Are all the required patches present
> in 14.4 as well?
>
> Thanks,
>
> -Matthew
>
>
>

-- 
Mario.

[-- Attachment #2 --]
<div dir="ltr"><div>--&gt; I was about to attempt this myself. Are all the required patches present in 14.4 as well ?</div><div><br></div><div>It would be nice if you can apply the Corvin patches for FreeBSD 15.x and tell if you get the error &quot;<span class="gmail-im">bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument&quot;. This will help to understand if there is a problem between Corvin&#39;s code and some component of FreeBSD 15.x or if it belongs only to me.</span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">Mario.</span></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jun 5, 2026 at 6:21 PM Matthew Grooms &lt;<a href="mailto:mgrooms@shrew.net">mgrooms@shrew.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/5/26 01:34, Corvin Köhne wrote:<br>
&gt; On Thu, 2026-06-04 at 13:23 +0200, Mario Marietto wrote:<br>
&gt;&gt;          Hi everyone,<br>
&gt;&gt;   I&#39;m trying to get NVIDIA GPU passthrough working with bhyve on FreeBSD 15.0-<br>
&gt;&gt; RELEASE-p5, using Corvin Köhne&#39;s nvidia-wip branch:<br>
&gt;&gt;   <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><br>;
&gt;&gt;   The VM fails to start with the following error before the guest even boots:<br>
&gt;&gt;   bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument<br>
&gt; NVIDIA GPU passthrough should work with stock 15.0, no patches required.<br>
<br>
I was about to attempt this myself. Are all the required patches present <br>
in 14.4 as well?<br>
<br>
Thanks,<br>
<br>
-Matthew<br>
<br>
<br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihqNJGVreAcT6zsgS_LfvBzG1RmD5Uf9OtiHzh_FuJopw>