From nobody Fri Jun 27 06:00:31 2025 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 4bT4fY5lJTz60Ky2 for ; Fri, 27 Jun 2025 06:00:37 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [85.215.255.134]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.smtp.rzone.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bT4fW6JThz3MJT for ; Fri, 27 Jun 2025 06:00:35 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0002 header.b=jEhOPKx+; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b=oqpPEmNj; dkim=pass header.d=duedinghausen.eu header.s=default header.b=ZS21Onj8; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 85.215.255.134) smtp.mailfrom=Stephan.Althaus@Duedinghausen.eu; dmarc=pass (policy=reject) header.from=duedinghausen.eu; arc=pass ("strato.com:s=strato-dkim-0002:i=1") ARC-Seal: i=1; a=rsa-sha256; t=1751004032; cv=none; d=strato.com; s=strato-dkim-0002; b=m6YNwQUce9iNQe4kyaVdZOFAKIbUdlEwrFKZzfsBEuUuqcR3AkGYBmT17SmjDNCPjm kRBq8gTEHZg7Y2uAU3DKMc3WFlJQQZl0uwGhG1n7+RkyWO13go4oWIDvPdRoV68DegzN LQHvkVRxAlZBJj3WUKuq6PBRY07K+WjdWNyAH8dvTAGWR147342+zKBlZTH1QOvAnTDx S2LkBTpqA95XTFSymXOTNeMbpXjG++3fJ0AtdKJYyXuV+NGjHW5F/bFQHR68cuowoEFv yfVuIuyqwbBIQMOFJkpseHFkcwfbiFW6js4myVHxw4TANJi9QU4QdyKUdBGFOZMKLuv7 wZMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1751004032; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=8TLJSTjhNsKkwEgiI3xALs/cjvyagZrSNcnG3x9F0zI=; b=VawXs3wN54ZIhiozJjUbizX5Enmdj14YjvdxQRsXar19eR8pJ3ueRs6Hp/9LL+Y0Yl tn90SuRF1Jjt3OJ38yS4113Z8kQDONmSIJDo9NE5tiiU/ZeeJkE5UOf01u03c/BfLoFN 6122y54EEVY4E/U8FzivEcJbSzLT+lyjW+Zzk1o3TiPiyn4657KuqOctkBoEbPMcijIQ iJsISQlBm6Al0TPdTasSJ5pWRT/e/8q2r14ResSbP9JgpOZZmc7VGtAqTe3/g6TSRTNc m0ldsYaAjZYDvLyuPjT3My+wnuzvnD2iqyI7J56lZBYbIy4FP6fl6i60tuvkxgQuTjnt x9lA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=pass header.d="duedinghausen.eu" header.s="default" header.a="rsa-sha256" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1751004032; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=8TLJSTjhNsKkwEgiI3xALs/cjvyagZrSNcnG3x9F0zI=; b=jEhOPKx+Mo+5jWm+imMbmi43xeN/4fvi3BISpgAt+8sm0WrCA6VtxGwG51SueutW8J X/19aJ0o7Vd4mbGdVYbZNaKMWPl27+NCpbil49+7S/wXY2eBLl7LdO4y1TQWsCkUfFk6 tdo9f6mMGJboVmm30+EPaCQHQZzofHeTqA3YryF7gyVrKQBslpAJ3n49bFfCOdv2l8kb w6Xe7z+xgn0UKJSwYx3du1mwMiYxQTmLJ+sbmMuoBvktuH87b3nlsA3jiOhD9fb3vvoi 1nzp9QmARqdHS9GFoRfGWnXdIibcDXzjZ5ZE2GDeFCKGKJB9LbEz5hPorHVMIxSk7mb9 mx8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1751004032; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=8TLJSTjhNsKkwEgiI3xALs/cjvyagZrSNcnG3x9F0zI=; b=oqpPEmNjtIXUMbpF9DgNASTtO6vj28t2EZPVOXU8LGLAjNJ11+/M2I5XIqmWSBtmu3 +0YgyaUKGsAzHPfNf+Aw== X-RZG-AUTH: ":O2kGeEG7b/pS1EW2TmikjLDsYYueHLp2aWg0q38nsxvThUrH35SBqNi8UP9PRt5KqGVgfw==" X-RZG-CLASS-ID: mo05 Received: from www.duedinghausen.eu by smtp.strato.de (RZmta 51.3.0 DYNA|AUTH) with ESMTPSA id q88bdf15R60W2Iu (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 27 Jun 2025 08:00:32 +0200 (CEST) Received: from [192.168.2.63] (p4fea3d2f.dip0.t-ipconnect.de [79.234.61.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) (Authenticated sender: steven) by www.duedinghausen.eu (Postfix) with ESMTPSA id 11D4714F4BB for ; Fri, 27 Jun 2025 08:00:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=duedinghausen.eu; s=default; t=1751004032; bh=zmEEu2shkJWoKhYn9HYhNBjLuFXYjX+puAbb2iphofo=; h=Date:Subject:To:References:From:In-Reply-To; b=ZS21Onj88WReOdTmGiPSyZZVEGJN78otKuIhS8RfPVoEV/dQAnyiRzPxoQAymv2w+ 4qhsI85HWJRIq/gp2BDmeMoLBbW6ff8P6qXSxwbGV0qdeEXWTYKmPfW1I8tMj3h+x2 QB8PBCO5kNgAvqBcSb1ZnuLHyc23rDBQR+GQ1/1aXo8jfPUQ1Va1c/u9OLGECV0PfH VwoYhQ5Atl8i2sOl5jVkcEi25thQF4Ok8+9dHCK68jwPDZM2GK+pbT5+Syy2HbN2ZY 9X0V9zrkicyTo/PR822W2aGlnEHTIjd3MXd5LKGwjFLE6Q1WGGJi3lIUHeYSYnE/MK xAylYzjLmxYrHAT4OGi6tO84S1rmjrdyFO5fcIb2Xh5tgysqz2jKlsjwJmXBJwJBTi sIwvzdzkWpoRagtLPnzuqdelTwSXGdsN3IR8XUtGcz2lGOcPl3vkkQ1GgFmzzzTQnr QbkraP4rZvKh3fFpH2MZEbtxFfzFVVsl/o3soNZc4z/1axCSirNdd68eiFrw7k/0HM Z1SJAzBFkN1UTXu0vlZXENRsc22+DVvT+W4ymU8jyC78pvwEsVPRIbsG8m4//VG7+F uUidcmMiGSUDSmTzG2f3CawihLd3QwDDZ4cbfUW9pUyM/ccR8icxntpfBgYKmqJAA0 7//CFqDXdbZOV6v5/0HSL9Yc= Content-Type: multipart/alternative; boundary="------------NcnU6sHKEteXYou2EhH0MPcW" Message-ID: <89c5f73c-4b7a-4669-a1cf-d2837c096298@Duedinghausen.eu> Date: Fri, 27 Jun 2025 08:00:31 +0200 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 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bhyve: GPU passthrough for Nvidia cards To: virtualization@freebsd.org References: <4785074a005d66ed92e5670b9fa4ce45a5d65eba.camel@FreeBSD.org> Content-Language: en-US From: Stephan Althaus In-Reply-To: Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [0.15 / 15.00]; URI_COUNT_ODD(1.00)[9]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_SPAM_MEDIUM(0.94)[0.945]; NEURAL_SPAM_LONG(0.93)[0.934]; NEURAL_HAM_SHORT(-0.93)[-0.933]; DMARC_POLICY_ALLOW(-0.50)[duedinghausen.eu,reject]; R_DKIM_ALLOW(-0.20)[hoewweken.de:s=strato-dkim-0002,hoewweken.de:s=strato-dkim-0003,duedinghausen.eu:s=default]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:6724, ipnet:85.215.255.0/24, country:DE]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[85.215.255.134:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; DKIM_TRACE(0.00)[hoewweken.de:+,duedinghausen.eu:+] X-Rspamd-Queue-Id: 4bT4fW6JThz3MJT X-Spamd-Bar: / This is a multi-part message in MIME format. --------------NcnU6sHKEteXYou2EhH0MPcW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/26/25 23:47, Nuno Teixeira wrote: > Hello Stephan, > > A year a go I did try passtrhu a dedicated nvidia GTX 1650 while using > integrated intel graphics (laptop Lenovo Legion 5 15IMH05). Windows > detected card but nvidia drivers install failed at some point. > On this laptop I did setup bios to use integrated graphics so I can > passthru dedicated nvidia. > > Think I will give a new try since I follow main. > > Are you using laptops for this usecase? > > Thanks! > > Stephan Althaus escreveu (quinta, > 26/06/2025 à(s) 15:50): > > On 6/26/25 15:07, Corvin Köhne wrote: > > Hi, > > > > I'm currently experimenting with GPU passthrough for Nvidia > cards. All I have to > > do to make it work with Ubuntu guests, is setting the INTPIN > register to any > > value instead of just 0x00. Unfortunately, I'm unfamiliar with > PCI legacy > > interrupts and how they work. The INTLINE register is set to > 0xFF (unconnected). > > So, is it safe to set the INTPIN register or what has to be done > for it to work > > as expected? > > > > Any help would be appreciated. > > > > > Hi! > > You surely mean 'newer' NVidia cards, as my GT1030 works with FreeBSD > 14.2 Host and ubuntu guest, NVIdia driver 570, (and Win guest btw) > out-of-the-box, no kernel/driver modding... > > Regards, > > Stephan > > > > > > -- > Nuno Teixeira > FreeBSD UNIX:    Web: https://FreeBSD.org > Hello! Oh, laptops... With this "Optimus"-called feature i am not shure if it will work... But i think it's worth trying. Maybe you will need the GPU ROM. (https://forums.FreeBSD.org/threads/current-state-of-bhyve-nvidia-passthrough.88244/post-706455) Good luck! Stephan --------------NcnU6sHKEteXYou2EhH0MPcW Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 6/26/25 23:47, Nuno Teixeira wrote:
Hello Stephan,

A year a go I did try passtrhu a dedicated nvidia GTX 1650 while using integrated intel graphics (laptop Lenovo Legion 5 15IMH05). Windows detected card but nvidia drivers install failed at some point.
On this laptop I did setup bios to use integrated graphics so I can passthru dedicated nvidia.

Think I will give a new try since I follow main.

Are you using laptops for this usecase?

Thanks!

Stephan Althaus <Stephan.Althaus@duedinghausen.eu> escreveu (quinta, 26/06/2025 à(s) 15:50):
On 6/26/25 15:07, Corvin Köhne wrote:
> Hi,
>
> I'm currently experimenting with GPU passthrough for Nvidia cards. All I have to
> do to make it work with Ubuntu guests, is setting the INTPIN register to any
> value instead of just 0x00. Unfortunately, I'm unfamiliar with PCI legacy
> interrupts and how they work. The INTLINE register is set to 0xFF (unconnected).
> So, is it safe to set the INTPIN register or what has to be done for it to work
> as expected?
>
> Any help would be appreciated.
>
>
Hi!

You surely mean 'newer' NVidia cards, as my GT1030 works with FreeBSD
14.2 Host and ubuntu guest, NVIdia driver 570, (and Win guest btw)
out-of-the-box, no kernel/driver modding...

Regards,

Stephan





--
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

Hello!

Oh, laptops... With this "Optimus"-called feature i am not shure if it will work...

But i think it's worth trying.

Maybe you will need the GPU ROM. (https://forums.FreeBSD.org/threads/current-state-of-bhyve-nvidia-passthrough.88244/post-706455)

Good luck!

Stephan


--------------NcnU6sHKEteXYou2EhH0MPcW--