From nobody Tue Jul 2 22:28:41 2024 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 4WDHdX4cqyz5Pndv for ; Tue, 02 Jul 2024 22:29:20 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (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 4WDHdW3TS9z47Gj for ; Tue, 2 Jul 2024 22:29:19 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=X8FhDS5T; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-7067a2e9607so3814947b3a.3 for ; Tue, 02 Jul 2024 15:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719959358; x=1720564158; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=DxwJIKu+TqUqPBHZhlj5OW+e26fg3iGZkku71Z07S3I=; b=X8FhDS5TcPVWfshIzfPnu1VAwmufyA3P7Un8hofdVPP8b+nP7W45+H7jjVWUGzfzfh KjcLdao0imMVvRQMQ6D1XyPwVsSVdltWMPGPs3Mqjhgw6NgSAXrJTWzSsMK7oiJyZ5Tw g+Rqr60T/zKpMxC+lVrgOMKyz3h6bDA2wW5ZdhtDhkrIE1qVUYQe1gPVMxDD0eYDv1C+ RUccWXsmkgKbskQ8aVqhSVbBCjOzfOKt2N3PKFa2yy2nFGgOVDyFMuwcJBIzMmqUELHn B3x/E27tJkQOJnHWiXv4kpOGF4LENkNKiFbHYmS9IOp8wCmP5MVeP0MaVfmpGajtsmku tDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719959358; x=1720564158; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DxwJIKu+TqUqPBHZhlj5OW+e26fg3iGZkku71Z07S3I=; b=qCngCcM5fS9EMmKFYKRIMqafcZbUjrP8pSTgsoH3pUylfP1cssj7QVdO3F54kIBP7l 50CP7akU6NcYjEPWJ7KAqJ3pEgLr1xxUH+eyDTbGvp4NTazJCfumYH9LDHuvuqhWUlkx SsC8XSOuKHJrABbLAf2E9GrUSp54rkM0rrc01/rTKohbJclvRpcGowrsLPpeH6ivb8xs 7AWR6IpRHt0bIBgSG/1gr8uMwi34wWpIyKS5voQp3/6e6A58vL5xv3uRatjzLJ/wQi8H uPgT3kXKkX9SGZattE1iaBqeJe4kof+FSAqtb54MGZ1tLASIPbZQSVB+8udqjE/JO0Fh IHYA== X-Gm-Message-State: AOJu0YyKIWmeTuMU2A3INqfF+/Iz8Yp5Pil2zjK6I0OI1oKCATwpmdXK ixLBjea/N1Fr88FxnbyM8o1kEyuyPwM73CECfif/KXjyj0TJkR4STfiXgA8rTOjmsNaYuwaVrDh hc15Vtb7uN0yfWZr/ZLaoiuLxcU6kPlmECh0Jvg== X-Google-Smtp-Source: AGHT+IEeO27hxDMAlpgBXRg2PYMVsZuK7b6z+xo+Vqfkqeg/VBP07r4Px6+/1xpzzFv5syp8YfuWlJ+cWH7UF/bQdHI= X-Received: by 2002:a05:6a20:748e:b0:1bd:23f4:df70 with SMTP id adf61e73a8af0-1bef6217069mr12012508637.52.1719959357529; Tue, 02 Jul 2024 15:29:17 -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 MIME-Version: 1.0 From: Mario Marietto Date: Wed, 3 Jul 2024 00:28:41 +0200 Message-ID: Subject: How to analyze some precompiled bhyve files with the goal to develop a patch... To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000088a668061c4b3e11" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::436:from] X-Rspamd-Queue-Id: 4WDHdW3TS9z47Gj --00000000000088a668061c4b3e11 Content-Type: text/plain; charset="UTF-8" Hello to each bhyve developers. Some of you already know that I have been able to correctly pass thru correctly my gpu,the geforce RTX 2080 ti inside a Windows 11 vm. For sure I don't know why it works,because it didn't work for a lot of years. I've isolated all the files that should NOT be changed,otherwise it will not work anymore. These files are the following : [root@marietto /boot/kernel]==> sha1sum vmm-win.ko acb0fe9992046abea9301f050a5c1189890c3ea6 vmm-win.ko [root@marietto /boot/kernel]==> sha1sum kernel 1ab36c7902958f0ee2026854498a90cb171f5d64 kernel [root@marietto /usr/sbin]==> sha1sum bhyve-win 726b2c99e3968042ff5ce904b03b80dee3019ff4 bhyve-win [root@marietto /usr/sbin]==> sha1sum bhyvectl 33eb84464492b0a75149067931747f4c4e10aeb7 bhyvectl [root@marietto /usr/sbin]==> sha1sum bhyveload 7e2d1dfaa0351b36434a30c174ce3d6df31971fc bhyveload This is the FreeBSD version that I'm using : [root@marietto /usr/sbin]==> uname -a FreeBSD marietto 14.0-RELEASE-p6 FreeBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Today I've upgraded the packages and the passthru stopped working. Maybe because bhyve and some other components have been changed and the kernel has been recompiled. It means that I don't know how to upgrade the system without breaking the passthru of my gpu inside a Windows 11 vm. Can someone give me some suggestions ? Can I keep bhyve as is but at the same time can I upgrade the rest of the system ? And even more important : is there a way for you,developers,to analyze the bhyve files that I'm using with the goal to understand why the passthru works great for me and then,develop a patch and merge it officially ? I think that this is the only way that I have for keeping the whole system in sync with the changes made to the system without breaking the passthru functionality that I need. Thanks. -- Mario. --00000000000088a668061c4b3e11 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello to each bhyve developers.

<= div>Some of you already know that I have been able to correctly pass thru c= orrectly my gpu,the geforce RTX 2080 ti inside a Windows 11 vm. For sure I = don't know why it works,because it didn't work for a lot of years. = I've isolated all the files that should NOT be changed,otherwise it wil= l not work anymore. These files are the following :

[root@marietto /boot/kernel]=3D=3D> sha1sum vmm-win.ko =C2=A0
acb0f= e9992046abea9301f050a5c1189890c3ea6 =C2=A0vmm-win.ko

[root@marietto /boot/kernel]=3D=3D> sha1sum kernel =C2=A0 =C2=A0 = =C2=A0
1ab36c7902958f0ee2026854498a90cb171f5d64 =C2=A0kernel
=
[root@marietto /usr/sbin]=3D=3D> sha1sum bhyve-win
726= b2c99e3968042ff5ce904b03b80dee3019ff4 =C2=A0bhyve-win

<= div>[root@marietto /usr/sbin]=3D=3D> sha1sum bhyvectl
33eb84464492b0= a75149067931747f4c4e10aeb7 =C2=A0bhyvectl

[root@ma= rietto /usr/sbin]=3D=3D> sha1sum bhyveload
7e2d1dfaa0351b36434a30c174= ce3d6df31971fc =C2=A0bhyveload

This is the FreeBSD= version that I'm using :

[root@marietto /usr/= sbin]=3D=3D> uname -a
FreeBSD marietto 14.0-RELEASE-p6 Fre= eBSD 14.0-RELEASE-p6 #0: Tue Mar 26 20:26:20 UTC 2024 =C2=A0 =C2=A0 root@am= d64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64<= /div>

Today I've upgraded the packages and the passt= hru stopped working. Maybe because bhyve and some other components have bee= n changed and the kernel has been recompiled.

It means that I don't know how to upgrade the system without breaking = the passthru of my gpu inside a Windows 11 vm.

Can= someone give me some suggestions ? Can I keep bhyve as is but at the same = time can I upgrade the rest of the system ? And even more important : is th= ere a way for you,developers,to analyze the bhyve files that I'm using = with the goal to understand why the passthru works great for me and then,de= velop a patch and merge it officially ? I think that this is the only way t= hat I have for keeping the whole system in sync with the changes made to th= e system without breaking the passthru functionality that I need.

Thanks.

--
Mario.
--00000000000088a668061c4b3e11--