From nobody Mon Dec 30 00:22:05 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 4YLxdJ3gCrz5j3tj; Mon, 30 Dec 2024 00:22:44 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (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 4YLxdH5Sppz4lh7; Mon, 30 Dec 2024 00:22:43 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=eV2zga1O; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2ef760a1001so11199232a91.0; Sun, 29 Dec 2024 16:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735518162; x=1736122962; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=j/1sBxIfqZCqgWouAI6koz0t1IOx6u1ef0b5XDR/pdc=; b=eV2zga1O80r2YGc4j19mlVe0P0QDf/x6dG3Ge3LlUj8wulQv6MfGRzwdB9jOspZOqw 5xNf1RIph90piq96qYG1szCzUJ9Ao2PzGaDEXYGs1h/w5JWWMyG6DZS9Mt4C6GEpohbH JxwHvAJhiiRN6apxdIwUBkYlEvjbYr2JJC2Znob/9K5Lw1JOKTvoryu32vxg3IOlX15J h8XVvIjZk+99giH27J9haQsa4HQheFyA7/O27dZ3Cn7HTyc8MFDWvsEWhAkEGc3buXdN FSTOM1amHXdoBQPf/di0h6wuUdOk363GuU0/bUi6SR8Hikz+eVyz/aB0sOuKJAD4rPvL qlew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735518162; x=1736122962; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j/1sBxIfqZCqgWouAI6koz0t1IOx6u1ef0b5XDR/pdc=; b=UX5WFkTEQVgyLarfaZhPVe4oDi2IgDSnLsEJPezJ/Wn8cdSMUJXhoy6LsKw2BqGz4g dbK+65aDo8sIP0+b30kcMetuhPIXrXrtmxVPaRS6cNidAIjI2m/RgXwVV1lS8N5qJ0HX CPcHujpf38hMNsmc9j8qiLgAGeWByComs87AsDDw0uj2EnNBYuZW/LClNsZQpgSR2rUj kLvoOg/mbx0FphvWzzxBaDk4vdQGq93C75PNU0zUFYKQwP+ir6ZdoG6rDd4ZwTwzol2U 8PY3CVBuCjE85PLDOrs0oQIaNV+xjWzZWXg00F3TpQiy2IX8KDTJH/Rlt9qdZ84wp5p9 PFkA== X-Forwarded-Encrypted: i=1; AJvYcCXpImZ/hoGNHighqJNvvHma4Qo05NuKMIiWgU81GVPFiyLOsiU49ZLtHEeTSuAJtlhJRR1zWtEsbe8=@freebsd.org X-Gm-Message-State: AOJu0YzylmjBfdpDH/dOQ5lqaOieNE65uubelq7N1DfYRIk52eb7tlLH k1KxNyRYppZNhZIq4r3m68QUze7duAMOevI2dBk7lLUTHmyQlLBhcdjb/wBbhUiqiD1oMQpfxQo kxNIySjLfyGtPgQtxcf/soJRm/C63m9KcAuY= X-Gm-Gg: ASbGnct/VMSBHFDh8R8l39rcnOxfSSi86DK5wMIwJDQ43pUdYynVSRHORhIbokGtUgO E0ckfgB/iWmjxc3VxoptaFRd64rbZdPKiUJ64YM4= X-Google-Smtp-Source: AGHT+IE3CPQxHPN6KrmOj6S2QKDrNyzt2d2A2c4EtHjp1Kw7IB5oCNhTNerNno6y7IZDVtLDUzVoLEgyP+/zdu8vhmQ= X-Received: by 2002:a17:90b:2f07:b0:2ea:9ccb:d1f4 with SMTP id 98e67ed59e1d1-2f452d32b5fmr60720406a91.0.1735518161633; Sun, 29 Dec 2024 16:22:41 -0800 (PST) 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: Mon, 30 Dec 2024 01:22:05 +0100 Message-ID: Subject: How to upgrade virtio 0.9 to virtio 1.0 for bhyve To: FreeBSD virtualization , questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000868c19062a71cfc1" X-Spamd-Result: default: False [-2.00 / 15.00]; URI_COUNT_ODD(1.00)[5]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; 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]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org,questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102c:from] X-Rspamd-Queue-Id: 4YLxdH5Sppz4lh7 X-Spamd-Bar: - --000000000000868c19062a71cfc1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I'm using FreeBSD 14.2 right now and I'm trying to use the virtio-input parameter in bhyve to share one of my mouses within a Linux vm : From =E2=80=9Cman bhyve=E2=80=9D ( https://www.freebsd.org/cgi/man.cgi...FreeBSD+14.0-CURRENT&arch=3Ddefault&f= ormat=3Dhtml ): Virtio input device backends: /dev/input/eventX Send input events of /dev/input/eventX to guest by VirtIO Input Interface. I tried on my FreeBSD system : [marietto@marietto ~]=3D=3D> sudo libinput debug-events Password: -event0 DEVICE_ADDED System keyboard multiplexer seat0 default group1 cap:k -event1 DEVICE_ADDED System mouse seat0 default group2 cap:p left scroll-nat scroll-button -event2 DEVICE_ADDED Sleep Button seat0 default group3 cap:k -event3 DEVICE_ADDED Power Button seat0 default group4 cap:k -event4 DEVICE_ADDED AT keyboard seat0 default group5 cap:k -event5 DEVICE_ADDED ITE Tech. Inc. ITE Device(8595), class 0/0, rev 2.00/0.03, addr 8 seat0 default group6 cap:k -event6 DEVICE_ADDED SIGMACHIP Trust Keyboard, class 0/0, rev 1.10/1.01, addr 12 seat0 default group7 cap:k -event7 DEVICE_ADDED SIGMACHIP Trust Keyboard, class 0/0, rev 1.10/1.01, addr 24 seat0 default group8 cap:k -event8 DEVICE_ADDED Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 25 seat0 default group9 cap:p left scroll-nat scroll-button -event9 DEVICE_ADDED vendor 0x04b3 USB Optical Mouse, class 0/0, rev 2.00/2.00, addr 26 seat0 default group10 cap:p left scroll-nat scroll-button event9 POINTER_MOTION +0.176s -0.30/ 0.00 ( -1.00/ +0.00) event9 POINTER_MOTION +0.184s -1.77/ 0.88 ( -2.00/ +1.00) event9 POINTER_MOTION +0.352s -0.89/ 0.00 ( -1.00/ +0.00) event9 POINTER_MOTION +0.360s -0.89/ 0.89 ( -1.00/ +1.00) event9 POINTER_MOTION +0.368s -2.00/ 1.00 ( -2.00/ +1.00) event9 POINTER_MOTION +0.376s -2.00/ 0.00 ( -2.00/ +0.00) event9 POINTER_MOTION +0.384s -4.13/ 2.06 ( -4.00/ +2.00) event9 POINTER_MOTION +0.392s -4.60/ 1.15 ( -4.00/ +1.00) event9 POINTER_MOTION +0.400s -9.41/ 2.69 ( -7.00/ +2.00) event9 POINTER_MOTION +0.408s -8.97/ 2.99 ( -6.00/ +2.00) event9 POINTER_MOTION +0.416s -8.58/ 2.86 ( -6.00/ +2.00) event9 POINTER_MOTION +0.424s -8.58/ 2.86 ( -6.00/ +2.00) event9 POINTER_MOTION +0.432s -5.21/ 2.60 ( -4.00/ +2.00) event9 POINTER_MOTION +0.440s -2.06/ 0.00 ( -2.00/ +0.00) event9 POINTER_MOTION +0.480s 1.93/ 0.00 ( +2.00/ +0.00) event9 POINTER_MOTION +0.488s 8.00/ -3.43 ( +7.00/ -3.00) event9 POINTER_MOTION +0.496s 11.25/ -4.82 ( +7.00/ -3.00) event9 POINTER_MOTION +0.504s 11.09/ -3.17 ( +7.00/ -2.00) event9 POINTER_MOTION +0.512s 13.17/ -4.94 ( +8.00/ -3.00) event9 POINTER_MOTION +0.520s 11.39/ 0.00 ( +7.00/ +0.00) event9 POINTER_MOTION +0.528s 6.93/ 0.00 ( +5.00/ +0.00) event9 POINTER_MOTION +0.536s 6.24/ 0.00 ( +5.00/ +0.00) event9 POINTER_MOTION +0.544s 2.14/ 0.00 ( +2.00/ +0.00) event9 POINTER_MOTION +0.552s 1.00/ 0.00 ( +1.00/ +0.00) event9 POINTER_MOTION +0.576s -0.95/ 0.00 ( -1.00/ +0.00) event9 POINTER_MOTION +0.584s -2.86/ 0.00 ( -3.00/ +0.00) event9 POINTER_MOTION +0.592s -4.18/ 0.00 ( -4.00/ +0.00) event9 POINTER_MOTION +0.600s -9.21/ 0.00 ( -7.00/ +0.00) event9 POINTER_MOTION +0.608s -8.76/ 1.46 ( -6.00/ +1.00) event9 POINTER_MOTION +0.616s -6.75/ 2.70 ( -5.00/ +2.00) event9 POINTER_MOTION +0.624s -6.41/ 1.28 ( -5.00/ +1.00) event9 POINTER_MOTION +0.632s -3.39/ 1.13 ( -3.00/ +1.00) event9 POINTER_MOTION +0.640s -1.00/ 1.00 ( -1.00/ +1.00) event9 POINTER_MOTION +0.696s 0.91/ 0.00 ( +1.00/ +0.00) event9 POINTER_MOTION +0.704s 0.91/ 0.00 ( +1.00/ +0.00) -event0 KEYBOARD_KEY +1.408s *** (-1) pressed event0 KEYBOARD_KEY +1.560s *** (-1) pressed The USB mouse that I want to pass is this : -event9 DEVICE_ADDED vendor 0x04b3 USB Optical Mouse, class 0/0, rev 2.00/2.00, addr 26 seat0 default group10 cap:p left scroll-nat scroll-button so,between the bhyve parameters I've added ---> "-s 10,virtio-input,/dev/input/event9" /usr/sbin/./bhyve-lin -S -c sockets=3D2,cores=3D2,threads=3D2 -m 4G -w -H -= A \ -s 0,hostbridge \ -s 1,ahci-hd,/mnt/zroot2/zroot2/bhyve/img/Linux/Ubuntu2410.img,bootindex=3D= 1 \ -s 3,nvme,/dev/nda0 \ -s 8:0,passthru,2/0/0 \ -s 8:1,passthru,2/0/1 \ -s 8:2,passthru,2/0/2 \ -s 8:3,passthru,2/0/3 \ -s 9,passthru,1/0/0 \ -s 10,virtio-input,/dev/input/event9 \ -s 13,virtio-net,tap1 \ -s 14,virtio-9p,sharename=3D/ \ -s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1600,h=3D950,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd \ vm0:1 < /dev/null & sleep 2 && vncviewer 0:1 Unfortunately inside Ubuntu 24.04 the "0x04b3 USB Optical Mouse" does not move at all. I know the reason. Bhyve only uses the virtio 0.9 protocol yet. Unfortunately, Linux requires virtio 1.0. So. How can upgrade virtio 0.9 to virtio 1.0 to match the version used by Linux ? --=20 Mario. --000000000000868c19062a71cfc1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

I'm using FreeBSD 14.2 right now an= d I'm trying to use the virtio-input parameter in bhyve to share one of= my mouses within a Linux vm :

=C2=A0 =C2=A0 From =E2=80=9Cman bhyve= =E2=80=9D (https://www.freebsd.org/cgi/man= .cgi...FreeBSD+14.0-CURRENT&arch=3Ddefault&format=3Dhtml):
<= br>=C2=A0 =C2=A0 Virtio input device backends:

=C2=A0 =C2=A0 /dev/in= put/eventX

=C2=A0 =C2=A0 Send input events of /dev/input/eventX to g= uest

=C2=A0 =C2=A0 by VirtIO Input Interface.


I tried on = my FreeBSD system :

[marietto@marietto ~]=3D=3D> sudo libinput de= bug-events
Password:

-event0 =C2=A0 DEVICE_ADDED =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0System keyboard multiplexer =C2=A0 =C2=A0 =C2=A0= seat0 default group1 =C2=A0cap:k
-event1 =C2=A0 DEVICE_ADDED =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0System mouse =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0seat0 default group2 =C2=A0cap= :p left scroll-nat scroll-button
-event2 =C2=A0 DEVICE_ADDED =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Sleep Button =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0seat0 default group3 =C2=A0cap= :k
-event3 =C2=A0 DEVICE_ADDED =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= Power Button =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0seat0 default group4 =C2=A0cap:k
-event4 =C2=A0 DEVICE_ADD= ED =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0AT keyboard =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 seat0 default g= roup5 =C2=A0cap:k
-event5 =C2=A0 DEVICE_ADDED =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0ITE Tech. Inc. ITE Device(8595), class 0/0, rev 2.00/0.03,= addr 8 seat0 default group6 =C2=A0cap:k
-event6 =C2=A0 DEVICE_ADDED =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0SIGMACHIP Trust Keyboard, class 0/0, = rev 1.10/1.01, addr 12 seat0 default group7 =C2=A0cap:k
-event7 =C2=A0 D= EVICE_ADDED =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0SIGMACHIP Trust Keyboa= rd, class 0/0, rev 1.10/1.01, addr 24 seat0 default group8 =C2=A0cap:k
-= event8 =C2=A0 DEVICE_ADDED =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Logitec= h USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 25 seat0 default group= 9 =C2=A0cap:p left scroll-nat scroll-button
-event9 =C2=A0 DEVICE_ADDED = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0vendor 0x04b3 USB Optical Mouse, c= lass 0/0, rev 2.00/2.00, addr 26 seat0 default group10 cap:p left scroll-na= t scroll-button
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0+0.176s =C2=A0 =C2=A0 -0.30/ =C2=A00.00 ( -1.00/ +0.00)
=C2= =A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.184s = =C2=A0 =C2=A0 -1.77/ =C2=A00.88 ( -2.00/ +1.00)
=C2=A0event9 =C2=A0 POIN= TER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.352s =C2=A0 =C2=A0 -0.89/ = =C2=A00.00 ( -1.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0+0.360s =C2=A0 =C2=A0 -0.89/ =C2=A00.89 ( -1.00/ +1= .00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0+0.368s =C2=A0 =C2=A0 -2.00/ =C2=A01.00 ( -2.00/ +1.00)
=C2=A0event9 = =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.376s =C2=A0 =C2= =A0 -2.00/ =C2=A00.00 ( -2.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.384s =C2=A0 =C2=A0 -4.13/ =C2=A02.06 = ( -4.00/ +2.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0+0.392s =C2=A0 =C2=A0 -4.60/ =C2=A01.15 ( -4.00/ +1.00)
=C2= =A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.400s = =C2=A0 =C2=A0 -9.41/ =C2=A02.69 ( -7.00/ +2.00)
=C2=A0event9 =C2=A0 POIN= TER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.408s =C2=A0 =C2=A0 -8.97/ = =C2=A02.99 ( -6.00/ +2.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0+0.416s =C2=A0 =C2=A0 -8.58/ =C2=A02.86 ( -6.00/ +2= .00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0+0.424s =C2=A0 =C2=A0 -8.58/ =C2=A02.86 ( -6.00/ +2.00)
=C2=A0event9 = =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.432s =C2=A0 =C2= =A0 -5.21/ =C2=A02.60 ( -4.00/ +2.00)
=C2=A0event9 =C2=A0 POINTER_MOTION= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.440s =C2=A0 =C2=A0 -2.06/ =C2=A00.00 = ( -2.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0+0.480s =C2=A0 =C2=A0 =C2=A01.93/ =C2=A00.00 ( +2.00/ +0.00)=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.4= 88s =C2=A0 =C2=A0 =C2=A08.00/ -3.43 ( +7.00/ -3.00)
=C2=A0event9 =C2=A0 = POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.496s =C2=A0 =C2=A0 11.2= 5/ -4.82 ( +7.00/ -3.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0+0.504s =C2=A0 =C2=A0 11.09/ -3.17 ( +7.00/ -2.00)<= br>=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.= 512s =C2=A0 =C2=A0 13.17/ -4.94 ( +8.00/ -3.00)
=C2=A0event9 =C2=A0 POIN= TER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.520s =C2=A0 =C2=A0 11.39/ = =C2=A00.00 ( +7.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0+0.528s =C2=A0 =C2=A0 =C2=A06.93/ =C2=A00.00 ( +5.0= 0/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0+0.536s =C2=A0 =C2=A0 =C2=A06.24/ =C2=A00.00 ( +5.00/ +0.00)
=C2= =A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.544s = =C2=A0 =C2=A0 =C2=A02.14/ =C2=A00.00 ( +2.00/ +0.00)
=C2=A0event9 =C2=A0= POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.552s =C2=A0 =C2=A0 =C2= =A01.00/ =C2=A00.00 ( +1.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.576s =C2=A0 =C2=A0 -0.95/ =C2=A00.00 (= -1.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0+0.584s =C2=A0 =C2=A0 -2.86/ =C2=A00.00 ( -3.00/ +0.00)
=C2= =A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.592s = =C2=A0 =C2=A0 -4.18/ =C2=A00.00 ( -4.00/ +0.00)
=C2=A0event9 =C2=A0 POIN= TER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.600s =C2=A0 =C2=A0 -9.21/ = =C2=A00.00 ( -7.00/ +0.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0+0.608s =C2=A0 =C2=A0 -8.76/ =C2=A01.46 ( -6.00/ +1= .00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0+0.616s =C2=A0 =C2=A0 -6.75/ =C2=A02.70 ( -5.00/ +2.00)
=C2=A0event9 = =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.624s =C2=A0 =C2= =A0 -6.41/ =C2=A01.28 ( -5.00/ +1.00)
=C2=A0event9 =C2=A0 POINTER_MOTION= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.632s =C2=A0 =C2=A0 -3.39/ =C2=A01.13 = ( -3.00/ +1.00)
=C2=A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0+0.640s =C2=A0 =C2=A0 -1.00/ =C2=A01.00 ( -1.00/ +1.00)
=C2= =A0event9 =C2=A0 POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.696s = =C2=A0 =C2=A0 =C2=A00.91/ =C2=A00.00 ( +1.00/ +0.00)
=C2=A0event9 =C2=A0= POINTER_MOTION =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+0.704s =C2=A0 =C2=A0 =C2= =A00.91/ =C2=A00.00 ( +1.00/ +0.00)
-event0 =C2=A0 KEYBOARD_KEY =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+1.408s =C2=A0 =C2=A0*** (-1) pressed
= =C2=A0event0 =C2=A0 KEYBOARD_KEY =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+= 1.560s =C2=A0 =C2=A0*** (-1) pressed


The USB mouse that I want t= o pass is this :

-event9 =C2=A0 DEVICE_ADDED =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0vendor 0x04b3 USB Optical Mouse, class 0/0, rev 2.00/2.= 00, addr 26 seat0 default group10 cap:p left scroll-nat scroll-button

so,between the bhyve parameters I've added ---> "-s 10,vi= rtio-input,/dev/input/event9"

/usr/sbin/./bhyve-lin -S -c socke= ts=3D2,cores=3D2,threads=3D2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,= ahci-hd,/mnt/zroot2/zroot2/bhyve/img/Linux/Ubuntu2410.img,bootindex=3D1 \-s 3,nvme,/dev/nda0 \
-s 8:0,passthru,2/0/0 \
-s 8:1,passthru,2/0/1= \
-s 8:2,passthru,2/0/2 \
-s 8:3,passthru,2/0/3 \
-s 9,passthru,1= /0/0 \
-s 10,virtio-input,/dev/input/event9 \
-s 13,virtio-net,tap1 \=
-s 14,virtio-9p,sharename=3D/ \
-s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1600,h=3D950,wait \
-s 30,xhci,tablet = \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CO= DE.fd \
vm0:1 < /dev/null & sleep 2 && vncviewer 0:1
<= br>
Unfortunately inside Ubuntu 24.04 the "0x04b3 USB Optical Mouse= " does not move at all. I know the reason. Bhyve only uses the virtio = 0.9 protocol yet. Unfortunately, Linux requires virtio 1.0. So. How can upg= rade virtio 0.9 to virtio 1.0 to match the version used by Linux ?

--
Mario.
--000000000000868c19062a71cfc1-- From nobody Thu Jan 2 12:29:43 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 4YP5cm3H2dz5j8LF for ; Thu, 02 Jan 2025 12:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YP5cm1T9tz4Dsf for ; Thu, 2 Jan 2025 12:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735820984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tsKaxtLIkDFzxmUM7VTn3g0VkSuB9kYiCgLaof9MwOI=; b=J+KVrRxrH1mIbR9LKn5ANmuWoQo0eVU23QuBs0rRNCCYRZ964Ir/K4E+gsjJaVbx0VZGJ1 MIfa2Ni7f29emWG6cTn7NDgSc9U6/FoJbsnNIrPE0O3ztqA1yWYP/HDGaFw5/x0Pre81xn Z2Ka40kIqJfF5yVnzFZ5GCrWYJ5xx99P0tJx8tw3UABKu0pCJ6GxC8IfKAifK+IZwakEiE WhvMtlO4XgTUs+a1mr5ERSAezI0z+05eKE3cCcP8n45NJ8nwfMRcLcuxEXHktD8Jzgjpxt Ld8+JuKb5z9n3/SxufnEDoYbFydY2w9NIrs+kclsFnHPO7yPxU9b+4OKTUsMAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735820984; a=rsa-sha256; cv=none; b=MzWe6byqFB03itzoaRYj0hl1ml64btkzwZ5fKvdGV6vXO+pk3LEWKIdEjkZ2dg+u2WPBTs b/ZcWyFcmU/V3E1agrQPeAfCPejwVtP0TmJ3iN7v6hvrUCOEy+Ql+jjRtDlPQS2gY7/Fzg yFk4d1U/lpeRQT/6FfI9POjOjBjN1wFsFN7sShpJHF50g4DtaeXzqM54r3FntfP8ILNrzO beT3yPOn58e5y7N/eb1FgruE4my/H9dPxTALmh/Nr5GfCfxCkBS01Sfn+2UgEPkBQMS28O 3Rv9OGTkAq+3Rnuz65T96nd9p54O47RSA3TlGTvC/gZNlNXWzUUvwmWL9/SS0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YP5cm0WqHzdFl for ; Thu, 02 Jan 2025 12:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 502CTh6s055114 for ; Thu, 2 Jan 2025 12:29:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 502CThj1055113 for virtualization@FreeBSD.org; Thu, 2 Jan 2025 12:29:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 283103] Yet another Parallels arm64 panic Date: Thu, 02 Jan 2025 12:29:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Andrew@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283103 Andrew Turner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress --- Comment #9 from Andrew Turner --- I've created https://reviews.freebsd.org/D48283 and https://reviews.freebsd.org/D48284 to allow sleepable ithreads, and use it = in the GED driver. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sat Jan 4 12:18:14 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 4YQKGb0hTrz5kC42 for ; Sat, 04 Jan 2025 12:18:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YQKGZ5l2sz4Hfg for ; Sat, 4 Jan 2025 12:18:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735993094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c56RUKYRSsD/ccitaNWILxE+iwlJVm507tblQtwBJI4=; b=t9Dw7/FcV6VAwJWD5717BFOnQHCrA/rca+xVr8hzVNkVvrEPIAf9lXSu89OXpuQp7554dj Hw4lUDVfElH+OwLX4tHUmvMLVWOwfs7HjZOZr8eu0yRcCSzh++EJaT7n58LtpBL7nfU7q8 0+t4b5/EmJLV3/E4KInsj430/SopBUHbF78N2FhwM0UIDqYH+lmbQgzO7sqflYsUqt7qc5 EPJQA/XGK/d+L69Moskmqx0ILPdLbUSv9mqecizm0pzh+392JuC/Q3bVowul/rGPZ3CkG8 nHD1ap9/1nmHmaJn7lqzsw2VUiJqfeqk/BtDPcg2ial+9AsYacShRlIqD17V7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735993094; a=rsa-sha256; cv=none; b=o0dprQZbJ7VcZKc0dGaDnyHP5KCCZKQ9f6P1X4KyHIkw90s4vozEZiszDjP8fDKoEQVRDs gE6YnfJ1/O9GEgdMRFqSArqlvcEG6whh0FyB8Qy6DP9DJfWK258SyE4wMMAJFpYzyA6Q9D pVer2Rx/U9edW5EDg/znWqq0LinTzaS/WQ8WDftvuE+Je0Fj6JFLoVbfeDd7324wquVbvJ ZL0sc2yEC9NI6F35moEok324WYBdvwU6HA4Z4pGQWTnxww+btWoGggkRpTDEjo0skLu6cs Nt5Q8Qh17Ua7jnhYZeEBXqZRiiXQ89RnXYCclsgqeTFl97vi4Q2lcV7CZZw5gQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YQKGZ5KxfzsSs for ; Sat, 04 Jan 2025 12:18:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 504CIEbj080646 for ; Sat, 4 Jan 2025 12:18:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 504CIExp080645 for virtualization@FreeBSD.org; Sat, 4 Jan 2025 12:18:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 276361] 14.0-Release iso boot challenges on virtualbox Date: Sat, 04 Jan 2025 12:18:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vvd@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Feedback Timeout X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276361 Vladimir Druzenko changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Feedback Timeout Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sat Jan 4 20:23:55 2025 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 4YQX3D71Bfz5jlyJ for ; Sat, 04 Jan 2025 20:24:08 +0000 (UTC) (envelope-from peter@alastria.net) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (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 4YQX3C5Kgfz4Hn2 for ; Sat, 4 Jan 2025 20:24:07 +0000 (UTC) (envelope-from peter@alastria.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=alastria.net header.s=google header.b=Do7bsEeP; spf=pass (mx1.freebsd.org: domain of peter@alastria.net designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=peter@alastria.net; dmarc=none Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-467b74a1754so17544431cf.1 for ; Sat, 04 Jan 2025 12:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alastria.net; s=google; t=1736022247; x=1736627047; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9Em71hikgBb0Wjc3J2r0vmko7zA96ha9OmWakZyo1zk=; b=Do7bsEePqUDzhosuZuuMR+FJo0aO97hllEXj8a8FfMcue5NVzaCVccU6/RVlqomZ36 P6AInf+IRH1Ux1CkOHrJ/iIR5xPvX/MqzVZrt4qL8GQYiXCIKOaAT/xMhd99Q3TGlZrY 7URWEeoKugMuxmJ2l4/MrK44X2WH4A1E2S4Rj8Hd961AGf6bbJxY3dWMvbibstV6jGRj CV/4jff1VMfwvcmHJC6M+kv8JC2ASTYJKwOWCAYeTy+R87P6kVQk8WheMBpLWdg6LWRi WKP0bDXcqtunoXUZCF0Y9YuAPWj7Hc2nMnmpinnn/SKnzgQD6m84PBYhZ47uQFG64iWq vFJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736022247; x=1736627047; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9Em71hikgBb0Wjc3J2r0vmko7zA96ha9OmWakZyo1zk=; b=n/lPaTbuWENSL5jQnYAoQFuS9PajlB15cim/CTNPwjjOOjp5p97MxyMtof2ogAoH2S gT4RtTbqfglk3AY78FUzIqTMsvH8a7VG3/sNVub0SevTljSAbxjdT9QwDtGzIqrNszCA N06uDxNzuF0dEALE8P2lZYVMTg0tgJeLR8K7CDsAuhJEwVm4cE1h/zyV0c4ueFqem1pc RuhPMDw6mb3lrSo8ND9jjGE4SB1un9u6CVgBzI/BTKjeLx49eEVq2HzqfhyQ7fZkd3WI yvUDRziKUuGO/t0CT3evp7PTqvxpjpxJuBSRktPaif3ARjp8RCsOW+nJgWjXkFPBq5lB Y5VA== X-Gm-Message-State: AOJu0YwTE9hwv2AYBOX7Z2rN+r1T/ThT9065XgNKU72Olv2T3piD84Wi ddRHqlgBnIn6HgSG8YT0udxpiUG4kAQ8jUcCVcKZyppvNIsOWdqyOjDpyx1Vb48AN1rTH5UMpKW kKVcdm0ovGIqGRDSUi+cVGVRMhTAQPinHnz6AS1Y4dLhtZXh6UZM= X-Gm-Gg: ASbGncsUK6zxkUPnom1qoP9NwZ2HGbuU/L5Eoy0h2M8EfI9vSkwbiyuJH+7ah9uBczh v18Z3fmGP/rZ3/6aDcmI2ybrUdeNsDU1Sk25A2ab1fe9nZpNat/oGP5IbcTlf4CSsxKhO X-Google-Smtp-Source: AGHT+IGiGdnPKnsme+zAkihTqsrauq1ZRISK7eIbAyXIFb3REjaY2ot63fhJ5AxIScmcCq3MT0w2O3Eju/WfNugU+1Q= X-Received: by 2002:ac8:5716:0:b0:467:6133:3372 with SMTP id d75a77b69052e-46a4a8f402emr878582231cf.25.1736022246691; Sat, 04 Jan 2025 12:24:06 -0800 (PST) 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: Peter Wood Date: Sat, 4 Jan 2025 20:23:55 +0000 Message-ID: Subject: bhyve/passthru for Intel dGPU (ARC A380)? To: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000562b7a062ae72d63" X-Rspamd-Queue-Id: 4YQX3C5Kgfz4Hn2 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; URI_COUNT_ODD(1.00)[5]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[alastria.net:s=google]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[alastria.net:+]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[alastria.net]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[peter]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::835:from] --000000000000562b7a062ae72d63 Content-Type: text/plain; charset="UTF-8" Happy new year all. I've been using bhyve happily for a year or two now, multiple machines with VT-d running happily passing SAS cards and USB cards into VMs. I've reached the point where I want to pass a GPU in for accelerated encoding/decoding/etc (scrypted, tdarr, jellyfin). I picked up an Intel ARC A380, as it's encoders/decoders are pretty decent for my use case - I'd also seen that there had been success with people using the iGPU's in Intel CPUs successfully. Unfortunately after attaching the GPUs PCI device to ppt, and attempting to start a VM with it attached, I'm greated by an error that seems to focus on iGPUs? /usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G -l com1,/dev/nmdm202B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/usr/local/var/cache/bmd/k8s-worker-3.vars -s 0,hostbridge -s 1,lpc -s 2,nvme,/dev/zvol/vm/k8s-worker-3 -s 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-live-server-amd64.iso -s 5,virtio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp=0.0.0.0:6007,w=1280,h=720,vga=io -s 7,xhci,tablet test bhyve: Warning: Unable to reuse host address of Graphics Stolen Memory. GPU passthrough might not work properly. bhyve: gvt_d_setup_opregion: Invalid OpRegion signature bhyve: gvt_d_init: Unable to setup OpRegion Device emulation initialization error: No such file or directory The machine is an AMD EPYC 7343 on a ASRock ROMED8-2T, it has a dedicated onboard GPU (attached to the BMC), which the BIOS is configured to encourage operating systems to use as the primary display - and sure enough the loader and BSD console are presented through the BMCs ASPEED AST2500. Digging through the freebsd source tree, it appears that that pci_gvt-d.c is responsible for this, if it's Intel and a Display then attempt the set up of graphics memory. https://github.com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e1830b97594bef3/usr.sbin/bhyve/amd64/pci_gvt-d.c#L44 Has anyone experimented with this? Can I just patch this out, rebuild bhyve and expect a chance of success? Cheers, P. -- *Peter Wood* peter@alastria.net --000000000000562b7a062ae72d63 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Happy new year all.

I= 9;ve been using bhyve happily for a year or two now, multiple machines with= VT-d running happily passing SAS cards and USB cards into VMs.
<= br>
I've reached the point where I want to pass a GPU in for = accelerated encoding/decoding/etc (scrypted, tdarr, jellyfin). I picked up = an Intel ARC A380, as it's encoders/decoders are pretty decent for my u= se case - I'd also seen that there had been success with people using t= he iGPU's in Intel CPUs successfully.

Unfortun= ately after attaching the GPUs PCI device to ppt, and attempting to start a= VM with it attached, I'm greated by an error that seems to focus on iG= PUs?

/usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G= -l com1,/dev/nmdm202B -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI= .fd,/usr/local/var/cache/bmd/k8s-worker-3.vars -s 0,hostbridge -s 1,lpc -s = 2,nvme,/dev/zvol/vm/k8s-worker-3 -s 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-liv= e-server-amd64.iso -s 5,virtio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp= =3D0.0.0.0:6007,w=3D1280,h=3D720,vga=3D= io -s 7,xhci,tablet test
bhyve: Warning: Unable to reuse host address of= Graphics Stolen Memory. GPU passthrough might not work properly.
bhyve:= gvt_d_setup_opregion: Invalid OpRegion signature
bhyve: gvt_d_init: Una= ble to setup OpRegion
Device emulation initialization error: No such fil= e or directory

The machine is an AMD EPYC 7343= on a ASRock ROMED8-2T, it has a dedicated onboard GPU (attached to the BMC= ), which the BIOS is configured to encourage operating systems to use as th= e primary display - and sure enough the loader and BSD console are presente= d through the BMCs ASPEED AST2500.

Digging through the freebsd source= tree, it appears that that pci_gvt-d.c is responsible for this, if it'= s Intel and a Display then attempt the set up of graphics memory.
https://github.= com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e1830b97594bef3/usr.s= bin/bhyve/amd64/pci_gvt-d.c#L44

Has anyone exp= erimented with this? Can I just patch this out, rebuild bhyve and expect a = chance of success?

Cheers,

P.
--
Peter Wood
<= a href=3D"mailto:peter@alastria.net" target=3D"_blank">peter@alastria.net

--000000000000562b7a062ae72d63-- From nobody Sat Jan 4 20:33:28 2025 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 4YQXGl1VkYz5jm9P for ; Sat, 04 Jan 2025 20:34:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 4YQXGk4j6Kz4Jpq for ; Sat, 4 Jan 2025 20:34:06 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2efb17478adso18656092a91.1 for ; Sat, 04 Jan 2025 12:34:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736022845; x=1736627645; 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=6vgnVg8yWzmQdgzdllVbbwlR3h75s5wGa5WsT09ioys=; b=ffD9GmPW/0ZMUpLfAbw382nV3wTgYIuo6l7UvHzAAiQzLuK7bXKh8oZ7Hnirr8UYyM H4sc9uMZTnX0dUa5eWiUQujH02z2abSQuCn6t3Mv0XBonNLvsBNhWVGnTn5zqrf2QB0p qmIEPZIjJFUqjk6M5cm156hyc3UP4c156nDjGcDSkOPWCbyYAE/S1wNFciCf9z6x3T1a yFTrmWEv8IjVfFXvn+fhIljSwHJegh6lStN0by9Y1gHVpsDoYrsmLJt63c6xFE0QLIM1 d2Qk+JSMGKHrhvsX8/RoFY82Ep5yJWG74fNhwLGGcLfPi2p2OcoBbeQHkEEBafj1zlUD ZVTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736022845; x=1736627645; 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=6vgnVg8yWzmQdgzdllVbbwlR3h75s5wGa5WsT09ioys=; b=nF+mJDn5tRgA6Cji3ShtujsduRJ6S0aZjb2vscyq+u+znq2n1nNUFXh7vl/SoM1dre ODnLZ7YX06Znk12Q5a5IJ9aoC/mLBiuQZKWwErqPxS4pHc3mj4MY4E0f31zbLeU7V124 PMs3uCUXmY00B/SqfJR7vy2q3zQZZgdBjtwjE0rtUeoJ+fShDmdee8/cWBA2NGf+wxhx tXt9Q663PF772voqaE7FE9N0hfbgpXikuusxdocU5t+xzg1OqPRBtiMKx1s/mfrWU3K4 MWqVKjcv4HT793yVpRPQ/coQ2bJqcLSPgjbj3zQCbHEC9aT1LHhbbtQcEY4Kmo8YSvGO sESQ== X-Gm-Message-State: AOJu0YyQQzGxSDewQ9cJgpbSffe1YBIMn+ne2mCBSos4V1vvXttv9OrM sQNZTH24vBVOhQh41dh3T6kdjiU8mbWGKk7N449QuTl/S+0IvihbPLY1PVDNmHKIHOElGiP7oIR Z4gHhYNNhou5FXiBkeKfVG8CavZ7KgSo1sVA= X-Gm-Gg: ASbGnct//dTFZdQeFmmTnqEII05g/KCKtmscA/H8XqMvvr4cniQFmMBusiAZqKwTJ7L S3xWbHDc5R37czzfOlXVuKLbaT8H9+CCCyL/+juw= X-Google-Smtp-Source: AGHT+IHBgr2sdWfGAAmBrxSO89gMVF1Luv4aIFWUgo/PhhWPmlBjXbCD36mTkVvW0ewzMq6Ug+zDN1c6omfg0msddPI= X-Received: by 2002:a17:90b:1346:b0:2ee:d024:e4fc with SMTP id 98e67ed59e1d1-2f452eeda2amr82188152a91.33.1736022845150; Sat, 04 Jan 2025 12:34:05 -0800 (PST) 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 References: In-Reply-To: From: Mario Marietto Date: Sat, 4 Jan 2025 21:33:28 +0100 Message-ID: Subject: Re: bhyve/passthru for Intel dGPU (ARC A380)? To: Peter Wood Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000001dfe1062ae751d0" X-Rspamd-Queue-Id: 4YQXGk4j6Kz4Jpq X-Spamd-Bar: ---- 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:2607:f8b0::/32, country:US] --00000000000001dfe1062ae751d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Peter, Please make sure your GPU is booted in UEFI and not CSM mode. This can be changed in the host BIOS. Cheers. On Sat, Jan 4, 2025 at 9:24=E2=80=AFPM Peter Wood wrot= e: > Happy new year all. > > I've been using bhyve happily for a year or two now, multiple machines > with VT-d running happily passing SAS cards and USB cards into VMs. > > I've reached the point where I want to pass a GPU in for accelerated > encoding/decoding/etc (scrypted, tdarr, jellyfin). I picked up an Intel A= RC > A380, as it's encoders/decoders are pretty decent for my use case - I'd > also seen that there had been success with people using the iGPU's in Int= el > CPUs successfully. > > Unfortunately after attaching the GPUs PCI device to ppt, and attempting > to start a VM with it attached, I'm greated by an error that seems to foc= us > on iGPUs? > > /usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G -l com1,/dev/nmdm202B -l > bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/usr/local/var/cache= /bmd/k8s-worker-3.vars > -s 0,hostbridge -s 1,lpc -s 2,nvme,/dev/zvol/vm/k8s-worker-3 -s > 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-live-server-amd64.iso -s > 5,virtio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp=3D0.0.0.0:6007,w=3D12= 80,h=3D720,vga=3Dio > -s 7,xhci,tablet test > bhyve: Warning: Unable to reuse host address of Graphics Stolen Memory. > GPU passthrough might not work properly. > bhyve: gvt_d_setup_opregion: Invalid OpRegion signature > bhyve: gvt_d_init: Unable to setup OpRegion > Device emulation initialization error: No such file or directory > > The machine is an AMD EPYC 7343 on a ASRock ROMED8-2T, it has a dedicated > onboard GPU (attached to the BMC), which the BIOS is configured to > encourage operating systems to use as the primary display - and sure enou= gh > the loader and BSD console are presented through the BMCs ASPEED AST2500. > > Digging through the freebsd source tree, it appears that that pci_gvt-d.c > is responsible for this, if it's Intel and a Display then attempt the set > up of graphics memory. > > https://github.com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e183= 0b97594bef3/usr.sbin/bhyve/amd64/pci_gvt-d.c#L44 > > Has anyone experimented with this? Can I just patch this out, rebuild > bhyve and expect a chance of success? > > Cheers, > > P. > -- > *Peter Wood* > peter@alastria.net > > --=20 Mario. --00000000000001dfe1062ae751d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Peter,

=C2=A0

Please make sure your GPU is booted in UEFI and not = CSM mode. This can be changed in the host B= IOS.

Cheers.



On Sat, Jan 4, 2025 at 9:24=E2=80=AFPM Peter Wood <peter@alastria.net> wrote:
H= appy new year all.

I've been using bhyve h= appily for a year or two now, multiple machines with VT-d running happily p= assing SAS cards and USB cards into VMs.

I've = reached the point where I want to pass a GPU in for accelerated encoding/de= coding/etc (scrypted, tdarr, jellyfin). I picked up an Intel ARC A380, as i= t's encoders/decoders are pretty decent for my use case - I'd also = seen that there had been success with people using the iGPU's in Intel = CPUs successfully.

Unfortunately after attaching t= he GPUs PCI device to ppt, and attempting to start a VM with it attached, I= 'm greated by an error that seems to focus on iGPUs?

=
/usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G -l com1,/dev/nmdm202B = -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/usr/local/var/cach= e/bmd/k8s-worker-3.vars -s 0,hostbridge -s 1,lpc -s 2,nvme,/dev/zvol/vm/k8s= -worker-3 -s 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-live-server-amd64.iso -s 5= ,virtio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp=3D0.0.0.0:6007,w=3D1280,h=3D720,vga=3Dio -s 7= ,xhci,tablet test
bhyve: Warning: Unable to reuse host address of Graphi= cs Stolen Memory. GPU passthrough might not work properly.
bhyve: gvt_d_= setup_opregion: Invalid OpRegion signature
bhyve: gvt_d_init: Unable to = setup OpRegion
Device emulation initialization error: No such file or di= rectory

The machine is an AMD EPYC 7343 on a A= SRock ROMED8-2T, it has a dedicated onboard GPU (attached to the BMC), whic= h the BIOS is configured to encourage operating systems to use as the prima= ry display - and sure enough the loader and BSD console are presented throu= gh the BMCs ASPEED AST2500.

Digging through the freebsd source= tree, it appears that that pci_gvt-d.c is responsible for this, if it'= s Intel and a Display then attempt the set up of graphics memory.
https://github.com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e18= 30b97594bef3/usr.sbin/bhyve/amd64/pci_gvt-d.c#L44

<= div>Has anyone experimented with this? Can I just patch this out, rebuild b= hyve and expect a chance of success?

Cheers,
=

P.
--
P= eter Wood



--
Ma= rio.
--00000000000001dfe1062ae751d0-- From nobody Sun Jan 5 10:38:49 2025 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 4YQv1d69vdz5hykN for ; Sun, 05 Jan 2025 10:39:01 +0000 (UTC) (envelope-from peter@alastria.net) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 4YQv1d466pz4XQD for ; Sun, 5 Jan 2025 10:39:01 +0000 (UTC) (envelope-from peter@alastria.net) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x832.google.com with SMTP id d75a77b69052e-46b1d40abbdso12060481cf.2 for ; Sun, 05 Jan 2025 02:39:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alastria.net; s=google; t=1736073540; x=1736678340; 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=1QBCSQt6ly1HBPABdYJ+whQi3jTWGQx+SklSZaHv/7w=; b=TetT5qJeOu9f3Cw6iRFtwRn/v+hUUFH3PSdY4+5RC6QQd21gzG07GKzAr1s+bMxMHd hmniuzQGgUjToaZsHjEyh3+vJCdRH0pegBvnrj9lL2DzvnfLpifKupGI0C2lXO3fMcXp IirTU1vohP5Sqm4xutY4T12ct+FZMTgJg0PhWdJishErIJIdXoXPonnJR74LFSxQix68 31uAyO/VEw14jcaYNozJtvqjtat7RZFWbkEh82GghxozsYmEpaKleVeOEX6Sdgal31IF zzTkeiWUa/NTu5/hrjFW4e9GBJrS1G1DdV7fFMWaoTgV1O3EUIoBlI9/7Ky0Ax9/i86H uICw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736073540; x=1736678340; 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=1QBCSQt6ly1HBPABdYJ+whQi3jTWGQx+SklSZaHv/7w=; b=RfrA7JFKrNH4cBMv5o6f64bs+Iw99pGQcWKwu/DVr/l3kdG+VQ59F81VItMZ8QhhJm YUNV3BYkmqW0OAWSJZyDD8IF7nh/+8HXoHCzt78fw4jSkMmhse8VnEt9UQ1pzjHyZnQS sRN3YRQSe3Q65ijBBUAhuObP0okw8zvsM+RL7v7qSFtTqo1UNBX/Rs4+RT/LqPHmdKe6 HBg/zxrgIOzPPQoNrtakkz/RZy/POhUsIlGEWUj9UypOASSLFEFVFHZr/+IGVYqDQjPy DhwmA8QsCYTYqcYRJC56lTHtEW4L6l/ValrVMMWXm1gj0FkWOKmstxbWk8dYTx7M8URu 3Xew== X-Gm-Message-State: AOJu0YzJOPsXyD+waz5cV+U0bHlPyVijgisqeWyH0SwskF2AbNpIe0Jo dwcMPUDA2jBQSLlc4dLhAZgjpUKXvinxKXOI8wGytjHgB6AZN5RBbsCKoyX4U7IrHPwZ2+7js98 Z5VmdnP4mCq5qNrZxYvmTE8wjgg6bqcNfpsf1gA== X-Gm-Gg: ASbGncuJdcaAanmyGC0s5xiD8dEL9utnEBqdiZE2Cw5XluWQP715hCt1UopQ+AU5c8H Nd66lIvSbS+8D2gqZ1cv9VVUWYbCcgGMUdBOtbO+8hEj6CyBLRraWD9h2CCU3/izr+o5a X-Google-Smtp-Source: AGHT+IEjbh8W+iPQjWcVX3y7YePCP748QxfxbllzhnMMO8FBWoM/hxuxSk4iyUbMSSqISX9vR22MorlFZplGSmhL3Ng= X-Received: by 2002:a05:622a:cf:b0:467:b649:6a46 with SMTP id d75a77b69052e-46a4a96c043mr823656191cf.42.1736073540412; Sun, 05 Jan 2025 02:39:00 -0800 (PST) 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 References: In-Reply-To: From: Peter Wood Date: Sun, 5 Jan 2025 10:38:49 +0000 Message-ID: Subject: Re: bhyve/passthru for Intel dGPU (ARC A380)? To: Mario Marietto Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ae3784062af31e72" X-Rspamd-Queue-Id: 4YQv1d466pz4XQD X-Spamd-Bar: ---- 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:2607:f8b0::/32, country:US] --000000000000ae3784062af31e72 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Mario, Thanks for the response. Interesting, is the expectation that an dGPU ARC would work with the gvt-d code in place? Which would reenforce I'm fighting the motherboard/BIOS. The BIOS is infact in CSM, as you've suggested, but for reason - though this isn't a -virtualization problem, though I'll explain it for any future reader: My experience of the ROMED8-2T is when in pure UEFI after the FreeBSD loader starts the framebuffer console there are no further updates via the AST2500 if the Intel ARC is present, I suspect the framebuffer is being started on the Intel ARC - but I don't have a monitor capable of checking that near the server. The BIOS (3.5 and 3.8 checked) only offers configuration of the preferred graphical output if the BIOS is CSM, and even then the framebuffer only seems to stay on the AST2500 if the video option rom is set to legacy mode. For pure EFI, I haven't dug into loader yet, but what I have observed is that the ROMED8-2T does not output the EFI variable ConOut, which having a quick read would probably guide the loader where to push the framebuffer. I don't know if it's possible for me to write that var to EFI, but may be worth looking into. As an aside, with CSM (video legacy option rom) I did actually patch bhyve to remove the gvt-d check, and the linux guest did boot with the passthru - I assume with the card in legacy mode... the linux kernel was happy with it until it tried to read the option rom, which I haven't exported yet - but I'd prefer to fix this the correct way if possible. P. On Sat, 4 Jan 2025 at 20:34, Mario Marietto wrote: > Hi Peter, > > > > Please make sure your GPU is booted in UEFI and not CSM mode. This can be > changed in the host BIOS. > > Cheers. > > > > On Sat, Jan 4, 2025 at 9:24=E2=80=AFPM Peter Wood wr= ote: > >> Happy new year all. >> >> I've been using bhyve happily for a year or two now, multiple machines >> with VT-d running happily passing SAS cards and USB cards into VMs. >> >> I've reached the point where I want to pass a GPU in for accelerated >> encoding/decoding/etc (scrypted, tdarr, jellyfin). I picked up an Intel = ARC >> A380, as it's encoders/decoders are pretty decent for my use case - I'd >> also seen that there had been success with people using the iGPU's in In= tel >> CPUs successfully. >> >> Unfortunately after attaching the GPUs PCI device to ppt, and attempting >> to start a VM with it attached, I'm greated by an error that seems to fo= cus >> on iGPUs? >> >> /usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G -l com1,/dev/nmdm202B -l >> bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/usr/local/var/cach= e/bmd/k8s-worker-3.vars >> -s 0,hostbridge -s 1,lpc -s 2,nvme,/dev/zvol/vm/k8s-worker-3 -s >> 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-live-server-amd64.iso -s >> 5,virtio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp=3D0.0.0.0:6007,w=3D1= 280,h=3D720,vga=3Dio >> -s 7,xhci,tablet test >> bhyve: Warning: Unable to reuse host address of Graphics Stolen Memory. >> GPU passthrough might not work properly. >> bhyve: gvt_d_setup_opregion: Invalid OpRegion signature >> bhyve: gvt_d_init: Unable to setup OpRegion >> Device emulation initialization error: No such file or directory >> >> The machine is an AMD EPYC 7343 on a ASRock ROMED8-2T, it has a dedicate= d >> onboard GPU (attached to the BMC), which the BIOS is configured to >> encourage operating systems to use as the primary display - and sure eno= ugh >> the loader and BSD console are presented through the BMCs ASPEED AST2500= . >> >> Digging through the freebsd source tree, it appears that that pci_gvt-d.= c >> is responsible for this, if it's Intel and a Display then attempt the se= t >> up of graphics memory. >> >> https://github.com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e18= 30b97594bef3/usr.sbin/bhyve/amd64/pci_gvt-d.c#L44 >> >> Has anyone experimented with this? Can I just patch this out, rebuild >> bhyve and expect a chance of success? >> >> Cheers, >> >> P. >> -- >> *Peter Wood* >> peter@alastria.net >> >> > > -- > Mario. > --=20 *Peter Wood* peter@alastria.net --000000000000ae3784062af31e72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Mario,

Thanks for the = response. Interesting, is the expectation that an dGPU ARC would work with = the gvt-d code in place? Which would reenforce I'm fighting the motherb= oard/BIOS.

The BIOS is infact in CSM, as you&#= 39;ve suggested, but for reason - though this isn't a -virtualization p= roblem, though I'll explain it for any future reader:
My experience of the ROMED8-2T is when in pure UEFI after the F= reeBSD loader starts the framebuffer console there are no further updates v= ia the AST2500 if the Intel ARC is present, I suspect the framebuffer is be= ing started on the Intel ARC - but I don't have a monitor capable of ch= ecking that near the server.

The BIOS (3.5 and 3.8 checke= d) only offers configuration of the preferred graphical output if the BIOS = is CSM, and even then the framebuffer only seems to stay on the AST2500 if = the video option rom is set to legacy mode.

For pu= re EFI, I haven't dug into loader yet, but what I have observed is that= the ROMED8-2T does not output the EFI variable ConOut, which having a quic= k read would probably guide the loader where to push the framebuffer. I don= 't know if it's possible for me to write that var to EFI, but may b= e worth looking into.

As an aside, with CSM (video= legacy option rom) I did actually patch bhyve to remove the gvt-d check, a= nd the linux guest did boot with the passthru - I assume with the card in l= egacy mode... the linux kernel was happy with it until it tried to read the= option rom, which I haven't exported yet - but I'd prefer to fix t= his the correct way if possible.

P.
=

On Sat, 4 Jan 2025 at 20:34, Mario Marietto= <marietto2008@gmail.com&g= t; wrote:

Hi Peter,

=C2=A0

Please make sure your GPU is booted in UEFI and not = CSM mode. This can be changed in the host BIOS.

Cheers.



On Sa= t, Jan 4, 2025 at 9:24=E2=80=AFPM Peter Wood <peter@alastria.net> wrote:
Happy= new year all.

I've been using bhyve happi= ly for a year or two now, multiple machines with VT-d running happily passi= ng SAS cards and USB cards into VMs.

I've reac= hed the point where I want to pass a GPU in for accelerated encoding/decodi= ng/etc (scrypted, tdarr, jellyfin). I picked up an Intel ARC A380, as it= 9;s encoders/decoders are pretty decent for my use case - I'd also seen= that there had been success with people using the iGPU's in Intel CPUs= successfully.

Unfortunately after attaching the G= PUs PCI device to ppt, and attempting to start a VM with it attached, I'= ;m greated by an error that seems to focus on iGPUs?

/usr/sbin/bhyve -A -H -w -u -S -c 2 -m 8G -l com1,/dev/nmdm202B -l b= ootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd,/usr/local/var/cache/bm= d/k8s-worker-3.vars -s 0,hostbridge -s 1,lpc -s 2,nvme,/dev/zvol/vm/k8s-wor= ker-3 -s 3,ahci-cd,/mnt/vm/isos/ubuntu-24.04-live-server-amd64.iso -s 5,vir= tio-net,tap9 -s 4,passthru,4/0/0 -s 6,fbuf,tcp=3D0.0.0.0:6007,w=3D1280,h=3D720,vga=3Dio -s 7,xhc= i,tablet test
bhyve: Warning: Unable to reuse host address of Graphics S= tolen Memory. GPU passthrough might not work properly.
bhyve: gvt_d_setu= p_opregion: Invalid OpRegion signature
bhyve: gvt_d_init: Unable to setu= p OpRegion
Device emulation initialization error: No such file or direct= ory

The machine is an AMD EPYC 7343 on a ASRoc= k ROMED8-2T, it has a dedicated onboard GPU (attached to the BMC), which th= e BIOS is configured to encourage operating systems to use as the primary d= isplay - and sure enough the loader and BSD console are presented through t= he BMCs ASPEED AST2500.

Digging through the freebsd source= tree, it appears that that pci_gvt-d.c is responsible for this, if it'= s Intel and a Display then attempt the set up of graphics memory.
https://github.com/freebsd/freebsd-src/blob/b662ca1d6cd82044c6cb79075e18= 30b97594bef3/usr.sbin/bhyve/amd64/pci_gvt-d.c#L44

<= div>Has anyone experimented with this? Can I just patch this out, rebuild b= hyve and expect a chance of success?

Cheers,
=

P.
--
P= eter Wood



--
Ma= rio.


--
--000000000000ae3784062af31e72--