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
F132611296: D10196.id26814.diff
Sat, Oct 18, 10:11 AM
F132586312: D10196.id26814.diff
Sat, Oct 18, 4:55 AM
Unknown Object (File)
Fri, Oct 17, 6:59 AM
Unknown Object (File)
Tue, Oct 14, 5:40 AM
Unknown Object (File)
Fri, Sep 26, 1:24 AM
Unknown Object (File)
Thu, Sep 25, 7:23 PM
Unknown Object (File)
Sep 16 2025, 10:40 PM
Unknown Object (File)
Sep 15 2025, 10:18 PM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8383
Build 8659: arc lint + arc unit

Event Timeline

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

sys/dev/hyperv/input/hv_kbdc.c
67–69

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

108–119

May be we should use more consistent style of comment?

/*
 *
 */

or your preference:

/**
 *
 */
308

I'd prefer for (;;)

332–343

We don't indent switch-case:

switch () {
case XXX:
    aaaa;
case YYY:
    bbbb;
default:
    cccc;
}
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.