[Bug 221074] Hyper V Gen 2 install has no mouse

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 8 09:45:49 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221074

--- Comment #13 from Dexuan Cui <decui at microsoft.com> ---
(In reply to Dwerva from comment #12)
Hi Dwerva, maybe you can use a Generation-1 FreeBSD VM as a workaround? Mouse
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 develop
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 once
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 can
be understood by FreeBSD) so I gave up... :-( I hope somebody with more
knowledge on FreeBSD mouse APIs can help.

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


More information about the freebsd-virtualization mailing list