From nobody Wed Oct 8 07:30:18 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 4chPnD1bhwz6BTlh for ; Wed, 08 Oct 2025 07:30:56 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 4chPnC5lYsz3PFj for ; Wed, 08 Oct 2025 07:30:55 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=NXcFqPN4; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-33274fcf5c1so7639617a91.1 for ; Wed, 08 Oct 2025 00:30:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759908655; x=1760513455; 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=I0naJbPAgDDqOyoDuxXct+zCxT9Kc1EWnWJawtc/JyQ=; b=NXcFqPN4/9qEl7B+AlVp+u0OlHwKXPss/hLOanb+Zhf06rZM/WoViSVcQf92Dwlly+ Svx2wdPioZx3CENZX8DKuDeeyaJ1O41TSyOru1YdnHm5wT4MAdvbx6xuJMCZqvasz5op th8V4UjoGOx4hU5SoQHocZptD+49cioK2KZzatBiaEG7f8FKg9C4WLIzZKDtaKtxT8nH SZcL9nEEDYM6Zi3dCKYjsVKrrj0M5tA9urLrk5fvN0f3NoY9m2/7Fc9uFSze8G+un6zE 2xM1x4UrzsVGg170ytUV2gjuRnCT4GQ1J2niwQK8KWtbI6kvJTaANOXLwRFXAT0aDUH2 gWlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759908655; x=1760513455; 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=I0naJbPAgDDqOyoDuxXct+zCxT9Kc1EWnWJawtc/JyQ=; b=K7Z8gN/P1dr6frgNCbAcnRkBzGGhczMBZKoD0i5q7wMCk0Bu4hF/Wv3ZQOvivFKyxk FFFdZuEJ4YgnJTlh7n9oqgnt8Bb5LnWA6uVgA39QuqTlPkqE4IkweCp6+NZFfHyxVSRy AugxciowrzDw7BfeidPEZjw/Y1dS76sCKQojZMj9oT8r5Pzv32mXle7gCMQA7wpWV6wh /LaZBMN7aAgGr6RrXn77jBHgtdKWVU6kZUX1+OUOJ6LXsVzzvB9DIEw34fLn9ZbePCm5 otLSKD0hKdO7aYZlTL1WnIVexFoMcUqSHZ20+cUkkfqsMnLMmC1oMvtvwu7geuVLcrn3 h2oQ== X-Gm-Message-State: AOJu0YxSYm1rU2WE1I4syhvpueKLoiCaTXaSat74sE5EwyeuteHLGOze oDlEXnpdMtqnYNA3vzzC8TvnStvUdU5RWQWlmkyuN7wk4NVk9MxLeehzpno6GYOUFem2t1ioaO5 cs9+DWRIghSgYMbTSwzZ7W5Wvlcr+L+oTKYbg X-Gm-Gg: ASbGncv2gqGRsTdGt0wDbnenl5BdzRLwUvW0AgTNTt4l6mtStjPBwtqndAcrt2Qjgda IQomW5ZtO4R+lE41S5+iLqZ66GF4NDdbyWZiNpO0FKGrZRR4nHhE9D3o6GyXWUTz2bu2sn2yfSQ r5oiVg0KVMWNjWW7b1u1jgZ2FmL3z++54l88Na75BQkBjLyokydejv9ufa21wZaFrXJzrrKJbcF 5JXs9XYbbkQTKUm7/rHxk+yABXvWesshI9cDGZg4gBGF3Duy1ptumKGRlqdNGThXwq08Vu6FknI SEfiAPO+DHjme7K+fUV+OxSNkRmGsv/ItRpIUHJiyHd7roAblpk4yodNLNqZGu5/adttzXOO0AC bHbmFcMVDolt6UBbqiQa3+2N+gWUZ0ctMxnpN19wrXZiIRvC9F5Q9ct9EjpFAVkffOJ4FgTuMEr cT8tm01gUIUhXsN+d6ybhn06RmkICEOGs7l6urllr04g/F+UzqMjemvUTl8ruCxVc59bDsKEhnn r5+dO/kCdAXFs9t6+pfmLRml/PQahXFupLQ3PeW5CCMT+fh0lYoSLTTWl10OnJjFGH/zyw= X-Google-Smtp-Source: AGHT+IFYDh39s5OOp9BNR/Na8MsBiiVSo/FUx2MeNr/+G3tpbgJelCMPHdnQa7O7IS0mZopZ7/lAaVpuuvRNGlSrY9c= X-Received: by 2002:a17:90b:1d87:b0:32e:a54a:be53 with SMTP id 98e67ed59e1d1-33b51119064mr3188284a91.16.1759908654659; Wed, 08 Oct 2025 00:30:54 -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 References: In-Reply-To: From: Mario Marietto Date: Wed, 8 Oct 2025 09:30:18 +0200 X-Gm-Features: AS18NWBy9YspHqvaCPyLpQj_XNgaplB1WL_8p5JgGkhhJhwIk5Q3aNrvqckuz3k Message-ID: Subject: Re: virtio-input mouse To: Vasily Postnicov Cc: freebsd-virtualization@freebsd.org Content-Type: multipart/alternative; boundary="00000000000032bfce0640a0aab0" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.99 / 15.00]; HTTP_TO_IP(1.00)[]; URI_COUNT_ODD(1.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_RCPT(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1033:from]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4chPnC5lYsz3PFj --00000000000032bfce0640a0aab0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 8 october 2024 bhyve only used the virtio 0.9 protocol. Unfortunately, Linux required virtio 1.0. Not sure if today this has changed. On Wed, Oct 8, 2025 at 9:09=E2=80=AFAM Vasily Postnicov wrote: > Is it possible to have mouse emulation using virtio-input in bhyve? > > My FreeBSD version is 14.3-RELEASE-p3, UEFI bootrom from > edk2-bhyve-g202308_5 and the guest is Ubuntu Linux. > > My mouse device seems to be /dev/input/event6 (I guess. I checked this > using cat /dev/input/event6 and moving my mouse). > > I start bhyve as follows: > bhyve -c 2 -m 8G -w -H \ > -s 0,hostbridge -s > 3,virtio-blk,/dev/zvol/mypool/virtual/ubuntu2 \ > -s 5,virtio-net,tap0 -s 6,virtio-input,/dev/input/event6 \ > -s 29,fbuf,tcp=3D127.0.0.1:5900,w=3D1920,h=3D1080 \ > -s 31,lpc -l com1,stdio -l bootrom,BHYVE_UEFI.fd ubuntu > > and use wlvncc to connect to the VNC server. This way the mouse pointer > stops moving in the host system and there is no mouse in the guest. > > When I use -s 30,xhci,tablet my mouse works, but I wonder if I can use > virtio-input instead. > --=20 Mario. --00000000000032bfce0640a0aab0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 8 october 2024=C2=A0bhyve only used the virtio 0.9= protocol. Unfortunately, Linux=C2=A0required virtio 1.0. Not sure if today= this has changed.


On Wed, Oct 8, 2025 at 9:09=E2=80=AFAM Vasily= Postnicov <= shamaz.mazum@gmail.com> wrote:
Is it possible to have mouse emulati= on using virtio-input in bhyve?

My FreeBSD version is 14= .3-RELEASE-p3, UEFI bootrom from edk2-bhyve-g202308_5 and the guest is Ubun= tu Linux.

My mouse device seems to be /dev/input/e= vent6 (I guess. I checked this using cat /dev/input/event6 and moving my mo= use).

I start bhyve as follows:
bhyve -c 2= -m 8G -w -H \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-s 0,host= bridge -s 3,virtio-blk,/dev/zvol/mypool/virtual/ubuntu2 \
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-s 5,virtio-net,tap0 -s 6,virtio-input,/d= ev/input/event6 \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-s 29,= fbuf,tcp=3D127.0.0.1:59= 00,w=3D1920,h=3D1080 \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0-s 31,lpc -l com1,stdio -l bootrom,BHYVE_UEFI.fd ubuntu
<= div>
and use wlvncc=C2=A0to connect to the VNC server. This w= ay the mouse pointer stops moving in the host system and there is no mouse = in the guest.

When I use -s 30,xhci,tablet my mous= e works, but I wonder if I can use virtio-input instead.


--
Ma= rio.
--00000000000032bfce0640a0aab0--