Date: Thu, 11 Mar 2021 00:12:47 +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-x5sgObFXcV@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 #15 from Dexuan Cui <decui@microsoft.com> --- (In reply to Vladimir Kondratyev from comment #14) Hi Vladimir, sorry I actually just did some research and didn't write any c= ode. :-) The Hyper-V/VMBus part of the driver should be straightforward, I'm just not familiar with the HID part. The core logic of the Hyper-V mouse driver in L= inux VM is Line 296~306 (https://github.com/torvalds/linux/blob/master/drivers/hid/hid-hyperv.c#L29= 6): IIRC, for every mouse event, the Hyper-V host sends a 7-byte "input_report", which in Linux VM is handled by the Linux HID API hid_input_report() and nothing else is done. In FreeBSD, I'm not sure what the equivalent API is? = -- I read the page you shared and I guess it may be: METHOD int get_report { device_t dev; void *data; hid_size_t maxlen; hid_size_t *actlen; uint8_t type; uint8_t id; }; I suppose the format of the 7 bytes from the Hyper-V host should comply with the HID spec for mouse (I guess there is a spec for this?), and if so, Free= BSD can use the 7 bytes directly, just like Linux VM does. I'm currently in the middle of something else, so sorry I can't work on this right now. I guess Wei (whu) on our team can help on this, and also review = the 2 kbd patches. --=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-x5sgObFXcV>