From nobody Mon Oct 21 08:24:27 2024 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 4XX7dS1S53z5YgVS for ; Mon, 21 Oct 2024 08:24:28 +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 4XX7dR64Ttz4ZPx for ; Mon, 21 Oct 2024 08:24:27 +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=1729499067; 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; bh=xAdv0jlsLtOZAO2J9vNL0CxqLpBVldIuNww4+fQdFwk=; b=np1qpYtxaDNFahumjq1Dl1AoKYsgbm5VsfkZi6GBoQTuVFG9M4pSlmvnabzuU6yEcDrc19 2g4Dq2Jssv3p/ABq1bs4bMpv6Ee3fWndZtT3gr3SmkXiBAazRGdXMxnrqo7HFCPc3P43pT NM/CmqLVvhHAt60feSx6IBwyLaiM4rlzegRPc98K64sMkqf8gomFA2Wp3Axsrl6qQBBPKL 6VQOMyAhJKusX7jc77VImFYI2aM9n21sJW5+hw7hwI77XHvhM+UA+qWOfc6bU80IJEkjiC 02YzgnZFD/qoLe2p4XEdpuPDOBNFVHvNooxj/+gZhYs99ZFTB29Gp169uKgoMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729499067; a=rsa-sha256; cv=none; b=SjTVWxGO8PegSCNHlCkAXG9523i2rGOfLbhWErQoegJNTg85v4yIYBFWRrs5/j0Gf43jAi ZMfqHtJwxJIzUz1/2P3dmbQv9eEZcW69M788Qx9UyY834dz5ImTd54t7+cxZ16jVVXL7jg AGQnPATPu1pJIixfAhqnKTfM4Aiocr7tANcIjA/c/vECnOkfa7VGp41t9uIyg4ey6101uo d5lwlfYNqpTBTMPfQgt90qTMzlLZu0wnRJfePDxoz3rebu/3IRaW/x81teJuPE9muLgEAl unmD2EeBEPjMNWbn8Q6hXbuNsftq5aV2bHftpTIFx7KrthWvjPzqj+Z+UT4v4A== 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 4XX7dR5DC0zMr5 for ; Mon, 21 Oct 2024 08:24:27 +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 49L8ORTA052720 for ; Mon, 21 Oct 2024 08:24:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49L8ORTO052718 for virtualization@FreeBSD.org; Mon, 21 Oct 2024 08:24:27 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 282240] A patch or something to allow bhyve to use virtio 1.0... Date: Mon, 21 Oct 2024 08:24:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=3D282240 Bug ID: 282240 Summary: A patch or something to allow bhyve to use virtio 1.0... Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: marietto2008@gmail.com Hello. I'm trying to use the virtio-input parameter in bhyve to share one of my mo= uses 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&= format=3Dhtml): Virtio input device backends: /dev/input/eventX Send input events of /dev/input/eventX to guest by VirtIO Input Interface. Ok,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-butt= on -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 m= ove at all. The reason is that bhyve only uses the virtio 0.9 protocol yet. Unfortunately, Linux requires virtio 1.0. Can someone create a patch to all= ow bhyve to use virtio 1.0 ? thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=