linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] hyperv: Move some features to common code
@ 2025-02-07 19:03 Nuno Das Neves
  2025-02-07 19:03 ` [PATCH v3 1/2] hyperv: Move hv_current_partition_id to arch-generic code Nuno Das Neves
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Nuno Das Neves @ 2025-02-07 19:03 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 <nunodasneves@linux.microsoft.com>
---
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%)

-- 
2.34.1


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

end of thread, other threads:[~2025-02-12  4:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 19:03 [PATCH v3 0/2] hyperv: Move some features to common code Nuno Das Neves
2025-02-07 19:03 ` [PATCH v3 1/2] hyperv: Move hv_current_partition_id to arch-generic code Nuno Das Neves
2025-02-08 15:44   ` Michael Kelley
2025-02-07 19:03 ` [PATCH v3 2/2] hyperv: Move arch/x86/hyperv/hv_proc.c to drivers/hv Nuno Das Neves
2025-02-12  4:11   ` Wei Liu
2025-02-12  4:10 ` [PATCH v3 0/2] hyperv: Move some features to common 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).