Skip to content

Fix uio_hv_generic on systems with >4k page sizes

[email protected] linux-hyperv lkml stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesIn review
  2. v24 patches 5 repliesSuperseded
  3. v12 patches 8 repliesSuperseded

Changes in v3 from the cover letter

Rearranged the patch on removing hv_alloc/free* helpers Added "Drivers: hv: Use kzalloc for panic page allocation" Fixed typos.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundarydrivers/hv/connection.c+17 -61 reply
2/5uio_hv_generic: Use correct size for interrupt and monitor pagesdrivers/uio/uio_hv_generic.c+2 -21 reply
3/5uio_hv_generic: Align ring size to system pagedrivers/uio/uio_hv_generic.c+3 -01 reply
4/5Drivers: hv: Use kzalloc for panic page allocationdrivers/hv/hv_common.c+3 -31 reply
5/5Drivers: hv: Remove hv_alloc/free_* helpersdrivers/hv/hv_common.c include/asm-generic/mshyperv.h+0 -431 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMichael Kelley
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Patch v3 0/5] Fix uio_hv_generic on systems with >4k page sizes

From: Long Li <[email protected]>

UIO framework requires the device memory aligned to page boundary. Hyper-V may allocate some memory that is Hyper-V page aligned (4k) but not system page aligned.

Fix this by having Hyper-V always allocate those pages on system page boundary and expose them to user-mode.

Change in v2:
Added two more patches to the series:
"uio_hv_generic: Adjust ring size according to system page alignment" "Drivers: hv: Remove hv_free/alloc_* helpers"

Added more details in the commit message of "uio_hv_generic: Use correct size for interrupt and monitor pages"

Change in v3:
Rearranged the patch on removing hv_alloc/free* helpers Added "Drivers: hv: Use kzalloc for panic page allocation" Fixed typos.

Long Li (5):
Drivers: hv: Allocate interrupt and monitor pages aligned to system
page boundary
uio_hv_generic: Use correct size for interrupt and monitor pages
uio_hv_generic: Align ring size to system page
Drivers: hv: Use kzalloc for panic page allocation
Drivers: hv: Remove hv_alloc/free_* helpers

 drivers/hv/connection.c        | 23 ++++++++++++-----
 drivers/hv/hv_common.c         | 45 +++-------------------------------
 drivers/uio/uio_hv_generic.c   |  7 ++++--
 include/asm-generic/mshyperv.h |  4 ---
 4 files changed, 25 insertions(+), 54 deletions(-)
Signature · 1 line
2.34.1