From nobody Fri Jun 5 15:54:14 2026 X-Original-To: freebsd-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 4gX5d72wb5z6g4FD for ; Fri, 05 Jun 2026 15:55:55 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4gX5d6743Pz3x1F; Fri, 05 Jun 2026 15:55:54 +0000 (UTC) (envelope-from chuck@tuffli.net) Authentication-Results: mx1.freebsd.org; none Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 67277EC01B1; Fri, 5 Jun 2026 11:55:53 -0400 (EDT) Received: from phl-imap-17 ([10.202.2.105]) by phl-compute-06.internal (MEProxy); Fri, 05 Jun 2026 11:55:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli.net; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1780674953; x=1780761353; bh=SfDfOQZ2W1 KZvmbbIdX9zJfxGHUDhaGv5BaOxR3cyjE=; b=JjC/OraaNFvj+DCxCajl5Rqh7N dggjxr5DgxyBWC8dR/091Z+rcApFDd3+TpbjV/arylEWKS80i9EQeFvzYeJm2Umm QgQ2ePFWeC0PeAi8YGErTQ/oNF1TNJgQQMPvBOWf/0sLnS7RGkxdqNALWqW5prD4 8myB9dvW/Kp58PqARBmWTKGxIyUdB9dGaIgQOHKSOYKaTJMssPbOSxIvCAM/fXh5 1nNcYcx2mR+VrRPxHeiPVXaFqM/uEgLryHOzdCCFEF0np0EzmQwWS3J63CxAYSIg EfdFBJHN+viT5DBNJ5gPapDTg4qN2LYAc/q83TAOr9dxLp3QRoBmO37LbOnw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1780674953; x=1780761353; bh=SfDfOQZ2W1KZvmbbIdX9zJfxGHUDhaGv5Ba OxR3cyjE=; b=hJqKHqwP+qt/b3YxMrudjNuI1EE1wduGZeY0YbaV9CGsrQk0kWd YQAs6drQv1/87oxpF9GffWF9m8AfKIE/xw0X8Z8fQXRaTvJCTeT2OXVP6AyxMdVM VILLeCx4QrnBeSP2y31jYC6gyRItLIX/M48IDKk4et7rNOWA5Q9LipQfFUdji0Rv vIuTLeGgMdkI7TF9Vod8AetQpa6THUp7vJlLyZpXDxHw9LChGvgADV2iaz6xJr5Q xVjjpNWZPhKoSb2Ojy82B8qqTNDoQgXlKz9/eEC2UDIANPjI5HCFmrnPtLzVFLxi voyUw4Er8MPC4Ry+RmoKq/xVvc4/VW6RUBA== X-ME-Sender: X-ME-Proxy-Cause: dmFkZTEL4KghcxVZJY4BxhW89No60JGZHsjlG0cls9TDId3sLNaXmVe06MA+r2IoOq940P U6JBDt8M6Nqs/Y2v3b11V8DDpElF/Q6XbYjkbZpiith+qljTysgbFNJzFyHfxeOSOO+NKy QOLqQ2BrzsEBM7K6YuhD3/9JsegSYS0eR2bS3M4fvwyMjbFZJgH/YEefZ323V7eBp3OE5e 67E7sqNDZhOommVKdTKh2p1xlK3CHzsE8w5WHm24XVzdBG0OdmZcXl+5qM8/3llaDXGV64 bqhhKe1og9ImyJGt23YkealasHSTQx4KeMClL0etMmRhQHW3NCbiGCvXIbXxjZcKIj1vZA s/k+ya/xVLqKPgUuvpzvkXrBmdMXzwXk0qts9VDZKfjPQ5VnhxrrquFeIzqilcAnhug1OC 2v+pXe8N+MWMFKc5aIOB8tWaVMO9rZVtqHFllUswDITJgarW39Dge6jMWVRNwJtVRFo3nF 4AHIfRyfyCRKRgalCViRy4+pYQgBF5LxH81khMU5gEsFgt8E2PJPFp81pCo69339uC/Jxf DRx4KfhwC/+X2AkakixazeVtOZR/LbpVz2rKH4Cx/c/KMlDu3M3HhghswpetmXJANRbr3Z CQJ+5u4vwB0vZiU5srzjhdVpQrI3DP8NO0Z49r6KDx0jqLvGuFHadt+J+JUA X-ME-Proxy: Feedback-ID: ib6f94606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id C9196C40078; Fri, 5 Jun 2026 11:55:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-ThreadId: AtG4XPfKyfc7 Date: Fri, 05 Jun 2026 08:54:14 -0700 From: "Chuck Tuffli" To: "Mario Marietto" , =?UTF-8?Q?Corvin_K=C3=B6hne?= Cc: "FreeBSD virtualization" Message-Id: <2225a4a9-3d5d-4f44-977e-d7348db66e0e@app.fastmail.com> In-Reply-To: References: 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**?= Content-Type: multipart/alternative; boundary=c4e72c36654e3c39d423960a7fa392a1a1b60edf X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:151847, ipnet:103.168.172.0/24, country:AU] X-Rspamd-Queue-Id: 4gX5d6743Pz3x1F X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --c4e72c36654e3c39d423960a7fa392a1a1b60edf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Jun 5, 2026, at 12:10 AM, Mario Marietto wrote: > ---> NVIDIA GPU passthrough should work with stock 15.0, no patches re= quired. >=20 > Hello my friend. Unfortunately it does not. Not even with 15.0-p9. Wit= h my system it didn't work. If you go on the FreeBSD forums you see peop= le 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 wit= h Claude to fix the bug and after some days of work,we developed the cor= rect patches. Now it is working fine. I attach them here,if you want to = give a look. >=20 > On Fri, Jun 5, 2026 at 8:34=E2=80=AFAM Corvin K=C3=B6hne wrote: >> On Thu, 2026-06-04 at 13:23 +0200, Mario Marietto wrote: >> > Hi everyone,=20 >> > I'm trying to get NVIDIA GPU passthrough working with bhyve on Fre= eBSD 15.0- >> > RELEASE-p5, using Corvin K=C3=B6hne's nvidia-wip branch:=20 >> > https://github.com/Beckhoff/freebsd-src/tree/phab/corvink/15.0/nvi= dia-wip=20 >> > The VM fails to start with the following error before the guest ev= en boots:=20 >> > bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument=20 >>=20 >> NVIDIA GPU passthrough should work with stock 15.0, no patches requir= ed. >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 --c4e72c36654e3c39d423960a7fa392a1a1b60edf Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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. Unfortu= nately 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 st= ill using the passthru on FreeBSD 14. One user offered a patch that I ha= ve applied,but it didn't work. So I worked with Claude to fix the bug an= d after some days of work,we developed the correct patches. Now it is wo= rking fine. I attach them here,if you want to give a look.

On Fri, Jun 5, 2026 at 8:= 34=E2=80=AFAM Corvin K=C3=B6hne <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-
<= div> > RELEASE-p5, using Corvin K=C3=B6hne's nvidia-wip branch:


<= div>--chuck --c4e72c36654e3c39d423960a7fa392a1a1b60edf--