linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Additional refactoring of Hyper-V arch specific code
@ 2021-07-14 18:34 Michael Kelley
  2021-07-14 18:34 ` [PATCH v2 1/3] Drivers: hv: Make portions of Hyper-V init code be arch neutral Michael Kelley
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Michael Kelley @ 2021-07-14 18:34 UTC (permalink / raw)
  To: sthemmin, kys, wei.liu, decui, tglx, mingo, bp, x86, hpa, arnd,
	linux-kernel, linux-hyperv
  Cc: mikelley, linux-arch

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 <lkp@intel.com>)


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(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-15 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 18:34 [PATCH v2 0/3] Additional refactoring of Hyper-V arch specific code Michael Kelley
2021-07-14 18:34 ` [PATCH v2 1/3] Drivers: hv: Make portions of Hyper-V init code be arch neutral Michael Kelley
2021-07-14 18:34 ` [PATCH v2 2/3] Drivers: hv: Add arch independent default functions for some Hyper-V handlers Michael Kelley
2021-07-14 18:34 ` [PATCH v2 3/3] Drivers: hv: Move Hyper-V misc functionality to arch-neutral code Michael Kelley
2021-07-15 13:03 ` [PATCH v2 0/3] Additional refactoring of Hyper-V arch specific code Wei Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).