From nobody Fri Jun 27 06:31:36 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 4bT5LQ2c4gz60M5H for ; Fri, 27 Jun 2025 06:31:42 +0000 (UTC) (envelope-from Stephan.Althaus@Duedinghausen.eu) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [81.169.146.180]) (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 4bT5LN3wfBz3WyV for ; Fri, 27 Jun 2025 06:31:40 +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=pC1TDXNS; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b="y/d1Mk+I"; dkim=pass header.d=duedinghausen.eu header.s=default header.b=YZ7Dxk30; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 81.169.146.180) 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=1751005897; cv=none; d=strato.com; s=strato-dkim-0002; b=nrvFv3XvMeMHRS7Kd92VxkfT1GK7+AHRnQtgMF8E96EsYcRyRNTogsVJBZHfgV7mZA uAVEiNvLbwAxbVrR+mPzeCBQheXpaFNjjmRznqlY3rAoSxOH06E0qxynpNP9khFrJZhT rOOzmPfjkLmZ5LhL4cQYRo9Cl5foFRK+CEUc/OJ5wKOqwAYat1g3EFcHHzqDEqA+8nJS CRsv7TlyUB3s/7hOZ8Cuf44xlqG/aLjl+Q3gukexksQn8RZ6T/MYluEmqL48nc/hiBmU XDlWMtKqak40eKlEmjU2U246Fst3knIoIiVN318jxa+a0NRjVGP1Gws7tX5fS1xhn9WX m37g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1751005897; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=fmoKSFnSdLaH3/5qqDmJwX77CXR/vyHfLjT8i5Qlt5Y=; b=L7JaHUsILK4xLrb6qC9uzjvJFVN2M4tmppBOZonIrc7PbcG8PtkOWIHkek++Ja9fwm 22RjqxHv9n/T612LAApGZq7rHeRC/anRflyhh7AKZW+XlREjDoKfAHgziLk1ciPb+tGu PFubAuhRYj6ZHM2pu62/k7tbZrenBwnqOuXhBYnmEofMccGBrOQy2YHmOLLOLZJ4fSdc vgCigwffk2gw0+gFeWwZLpRT/5M9xgBQ0ESOlU6gJIwWctxFxBHInapAsQ8d/NYHXroF GSKbtilSnPVCZWuCfqhwX4pwOz/ojvv2B8B0XToFHNapPl0sZsrMxKFB9bQDzEhpWEU9 EpIw== 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=1751005897; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=fmoKSFnSdLaH3/5qqDmJwX77CXR/vyHfLjT8i5Qlt5Y=; b=pC1TDXNSvEPCIb0XXyCjMronagAIP4TIiYKNx7wDgiMEdXeSApMNUrVp5Q7dguVxxg WPhnF+rKM/WGwdtnb5pawgldgFkQocm/DcU/1XlzFSCSNRrBXNYg0FldcSjHic0pE5O9 JnpPAFH5tzmedQHMn9anVLRDAI+iObfrjII5jgEx+ea61JrRdLmaOuskqAFRLv7pg4NH ZhHC+He5s7wu0/I9opAEzK8R4ty+2146AgnHkuxzJFJMzQWLcwpvGleC+q8f4/v2hcqr Q67tlAnI9/mF+t7ivIMJsHbNEPIbDPSf6cYckfndGlxxbaB4VwClbGn9g6YUrlAtEkc8 hb9w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1751005897; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=fmoKSFnSdLaH3/5qqDmJwX77CXR/vyHfLjT8i5Qlt5Y=; b=y/d1Mk+ICR/+rkAotiF0ZxIMy7rCiwX8uhAFbF88zaQe+1xIoCuWKjQtkGuhwMEsdI GQfA+dMF8cr/hUbk5bBA== 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 q88bdf15R6Vb2Sg (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Fri, 27 Jun 2025 08:31:37 +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 7B56A14F78B for ; Fri, 27 Jun 2025 08:31:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=duedinghausen.eu; s=default; t=1751005897; bh=djuEM3jOlQv9yAz9H1ZlDxK3pAw8ZrpWlMh0fi00wPM=; h=Date:Subject:To:References:From:In-Reply-To; b=YZ7Dxk305/ZIGRd6QWSoUyHEYFK0ptFDxrYJRZ7M7BLZReO9aZD9ni3786EVQqEwf 0FkrqIiltcFpXobkWtzlBIXel3JkNtcUdex4tM4TkQeyjCOzyfbvneU29FwNYKz+89 RRuX9ShEt8loWlWaDBgw5TcuFWr3EaEUiV5LDcpVMTtNGsOxTvUdmNaYIZuaqM35aY dEaYAXR2IAVno/PiVMLUYaAKfLSnHWhGrjoqDCHxMGrjQyAmrSGNlqGpmUGAX/ctkR jIUqz51M9UgXZYrzDyLPlmqVlj+A7HExp+vNsKQQ0mtykXVp82oi1+sjrvk8khZ9tu KtcHTC7U788Xboj5ibkG+kZKZjFVfVNCskkJ+cbXfI1q2IqfeFyGZhRS3dd4cjkLmG 0SwQhIkLIetnEDZzvzkDbX2eJ2k2rC1o9SMvrKzqzHJ/C3ojkpNnZ1RGP6A/uC9cTX 8LoxFobBKDsDyXW6Wwobu7F07qIcGPSTzq93SN0iluQR5xWnhgHa9MNmxkMiJJyCWl GA2Ge9zqvPyXNiEegspHlEbTmid9v+3KPavArcz0JUhpR34HOka8NLsGn9WwDpVasE 5S/t5EWWThBzbrljUOwewGj5NyeBUlE2GEkodnwUPJE4hKWdH/+atDcPRqC6cTrMle Cfiq03hCS45Z7vwE03ZVszpA= Content-Type: multipart/alternative; boundary="------------nSwgnso6Ha1bMf5lTjzett29" Message-ID: <90515dd4-3aca-45a2-b43e-3d4558ff5e7f@Duedinghausen.eu> Date: Fri, 27 Jun 2025 08:31:36 +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> <89c5f73c-4b7a-4669-a1cf-d2837c096298@Duedinghausen.eu> Content-Language: en-US From: Stephan Althaus In-Reply-To: <89c5f73c-4b7a-4669-a1cf-d2837c096298@Duedinghausen.eu> Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-0.23 / 15.00]; URI_COUNT_ODD(1.00)[9]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_HAM_SHORT(-0.98)[-0.978]; NEURAL_SPAM_LONG(0.92)[0.920]; NEURAL_SPAM_MEDIUM(0.83)[0.830]; 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_IN_DNSWL_LOW(-0.10)[81.169.146.180:from]; RWL_MAILSPIKE_GOOD(-0.10)[81.169.146.180:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:6724, ipnet:81.169.144.0/22, country:DE]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[hoewweken.de:+,duedinghausen.eu:+] X-Rspamd-Queue-Id: 4bT5LN3wfBz3WyV X-Spamd-Bar: / This is a multi-part message in MIME format. --------------nSwgnso6Ha1bMf5lTjzett29 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 6/27/25 08:00, Stephan Althaus wrote: > 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 > > Hi! Whilst trying to get it to work, i would suggest to always shut the host down, not only restart the guest/vm, to be on the safe side. There may be side effects regarding the initialization of the GPU.. When you have a working setup, this may change and you may can reboot the vm and have always a working GPU, maybe.. Regards, Stephan --------------nSwgnso6Ha1bMf5lTjzett29 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 6/27/25 08:00, Stephan Althaus wrote:
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


Hi!

Whilst trying to get it to work, i would suggest to always shut the host down, not only restart the guest/vm, to be on the safe side.

There may be side effects regarding the initialization of the GPU..

When you have a working setup, this may change and you may can reboot the vm and have always a working GPU, maybe..

Regards,

Stephan

--------------nSwgnso6Ha1bMf5lTjzett29--