Thread (21 messages) 21 messages, 3 authors, 2020-09-07

Re: [RFC v2 09/11] HID: hyperv: Make ringbuffer at least take two pages

From: Jiri Kosina <jikos@kernel.org>
Date: 2020-09-02 08:18:44
Also in: linux-input, linux-scsi, lkml, netdev

On Wed, 2 Sep 2020, Boqun Feng wrote:
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>
Acked-by: Jiri Kosina <redacted>

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