public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] hyperv: Move some features to common code
@ 2025-01-23  1:47 Nuno Das Neves
  2025-01-23  1:47 ` [PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code Nuno Das Neves
  2025-01-23  1:47 ` [PATCH v2 2/2] hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hv Nuno Das Neves
  0 siblings, 2 replies; 7+ messages in thread
From: Nuno Das Neves @ 2025-01-23  1:47 UTC (permalink / raw)
  To: linux-hyperv, linux-arm-kernel, linux-kernel, linux-arch, wei.liu,
	mhklinux
  Cc: kys, haiyangz, decui, catalin.marinas, will, tglx, mingo, bp,
	dave.hansen, x86, hpa, arnd, jinankjain, muminulrussell,
	skinsburskii, mukeshrathor

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.

Signed-off-by: Nuno Das Neves <nudasnev@microsoft.com>
---
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/x86/hyperv/Makefile                  |  2 +-
 arch/x86/hyperv/hv_init.c                 | 26 -----------------------
 arch/x86/include/asm/mshyperv.h           |  6 ------
 drivers/hv/Makefile                       |  2 +-
 drivers/hv/hv_common.c                    | 23 ++++++++++++++++++++
 {arch/x86/hyperv => drivers/hv}/hv_proc.c |  4 ----
 include/asm-generic/mshyperv.h            |  5 +++++
 7 files changed, 30 insertions(+), 38 deletions(-)
 rename {arch/x86/hyperv => drivers/hv}/hv_proc.c (98%)

-- 
2.34.1


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

end of thread, other threads:[~2025-01-29  1:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-23  1:47 [PATCH v2 0/2] hyperv: Move some features to common code Nuno Das Neves
2025-01-23  1:47 ` [PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code Nuno Das Neves
2025-01-28 18:45   ` Michael Kelley
2025-01-29  0:45     ` Nuno Das Neves
2025-01-29  1:30       ` Michael Kelley
2025-01-23  1:47 ` [PATCH v2 2/2] hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hv Nuno Das Neves
2025-01-28 18:46   ` Michael Kelley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox