Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Mar 2021 09:45:48 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 221074] Hyper V Gen 2 install has no mouse
Message-ID:  <bug-221074-27103-CSQgY2cy75@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-221074-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221074-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221074

--- Comment #13 from Dexuan Cui <decui@microsoft.com> ---
(In reply to Dwerva from comment #12)
Hi Dwerva, maybe you can use a Generation-1 FreeBSD VM as a workaround? Mou=
se
works with Gen1 FreeBSD VMs, because Hyper-V emulates a legacy mouse.

For Gen-2 VMs, Hyper-V doesn't emulate the legacy mouse, so we have to deve=
lop
a para-virtualized front-end mouse driver in the VM to use mouse. For Linux=
 VM,
the driver is
https://github.com/torvalds/linux/blob/master/drivers/hid/hid-hyperv.c. I o=
nce
tried to port the driver to FreeBSD, but unluckily it turned out I couldn't
understand how the mouse APIs work in FreeBSD (I studied the mouse APIs for=
 a
few days but still didn't quite understand which sets of API should be used=
 and
how the Hyper-V mouse events should be converted to the mouse events that c=
an
be understood by FreeBSD) so I gave up... :-( I hope somebody with more
knowledge on FreeBSD mouse APIs can help.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221074-27103-CSQgY2cy75>