From nobody Fri Jun 5 16:52:28 2026 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 4gX6v81wpFz6g8Tt for ; Fri, 05 Jun 2026 16:53:08 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gX6v775ZZz46r9 for ; Fri, 05 Jun 2026 16:53:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-36baeec21dcso1406700a91.3 for ; Fri, 05 Jun 2026 09:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780678386; cv=none; d=google.com; s=arc-20240605; b=lQ8IF1ma92pKkxEZs+WcjLpWgEOinQs4O9DMv2zT49dtzsAO6PvWLEncXRe2Ax7xFP ZARYkKQDQoSFZ2P4bCUUJ2I9OAd04tbRCly+TEeoiIpax2VbV6697xeOb23o9Z+OJ5MG RDeo+MtALiFZqeoTKgf1rlToN0lv2Vo3id31IFwgouG3dE/GWaTx3Lu/xktc03ACVC8G Fy7f4wPQ1J+5K9DsZ24jHv4CfARkqNCMqd+5OA48GVBJRC9VvCw7Y6bd6W1M6XArjGpz dzqGLq6CqzHH58XRelT/vnKjnOBPGOy1nMQF8crhV4j8mbNZdsvEQcSuG39FmG/heVP5 kDwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=/riJmY//gL9pOMSWjyYToSem0SbKjVyb+l2I4xZATXs=; fh=lDuWU0Le42xP677gly0d2S07EEycXbmLN7JFYYIPYuE=; b=F+xgT4xoVkcl0VHpn2TroKuo5eHYcN/HbE65/y8eQmU+TK6Ao/YrDQWu/IHtc0mvit j8BAYgneqlKZyJGvMDZTa/oxwpY+X8qEBc8BS0rb0CtuIStldStd9nsb4IDHJUawLET6 QyJC15F1hpzq5iVvUcymQB9R39QWw7DHkE0IZ0rlcEnIKcJqc8Wi3rvBMnkCh7QaxW5N wGGsubFGN8fPpljWPv2U/AZYOWAPCmViV7KNfWlcWNVguWndeMSNrPSRHUzCQMrWWG7u b5yOZdEZjFSwV+seEoB/gz51/5ouKlLYAI9nkdT9JnUBn1EIw2B07AIWjFSVXW2G234I YNkQ==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780678386; x=1781283186; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/riJmY//gL9pOMSWjyYToSem0SbKjVyb+l2I4xZATXs=; b=Wi6BKQL5dwKTNTl62gMNjAUnDdQQsxgw+Zy0AAxzQNcmOkdXpKn83dIXgbDAfAVpJN 1B07k34KFV0q6E9GBx91RvrIahutk9mZDzYik40GtIYlYoHPliBsuN4gd28NpdeY/SNu tze+1KxRS2x+EYVrh5uWCijQWswhJaucNP9FI6RSr+TauuIjsx5ESJshL9PfQvHsyPIx gFJGG+8s5RMnEYDVLAt+DRgJLYYItUDGnWkbra+beLlUStgiFwQtuEAHBLrDgZaEBSjn gw0o72Jz9AZlMNpJO2VjlhjeF0hZ/Gltksu+rGS4KC//WK5zlUqI1C8BI9cgAsl0YXDo bFFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780678386; x=1781283186; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/riJmY//gL9pOMSWjyYToSem0SbKjVyb+l2I4xZATXs=; b=SnxdjVVNuuqaww791Ed7U9wGSebznCWwok3XDeLqSt6yfyI2fOCo5wpuo6w4y3dIqx cl8Yv5hpi5arF5qmuTI1Q0PtrPbhxCpqqGjfqvG1uC5RHF1khIOUW2gLxM5vpMW2pPjT pMxozCdOcxVnC6qu0ng4A5SoabuCqiw921UXaktTZu+5DB7EPTFUsVX66y/yZTkVUlZ/ XZlKYhLf0LjyQMd9yfo8v9IfxL22cktYp4fE8BIM/5oz1FlnhfP2dfzuzhd+dT/roCoo 34htCRKGKpAjr5H5ue0Vgm4fLGVFvmwaibDRrVnLXBvwFztkfLrEArM3Rw/K2eTj+AuV 8Amw== X-Gm-Message-State: AOJu0YwjJjMxq4xMWHgCeZ5SljuM1S9kUDUF+VDeLMuJuHa01p1uxMkd /R35DQZ0P4628zgg8tsynQzwVKpLldeIn+0OhjU+OtleGsOcDEfT1ZTnnAfbKS5hOo9jhmBKWKX d91h8hTQM0ioqGx0LN/9v1sehejP3wdkzbybO X-Gm-Gg: Acq92OFxGlGfauMTqjIo24A7nF9l9cYPJCZWczUSXPyY+3ivFYA0gwLtL+lJ06y4WRh RlJbnRWcYs9Ul23ggUDsYvJNgQ5r2TKBQshkjCEHgKFEmOmVivrRDQ1FO3Bmx/kwxq0w/6Hiq5I qOH5fwszNmvir8z5Vzo60O6dmEs24YHnD3yqa4qbHKawhhRf561Hzpf7IfFLqOchLxyl7U8lCeM eytfiQWM9LtBSGLMBLiC7Hz3XNqXvf7l5HjMhAJULa+zGIBUjuUAPBcR/wJcpXP4h2duaIkPjuz T6wGsy1A8ZVnD7kXktKa+mErd3jStsRbo40xt4NdFyvZr7T7cZm8QjHCL06RAplh+t4ISCz7pIm m41C6xjuon8yxMVnPaU5/nu9hUdlvW+WxF56H5GLOttVUJ7ZTwv1LGvQPysOLT002YCdBtpRLak wu0/+8ZC2PKwBtGjtt3/EuzQnRI/i0H1+GVsE2dLRYRWUwHI7EzNnyVgbMxI4W3XCvfaiA0tycM 4ZwMucUKt1eXm1mPqCnBOgHAWtbEre2uOgpGUonez4zdK7Eo80J18v+7l+xv8mMuL9XvolXWZh2 B2m/7wsnOn/zF9N3WMziI/hIIzINWdKEMKKUGX8whTIjEg== X-Received: by 2002:a17:90b:1fc3:b0:362:e826:cefe with SMTP id 98e67ed59e1d1-370f0c521b9mr5647583a91.23.1780678385721; Fri, 05 Jun 2026 09:53:05 -0700 (PDT) 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 References: <1bbf28a7-7025-4d83-937d-72d8583048ca@shrew.net> In-Reply-To: <1bbf28a7-7025-4d83-937d-72d8583048ca@shrew.net> From: Mario Marietto Date: Fri, 5 Jun 2026 18:52:28 +0200 X-Gm-Features: AVHnY4LcabMENYi61J8EfK52vJJjHP8Ufplku9BEZGj8FX0SzcYJXW8XL3eEM4I Message-ID: 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?= To: Matthew Grooms Cc: virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a3e34d0653847e8c" X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4gX6v775ZZz46r9 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated --000000000000a3e34d0653847e8c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --> 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=E2=80=AFPM Matthew Grooms w= rote: > On 6/5/26 01:34, Corvin K=C3=B6hne 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=C3=B6hne'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 > > > --=20 Mario. --000000000000a3e34d0653847e8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
--> I was about to attempt this myself. Are all th= e required patches present in 14.4 as well ?

It wo= uld be nice if you can apply the Corvin patches for FreeBSD 15.x and tell i= f 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=E2=80=AFPM Matthew Groo= ms <mgrooms@shrew.net> wrote= :
On 6/5/26 01:3= 4, Corvin K=C3=B6hne wrote:
> On Thu, 2026-06-04 at 13:23 +0200, Mario Marietto wrote:
>>=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Hi everyone,=
>>=C2=A0 =C2=A0I'm trying to get NVIDIA GPU passthrough working w= ith bhyve on FreeBSD 15.0-
>> RELEASE-p5, using Corvin K=C3=B6hne's nvidia-wip branch:
>>=C2=A0 =C2=A0https:= //github.com/Beckhoff/freebsd-src/tree/phab/corvink/15.0/nvidia-wip
>>=C2=A0 =C2=A0The VM fails to start with the following error before = the guest even boots:
>>=C2=A0 =C2=A0bhyve: bootrom_alloc: vm_mmap_mapseg: Invalid argument=
> NVIDIA GPU passthrough should work with stock 15.0, no patches require= d.

I was about to attempt this myself. Are all the required patches present in 14.4 as well?

Thanks,

-Matthew




--
Ma= rio.
--000000000000a3e34d0653847e8c--