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--