Skip to content

Additional refactoring of Hyper-V arch specific code

Michael Kelley linux-arch linux-hyperv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 5 repliesApplied

Changes in v2 from the cover letter

* Fixed problem when building with CONFIG_HYPERV=n (reported by kernel test robot <[email protected]>)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Drivers: hv: Make portions of Hyper-V init code be arch neutralarch/x86/hyperv/hv_init.c arch/x86/include/asm/mshyperv.h arch/x86/kernel/cpu/mshyperv.c +2 more+158 -880 replies
2/3Drivers: hv: Add arch independent default functions for some Hyper-V handlersarch/x86/hyperv/hv_init.c arch/x86/kernel/cpu/mshyperv.c drivers/hv/hv_common.c+49 -80 replies
3/3Drivers: hv: Move Hyper-V misc functionality to arch-neutral codearch/x86/hyperv/hv_init.c arch/x86/kernel/cpu/mshyperv.c drivers/hv/hv_common.c+19 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Additional refactoring of Hyper-V arch specific code

This patch set moves additional Hyper-V code under arch/x86 into arch-neutral hv_common.c where it can be shared by x86 and and ARM64 implementations. The move reduces the overall lines of code across both architectures, and removes code under arch/ that isn't really architecture-specific.

The code is moved into hv_common.c because it must be built-in to the kernel image, and not be part of a module.

No functional changes are intended.

---
Changes in v2:
* Fixed problem when building with CONFIG_HYPERV=n (reported by kernel test robot <[email protected]>)

Michael Kelley (3):
Drivers: hv: Make portions of Hyper-V init code be arch neutral
Drivers: hv: Add arch independent default functions for some Hyper-V
handlers
Drivers: hv: Move Hyper-V misc functionality to arch-neutral code

 arch/x86/hyperv/hv_init.c       | 101 +++-----------------
 arch/x86/include/asm/mshyperv.h |   4 -
 arch/x86/kernel/cpu/mshyperv.c  |  20 ----
 drivers/hv/hv_common.c          | 205 ++++++++++++++++++++++++++++++++++++++++
 include/asm-generic/mshyperv.h  |  10 ++
 5 files changed, 226 insertions(+), 114 deletions(-)
Signature · 1 line
1.8.3.1