Skip to content

hyperv: Move some features to common code

Nuno Das Neves linux-arch linux-arm-kernel linux-hyperv lkml 3 versions – Applied

Status from this message: Applied to hyperv-next. Thanks.

Get series with b4
b4 am 1738955002-20821-1-git-send-email-nunodasneves@linux.microsoft.com

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* Just use percpu input page for the hypercall [Michael Kelley]
* Move the calls to hv_get_partition_id() back to arch code [Michael Kelley]
* Rename struct hv_get_partition_id to hv_output_get_partition_id [Michael Kelley]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2hyperv: Move hv_current_partition_id to arch-generic codearch/arm64/hyperv/mshyperv.c arch/x86/hyperv/hv_init.c arch/x86/include/asm/mshyperv.h +3 more+29 -271 reply
2/2hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hvarch/x86/hyperv/Makefile arch/x86/include/asm/mshyperv.h drivers/hv/Makefile +2 more+6 -101 reply

Reviews trailers per patch

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

PatchMichael Kelley
1/2R-b
2/2R-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/2] hyperv: Move some features to common code

There are several bits of Hyper-V-related code that today live in arch/x86 but are not really specific to x86_64 and will work on arm64 too.

Some of these will be needed in the upcoming mshv driver code (for Linux as root partition on Hyper-V). So this is a good time to move them to drivers/hv.

---
Changes in v3:
* Just use percpu input page for the hypercall [Michael Kelley]
* Move the calls to hv_get_partition_id() back to arch code [Michael Kelley]
* Rename struct hv_get_partition_id to hv_output_get_partition_id [Michael Kelley]

Changes in v2:
* Fix dependence on percpu output page by using a stack variable for the hypercall output [Michael Kelley]
* Remove unnecessary WARN()s [Michael Kelley]
* Define hv_current_partition_id in hv_common.c [Michael Kelley]
* Move entire hv_proc.c to drivers/hv [Michael Kelley]

Nuno Das Neves (2):
hyperv: Move hv_current_partition_id to arch-generic code
hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hv

 arch/arm64/hyperv/mshyperv.c              |  3 +++
 arch/x86/hyperv/Makefile                  |  2 +-
 arch/x86/hyperv/hv_init.c                 | 25 +----------------------
 arch/x86/include/asm/mshyperv.h           |  6 ------
 drivers/hv/Makefile                       |  2 +-
 drivers/hv/hv_common.c                    | 22 ++++++++++++++++++++
 {arch/x86/hyperv => drivers/hv}/hv_proc.c |  4 ----
 include/asm-generic/mshyperv.h            |  6 ++++++
 include/hyperv/hvgdk_mini.h               |  2 +-
 9 files changed, 35 insertions(+), 37 deletions(-)
 rename {arch/x86/hyperv => drivers/hv}/hv_proc.c (98%)
Signature · 1 line
2.34.1