Thread (27 messages) 27 messages, 4 authors, 2020-09-14

Re: [PATCH v3 08/11] Input: hyperv-keyboard: Make ringbuffer at least take two pages

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2020-09-13 17:00:09
Also in: linux-arm-kernel, linux-hyperv, linux-input, linux-scsi, lkml

On Sat, Sep 12, 2020 at 07:37:23PM +0000, Michael Kelley wrote:
From: Boqun Feng <redacted> Sent: Thursday, September 10, 2020 7:35 AM
quoted
When PAGE_SIZE > HV_HYP_PAGE_SIZE, we need the ringbuffer size to be at
least 2 * PAGE_SIZE: one page for the header and at least one page of
the data part (because of the alignment requirement for double mapping).

So make sure the ringbuffer sizes to be at least 2 * PAGE_SIZE when
using vmbus_open() to establish the vmbus connection.

Signed-off-by: Boqun Feng <redacted>
---
 drivers/input/serio/hyperv-keyboard.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Michael Kelley <redacted>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Please feel free to merge with the rest of the patches through whatever
tree they will go in.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help