Skip to content

Commit 88f28e9

Browse files
fishavoredtor
authored andcommitted
Input: hyperv-keyboard - remove dependencies on PAGE_SIZE for ring buffer
Define the ring buffer size as a constant expression because it should not depend on the guest page size. Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent b8374b8 commit 88f28e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/input/serio/hyperv-keyboard.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ struct synth_kbd_keystroke {
7575

7676
#define HK_MAXIMUM_MESSAGE_SIZE 256
7777

78-
#define KBD_VSC_SEND_RING_BUFFER_SIZE (10 * PAGE_SIZE)
79-
#define KBD_VSC_RECV_RING_BUFFER_SIZE (10 * PAGE_SIZE)
78+
#define KBD_VSC_SEND_RING_BUFFER_SIZE (40 * 1024)
79+
#define KBD_VSC_RECV_RING_BUFFER_SIZE (40 * 1024)
8080

8181
#define XTKBD_EMUL0 0xe0
8282
#define XTKBD_EMUL1 0xe1

0 commit comments

Comments
 (0)