Re: [RFC v2 09/11] HID: hyperv: Make ringbuffer at least take two pages
From: Jiri Kosina
Date: Wed Sep 02 2020 - 04:18:43 EST
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 <boqun.feng@xxxxxxxxx>
Acked-by: Jiri Kosina <jkosina@xxxxxxx>
--
Jiri Kosina
SUSE Labs