From nobody Sun Dec 17 10:43:57 2023 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 4StKLl6PmHz54RJG for ; Sun, 17 Dec 2023 10:43:43 +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.135]) (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 (2048 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 4StKLk4Ztmz3X2q for ; Sun, 17 Dec 2023 10:43:42 +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=oJlgx0cb; dkim=pass header.d=hoewweken.de header.s=strato-dkim-0003 header.b=vAsoRZel; spf=none (mx1.freebsd.org: domain of Stephan.Althaus@Duedinghausen.eu has no SPF policy when checking 85.215.255.135) smtp.mailfrom=Stephan.Althaus@Duedinghausen.eu; arc=pass ("strato.com:s=strato-dkim-0002:i=1"); dmarc=none ARC-Seal: i=1; a=rsa-sha256; t=1702809819; cv=none; d=strato.com; s=strato-dkim-0002; b=DBubNbH71kHOdmLlZWCgi1KxfBZHtRNhM6STji3Q3W2HwM1jOxyt1a45V3PEjklnGV QolH4ypBmPug36dblY08+Ys3wYubNwQ+dURySV2pDd7GbhXR2wU+RvLi4yjBQkzy+x91 TD4RuyGiBZg8oeJNpE7KZxj+5G82o1usJynSG8H2yt0s2Nu0dxJOFxv79Dy0YC3eTJ49 zCHxFSbSvMhpRTCz0ELanQJb+B5mJ59WHzGrUe+kMNgDPNgghMeEctLhe58JBwwgSnEj veNtnqMI9MDZMhVwVZGTTE3DL4UeBIC/H7e6vc/RLdZ5iZk6LlfsrnsaBxB0kT5FpE7X pfUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1702809819; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=6YIXyd122qwHhlOOvQ+X5x1Htirtr1TJmekS894GZLo=; b=XdIor6cSs7J4DMdYG9LKX0q3x5Yh1hej9KZxX/Mn/6y5oIAaTki/M4+wEt/mGXzYyG NpA7qGpATmIJpSzVegwi4Tlg+RVtWQR470lzzXA/ECD91FPeA/yUKgiQAgseypK53b3z qAwtSj0XqWH6mS1NxISsha8GndF8rj087fFvp98ijD/BMFYIT4XIo4BFLBCgP80Z0VOV 9uyyZnCdhLs01Aihcz9xFeOPPVC8x6CqDsCEKntmD/bc+wrxN+FKMSvQGfGRL3DOASkF p8ZgqJvJ9S85TIor8+rg37rsS2pt4si+h/48zzbageeqvO++9F7geXahkIkMlkB/MQ1C LhnA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1702809819; s=strato-dkim-0002; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=6YIXyd122qwHhlOOvQ+X5x1Htirtr1TJmekS894GZLo=; b=oJlgx0cbRuEGAoTPZ+GURHsMaKnUe6n8Qa51F+1v2DZjtagM9YsA1fKYsGdL4OVZqk NZ3Cpn90bzuJKtCpBLhO2jZqRgX1N+CWXwr9QAXDPwm3+SEz4plAb/Dh+z77fk5dhfxS bMEIGhIePD8YJvwGwEdbWGFmz8oq/NfRQ2EPhWueUMBfwWN/hRpyR/91UtoZFoTkH5YA rc/gIwZvaLVcs2HZEtDLVbZimM1NdUFYANKtR+wHp7QLoFkl7rz2falKfoJXaQcxy4zN FXabeNWnZ6SAA9ADpDAqOSvpf6J7L0+bX/4aitdsg9DAGy88dwnKYpvUzSomdQoioR1g yLaw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1702809819; s=strato-dkim-0003; d=hoewweken.de; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=6YIXyd122qwHhlOOvQ+X5x1Htirtr1TJmekS894GZLo=; b=vAsoRZelTuKrml3BuRW1aAPTvQu9zW6qD5q9QQUYFmWfYI2Qrje+UCw2MWolg1U4ij aKRbGjwUSIJnjP72TqDg== X-RZG-AUTH: ":O2kGeEG7b/pS1EW2TmikjLDsYYueHLp2aWg0q38nsxN1mOntnRORP93PLpfReKNjbyYtOAegfjheaQ4=" X-RZG-CLASS-ID: mo05 Received: from www.duedinghausen.eu by smtp.strato.de (RZmta 49.10.0 DYNA|AUTH) with ESMTPSA id 9f0670zBHAhc9cb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sun, 17 Dec 2023 11:43:38 +0100 (CET) Received: from [192.168.2.63] (speedport.ip [192.168.1.1]) (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 C8C28128D53 for ; Sun, 17 Dec 2023 11:43:11 +0100 (CET) Content-Type: multipart/alternative; boundary="------------jPqWSJHhWwUCl8wa02J3QDLU" Message-ID: Date: Sun, 17 Dec 2023 11:43:57 +0100 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 Content-Language: en-US To: virtualization@freebsd.org References: From: Stephan Althaus In-Reply-To: Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.29 / 15.00]; ARC_ALLOW(-1.00)[strato.com:s=strato-dkim-0002:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[hoewweken.de:s=strato-dkim-0002,hoewweken.de:s=strato-dkim-0003]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:6724, ipnet:85.215.255.0/24, country:DE]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[hoewweken.de:+]; DMARC_NA(0.00)[duedinghausen.eu]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[virtualization@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4StKLk4Ztmz3X2q X-Spamd-Bar: ---- This is a multi-part message in MIME format. --------------jPqWSJHhWwUCl8wa02J3QDLU Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/16/23 18:49, Mario Marietto wrote: > for sure you can use nVidia gpu on the host and the intel one on the > windows 11 vm. > > Il sab 16 dic 2023, 18:11 Nuno Teixeira ha scritto: > > It seems that nvidia passtrhu isn't working (yet). > > Related to intel integrated graphics, I don't know if I can use it > for ppt since it is in use by freebsd. > Other thing, if I boot with BIOS on nvidia dedicated then intel > doesn't show up in pciconf... > > Mario Marietto escreveu no dia sábado, > 16/12/2023 à(s) 16:34: > > Are you trying to pass the nvidia gpu to windows vm ? or your > intel gpu ? > > Il sab 16 dic 2023, 17:07 Nuno Teixeira > ha scritto: > > Hello all, > > Specs: > - laptop with integrated intel + dedicated nvidia > - 15-CURRENT 3b1904d9eb04 amd64 > - win11 with nvme and tpm > > I'm sharing my results with nvidia passthru: > ### > /boot/loader.conf.local: > vmm_load="YES" > pptdevs="1/0/0 1/0/1" > > ppt0@pci0:1:0:0:        class=0x030000 rev=0xa1 hdr=0x00 > vendor=0x10de device=0x1f99 subvendor=0x17aa subdevice=0x3fa5 >     vendor     = 'NVIDIA Corporation' >     device     = 'TU117M [GeForce GTX 1650 Mobile / Max-Q]' >     class      = display >     subclass   = VGA > ppt1@pci0:1:0:1:        class=0x040300 rev=0xa1 hdr=0x00 > vendor=0x10de device=0x10fa subvendor=0x17aa subdevice=0x3ffb >     vendor     = 'NVIDIA Corporation' >     class      = multimedia >     subclass   = HDA > > bhyve: > -s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1 > ### > > - Installed nvidia drivers without problems > - graphic card is detected but is deactivated with a > triangle and a "!": >   "Windows stopped this device... code 43" > - hda is detected and shows no problem > > I've read that some nvidia cards are working... > Any tips are welcome. > > Not sure if it is possible to use intel integrated as it > is already in use by OS. > > Thanks, > > -- > Nuno Teixeira > FreeBSD Committer (ports) > > > > -- > Nuno Teixeira > FreeBSD Committer (ports) > Hello! i had just the same, here on illumos. i didn't get it to work, but i had a similar problem with an AMD card :-/ i think i will try it again in Jan/2024, and then with a fresh install of windows... Do you use UEFI boot on both host and vm? Regards, Stephan --------------jPqWSJHhWwUCl8wa02J3QDLU Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 12/16/23 18:49, Mario Marietto wrote:
for sure you can use nVidia gpu on the host and the intel one on the windows 11 vm.

Il sab 16 dic 2023, 18:11 Nuno Teixeira <eduardo@freebsd.org> ha scritto:
It seems that nvidia passtrhu isn't working (yet).

Related to intel integrated graphics, I don't know if I can use it for ppt since it is in use by freebsd.
Other thing, if I boot with BIOS on nvidia dedicated then intel doesn't show up in pciconf...

Mario Marietto <marietto2008@gmail.com> escreveu no dia sábado, 16/12/2023 à(s) 16:34:
Are you trying to pass the nvidia gpu to windows vm ? or your intel gpu ?

Il sab 16 dic 2023, 17:07 Nuno Teixeira <eduardo@freebsd.org> ha scritto:
Hello all,

Specs:
- laptop with integrated intel + dedicated nvidia
- 15-CURRENT 3b1904d9eb04 amd64
- win11 with nvme and tpm

I'm sharing my results with nvidia passthru:
###
/boot/loader.conf.local:
vmm_load="YES"
pptdevs="1/0/0 1/0/1"

ppt0@pci0:1:0:0:        class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1f99 subvendor=0x17aa subdevice=0x3fa5
    vendor     = 'NVIDIA Corporation'
    device     = 'TU117M [GeForce GTX 1650 Mobile / Max-Q]'
    class      = display
    subclass   = VGA
ppt1@pci0:1:0:1:        class=0x040300 rev=0xa1 hdr=0x00 vendor=0x10de device=0x10fa subvendor=0x17aa subdevice=0x3ffb
    vendor     = 'NVIDIA Corporation'
    class      = multimedia
    subclass   = HDA

bhyve:
-s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1
###

- Installed nvidia drivers without problems
- graphic card is detected but is deactivated with a triangle and a "!":
  "Windows stopped this device... code 43"
- hda is detected and shows no problem

I've read that some nvidia cards are working...
Any tips are welcome.

Not sure if it is possible to use intel integrated as it is already in use by OS.

Thanks,

--
Nuno Teixeira
FreeBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committer (ports)

Hello!

i had just the same, here on illumos.
i didn't get it to work, but i had a similar problem with an AMD card :-/

i think i will try it again in Jan/2024, and then with a fresh install of windows...

Do you use UEFI boot on both host and vm?

Regards,
Stephan


--------------jPqWSJHhWwUCl8wa02J3QDLU--