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

RE: [PATCH v3 10/11] Driver: hv: util: Make ringbuffer at least take two pages

From: Michael Kelley <hidden>
Date: 2020-09-12 19:40:23
Also in: linux-hyperv, linux-input, linux-scsi, lkml, netdev

From: Boqun Feng <redacted> Sent: Thursday, September 10, 2020 7:35 AM
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/hv/hv_util.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
Reviewed-by: Michael Kelley <redacted>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help