Page MenuHomeFreeBSD

implement initial Hyperv keyboard synthetic driver
ClosedPublic

Authored by honzhan_microsoft.com on Mar 30 2017, 5:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 8:25 PM
Unknown Object (File)
Sat, Jun 29, 9:05 AM
Unknown Object (File)
Fri, Jun 28, 5:22 PM
Unknown Object (File)
Thu, Jun 27, 9:02 AM
Unknown Object (File)
Jun 8 2024, 9:33 PM
Unknown Object (File)
Jun 2 2024, 5:00 PM
Unknown Object (File)
May 22 2024, 1:11 PM
Unknown Object (File)
May 22 2024, 3:05 AM
Subscribers
None

Details

Summary

This patch implements synthetic keyboard driver for FreeBSD on Hyper-V Gen2. In Gen2 mode, the legacy keyboard does not work.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks pretty good to me. Some minor code style suggestion.

sys/dev/hyperv/input/hv_kbdc.c
107–118 ↗(On Diff #26810)

May be we should use more consistent style of comment?

/*
 *
 */

or your preference:

/**
 *
 */
307 ↗(On Diff #26810)

I'd prefer for (;;)

331–342 ↗(On Diff #26810)

We don't indent switch-case:

switch () {
case XXX:
    aaaa;
case YYY:
    bbbb;
default:
    cccc;
}
67–69 ↗(On Diff #26807)

Better use C style comment, or '#if 0 ... #endif'

This revision is now accepted and ready to land.Mar 30 2017, 7:54 AM
This revision now requires review to proceed.Mar 30 2017, 8:08 AM
This revision was automatically updated to reflect the committed changes.