From nobody Sat Dec 16 17:49:34 2023 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 4Sstrw1zFTz54CqK for ; Sat, 16 Dec 2023 17:49:52 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sstrv6zlKz3S4S; Sat, 16 Dec 2023 17:49:51 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a1f8f470903so203797666b.1; Sat, 16 Dec 2023 09:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702748987; x=1703353787; 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=J1jV/LVlJPWCNnYug1IeazTS+g5HQAtmTo9/cjSyufg=; b=IKb9yVa6X76f5dh+aL2lTFL257yipa58EI9EVj/1xZcdAy8g3zxleKpxXJgwk5LAZI M82lkpiZbAx8Muv3RNHjQGjs1J/Dg/U47tCXYdZWjCG+KURFJBlZ5A1kLkv1qReo3iMK Q0p5z8O0mSPb9jE4x2HXYEVzB6sGd/ozinaRx7hDEDP1toinpp0yDGybeVo9MGiqROa6 ISTOaztJDHUM3r0F4GayZWviQkpt5Z5vjdKuxe4zW3eB8PeiKjc7eyPkljUmYAAzQPJ2 cleXkPVr0fNgaD/dQAvnd0qZVtggcVD15e/r6FD7aNei+fEOluomZNB8IGqK96jshVbn Wpyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702748987; x=1703353787; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J1jV/LVlJPWCNnYug1IeazTS+g5HQAtmTo9/cjSyufg=; b=I7w7Jt3yVNtpIbXYYzaoDAxDMaNweDj0XBX00DyTFa6MFOz4Eu2y63T72ke0byBPTS jApRTNQrYSh363LC9Fc5hXeQWtQIT58I7GCXfCEnGMC3PP9otnpVrBggJNFOM1LXfwJU Lj590PZsLnennLCHsE0NWXtQG5r7WOQTkVXpx4UPwwi/5p8QT6as3HhimQjela9Zypyo JKGYZy73TmXGvcLFqRRW2LV0+MMmzNnn0zg8Ez6mGy9c0aAhQdvm1FONE4zJsM/Hf58B G2jCbK0HhmrHmTGYou7LTv42fQRywdPZvl4dOd4QrmHDuMn6GlimIhBYh8QsUqtPjnl8 fj2w== X-Gm-Message-State: AOJu0YwXkG2zKk/SGLZThd+u7idsLG6O+q85UWlUcxLN8P0YKa8sYS7w 53hrJzpmBOsdxoK9GZKUyMfMIMpB6Ut1eVWlNouSgCRUFac= X-Google-Smtp-Source: AGHT+IEWE1bMNm+9N71G+WFEmrw/YXK1EGG27zombvqUPJxDVGkNNVXqvP8GkLt4j75Rbvth7W9sg+5Gt56pWjnVoQw= X-Received: by 2002:a17:906:ceda:b0:a1d:ddfc:1cda with SMTP id si26-20020a170906ceda00b00a1dddfc1cdamr6122835ejb.93.1702748986620; Sat, 16 Dec 2023 09:49:46 -0800 (PST) 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 References: In-Reply-To: From: Mario Marietto Date: Sat, 16 Dec 2023 18:49:34 +0100 Message-ID: Subject: Re: bhyve nvidia gtx-1650 mobile passthru on win11 To: Nuno Teixeira Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="0000000000007d413c060ca42491" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Sstrv6zlKz3S4S --0000000000007d413c060ca42491 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 pp= t > 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=C3=A1bado, > 16/12/2023 =C3=A0(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=3D"YES" >>> pptdevs=3D"1/0/0 1/0/1" >>> >>> ppt0@pci0:1:0:0: class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de >>> device=3D0x1f99 subvendor=3D0x17aa subdevice=3D0x3fa5 >>> vendor =3D 'NVIDIA Corporation' >>> device =3D 'TU117M [GeForce GTX 1650 Mobile / Max-Q]' >>> class =3D display >>> subclass =3D VGA >>> ppt1@pci0:1:0:1: class=3D0x040300 rev=3D0xa1 hdr=3D0x00 vendor= =3D0x10de >>> device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3ffb >>> vendor =3D 'NVIDIA Corporation' >>> class =3D multimedia >>> subclass =3D 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) > --0000000000007d413c060ca42491 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 t= o 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 nvi= dia dedicated then intel doesn't show up in pciconf...

<= div class=3D"gmail_quote">
Mario Marie= tto <marietto2008@gmail.com> escreveu no dia s=C3=A1bado, 16/= 12/2023 =C3=A0(s) 16:34:
Are you trying to pass the nvidia gpu to windo= ws vm ? or your intel gpu ?

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

<= div>Specs:
- laptop with integrated intel + dedicated nvidia<= br>
- 15-CURRENT 3b1904d9eb04 amd64
- win11 with nvme a= nd tpm

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

ppt0@pci0:1:0:0: =C2=A0 =C2=A0 =C2=A0 =C2= =A0class=3D0x030000 rev=3D0xa1 hdr=3D0x00 vendor=3D0x10de device=3D0x1f99 s= ubvendor=3D0x17aa subdevice=3D0x3fa5
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 = =3D 'NVIDIA Corporation'
=C2=A0 =C2=A0 device =C2=A0 =C2=A0 =3D = 'TU117M [GeForce GTX 1650 Mobile / Max-Q]'
=C2=A0 =C2=A0 class = =C2=A0 =C2=A0 =C2=A0=3D display
=C2=A0 =C2=A0 subclass =C2=A0 =3D VGAppt1@pci0:1:0:1: =C2=A0 =C2=A0 =C2=A0 =C2=A0class=3D0x040300 rev=3D0xa1 hd= r=3D0x00 vendor=3D0x10de device=3D0x10fa subvendor=3D0x17aa subdevice=3D0x3= ffb
=C2=A0 =C2=A0 vendor =C2=A0 =C2=A0 =3D 'NVIDIA Corporation'<= br>=C2=A0 =C2=A0 class =C2=A0 =C2=A0 =C2=A0=3D multimedia
=C2=A0 =C2=A0 = subclass =C2=A0 =3D 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 "!":
= =C2=A0 "Windows stopped this device... code 43"
- h= da is detected and shows no problem

I've r= ead that some nvidia cards are working...
Any tips are welcome.

Not sure if it is possible to use intel integra= ted as it is already in use by OS.

Thanks,
=

--
<= div dir=3D"ltr" class=3D"gmail_signature">
Nuno Teixeira
FreeBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000007d413c060ca42491--