Skip to content

Hyper-V: Support PAGE_SIZE larger than 4K

Boqun Feng linux-arm-kernel linux-hyperv linux-input linux-scsi lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 5 repliesIn review
  2. v311 patches 15 repliesSuperseded
  3. v2 RFC11 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC11 patches12 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11Drivers: hv: vmbus: Always use HV_HYP_PAGE_SIZE for gpadldrivers/hv/channel.c+5 -80 replies
2/11Drivers: hv: vmbus: Move __vmbus_open()drivers/hv/channel.c+155 -1540 replies
3/11Drivers: hv: vmbus: Introduce types of GPADLdrivers/hv/channel.c include/linux/hyperv.h+187 -210 replies
4/11Drivers: hv: Use HV_HYP_PAGE in hv_synic_enable_regs()drivers/hv/hv.c+2 -20 replies
5/11Drivers: hv: vmbus: Move virt_to_hvpfn() to hyperv headerdrivers/hv/channel.c include/linux/hyperv.h+15 -130 replies
6/11hv: hyperv.h: Introduce some hvpfn helper functionsinclude/linux/hyperv.h+5 -00 replies
7/11hv_netvsc: Use HV_HYP_PAGE_SIZE for Hyper-V communicationdrivers/net/hyperv/netvsc.c drivers/net/hyperv/netvsc_drv.c drivers/net/hyperv/rndis_filter.c+30 -310 replies
8/11Input: hyperv-keyboard: Use VMBUS_RING_SIZE() for ringbuffer sizesdrivers/input/serio/hyperv-keyboard.c+2 -22 replies
9/11HID: hyperv: Use VMBUS_RING_SIZE() for ringbuffer sizesdrivers/hid/hid-hyperv.c+2 -21 reply
10/11Driver: hv: util: Use VMBUS_RING_SIZE() for ringbuffer sizesdrivers/hv/hv_util.c+7 -41 reply
11/11scsi: storvsc: Support PAGE_SIZE larger than 4Kdrivers/scsi/storvsc_drv.c+49 -70 replies

Reviews trailers per patch

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

PatchWei LiuMichael KelleyDmitry Torokhov
1/11R-b
2/11R-b R-b
3/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b A-b
9/11R-b
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/11] Hyper-V: Support PAGE_SIZE larger than 4K

This patchset add the necessary changes to support guests whose page size is larger than 4K. And the main architecture which we develop this for is ARM64 (also it's the architecture that I use to test this feature).

Previous version:
v1: https://lore.kernel.org/lkml/[email protected]/
v2: https://lore.kernel.org/lkml/[email protected]
v3: https://lore.kernel.org/lkml/[email protected]/

Changes since v3:

* Fix a bug that ringbuffer sizes are not page-aligned when
PAGE_SIZE = 16k. Drop the Acked-by and Reviewed-by tags for those patches accordingly.

* Code improvement as per suggestion from Michael Kelley.

I've done some tests with PAGE_SIZE=64k and PAGE_SIZE=16k configurations on ARM64 guests (with Michael's patchset[1] for ARM64 Hyper-V guest support), everything worked fine ;-)

Looking forwards to comments and suggestions!

Regards,
Boqun

[1]: https://lore.kernel.org/lkml/[email protected]/

Boqun Feng (11):
Drivers: hv: vmbus: Always use HV_HYP_PAGE_SIZE for gpadl
Drivers: hv: vmbus: Move __vmbus_open()
Drivers: hv: vmbus: Introduce types of GPADL
Drivers: hv: Use HV_HYP_PAGE in hv_synic_enable_regs()
Drivers: hv: vmbus: Move virt_to_hvpfn() to hyperv header
hv: hyperv.h: Introduce some hvpfn helper functions
hv_netvsc: Use HV_HYP_PAGE_SIZE for Hyper-V communication
Input: hyperv-keyboard: Use VMBUS_RING_SIZE() for ringbuffer sizes
HID: hyperv: Use VMBUS_RING_SIZE() for ringbuffer sizes
Driver: hv: util: Use VMBUS_RING_SIZE() for ringbuffer sizes
scsi: storvsc: Support PAGE_SIZE larger than 4K

 drivers/hid/hid-hyperv.c              |   4 +-
 drivers/hv/channel.c                  | 461 ++++++++++++++++----------
 drivers/hv/hv.c                       |   4 +-
 drivers/hv/hv_util.c                  |  11 +-
 drivers/input/serio/hyperv-keyboard.c |   4 +-
 drivers/net/hyperv/netvsc.c           |   2 +-
 drivers/net/hyperv/netvsc_drv.c       |  46 +--
 drivers/net/hyperv/rndis_filter.c     |  13 +-
 drivers/scsi/storvsc_drv.c            |  56 +++-
 include/linux/hyperv.h                |  68 +++-
 10 files changed, 442 insertions(+), 227 deletions(-)
Signature · 1 line
2.28.0