Skip to content

Introduce new headers for Hyper-V

Nuno Das Neves kvm linux-arch linux-arm-kernel linux-hyperv linux-iommu linux-pci lkml netdev virtualization 3 versions – Applied

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

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

Versions newest first · linked by author and title

  1. v3 Latest5 patches 10 repliesApplied
  2. v24 patches 21 repliesSuperseded
  3. v15 patches 19 repliesSuperseded

Changes in v3 from the cover letter

- Add patch (#5) to delete the hyperv-tlfs.h files, suggested by Michael Kelley and Easwar Hariharan
- Reword commit message on patch #3 to improve clarity, suggested by Michael Kelley
- Clarify "Dom0" terminology, suggested by Michael Kelley v2:
- Rework the series to simply use the new headers everywhere, instead of fiddling around to keep hyperv-tlfs.h in some areas, suggested by Michael Kelley and Easwar Hariharan
- Fix compilation issues with some configs by adding missing definitions and changing some names, thanks to Simon Horman for catching those
- Add additional definitions to the new headers due to them now being used everywhere
- Don't remove indirect includes in patch #2, only remove those which truly aren't used, suggested by Michael Kelley

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5hyperv: Move hv_connection_id to hyperv-tlfs.hinclude/asm-generic/hyperv-tlfs.h include/linux/hyperv.h+9 -92 replies
2/5hyperv: Clean up unnecessary #includesarch/arm64/hyperv/hv_core.c arch/x86/hyperv/hv_apic.c arch/x86/hyperv/hv_init.c +6 more+0 -100 replies
3/5hyperv: Add new Hyper-V headers in include/hypervMAINTAINERS include/hyperv/hvgdk.h include/hyperv/hvgdk_ext.h +3 more+2709 -02 replies
4/5hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.harch/arm64/hyperv/hv_core.c arch/arm64/hyperv/mshyperv.c arch/arm64/include/asm/mshyperv.h +19 more+39 -412 replies
5/5hyperv: Remove the now unused hyperv-tlfs.h filesMAINTAINERS arch/arm64/include/asm/hyperv-tlfs.h arch/x86/include/asm/hyperv-tlfs.h +1 more+0 -17683 replies

Reviews trailers per patch

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

PatchWei LiuEaswar HariharanMichael Kelley
1/5A-b A-b R-b R-b R-b R-b
2/5A-b R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] Introduce new headers for Hyper-V

To support Linux as root partition[1] on Hyper-V many new definitions are required.

The plan going forward is to directly import definitions from Hyper-V code without waiting for them to land in the TLFS document. This is a quicker and more maintainable way to import definitions, and is a step toward the eventual goal of exporting the headers directly from Hyper-V for use in Linux.

This patch series introduces new headers (hvhdk.h, hvgdk.h, etc, see patch #3) derived directly from Hyper-V code. hyperv-tlfs.h is replaced with hvhdk.h (which includes the other new headers) everywhere.

No functional change is expected.

Summary:
Patch 1-2: Minor cleanup patches
Patch 3: Add the new headers (hvhdk.h, etc..) in include/hyperv/ Patch 4: Switch to the new headers
Patch 5: Delete hyperv-tlfs.h files

---
Changelog:
v3:
- Add patch (#5) to delete the hyperv-tlfs.h files, suggested by Michael Kelley and Easwar Hariharan
- Reword commit message on patch #3 to improve clarity, suggested by Michael Kelley
- Clarify "Dom0" terminology, suggested by Michael Kelley v2:
- Rework the series to simply use the new headers everywhere, instead of fiddling around to keep hyperv-tlfs.h in some areas, suggested by Michael Kelley and Easwar Hariharan
- Fix compilation issues with some configs by adding missing definitions and changing some names, thanks to Simon Horman for catching those
- Add additional definitions to the new headers due to them now being used everywhere
- Don't remove indirect includes in patch #2, only remove those which truly aren't used, suggested by Michael Kelley

---
Footnotes:
[1] Linux as root partition on Hyper-V is sometimes referred to as "Dom0", borrowing the terminology from Xen. Although they are conceptually similar, note that "Hyper-V Dom0" has nothing to do with Xen.

Nuno Das Neves (5):
hyperv: Move hv_connection_id to hyperv-tlfs.h
hyperv: Clean up unnecessary #includes
hyperv: Add new Hyper-V headers in include/hyperv
hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.h
hyperv: Remove the now unused hyperv-tlfs.h files

 MAINTAINERS                          |    8 +-
 arch/arm64/hyperv/hv_core.c          |    3 +-
 arch/arm64/hyperv/mshyperv.c         |    4 +-
 arch/arm64/include/asm/hyperv-tlfs.h |   71 --
 arch/arm64/include/asm/mshyperv.h    |    7 +-
 arch/x86/hyperv/hv_apic.c            |    1 -
 arch/x86/hyperv/hv_init.c            |   21 +-
 arch/x86/hyperv/hv_proc.c            |    3 +-
 arch/x86/hyperv/ivm.c                |    1 -
 arch/x86/hyperv/mmu.c                |    1 -
 arch/x86/hyperv/nested.c             |    2 +-
 arch/x86/include/asm/hyperv-tlfs.h   |  811 ----------------
 arch/x86/include/asm/kvm_host.h      |    3 +-
 arch/x86/include/asm/mshyperv.h      |    3 +-
 arch/x86/include/asm/svm.h           |    2 +-
 arch/x86/kernel/cpu/mshyperv.c       |    2 +-
 arch/x86/kvm/vmx/hyperv_evmcs.h      |    2 +-
 arch/x86/kvm/vmx/vmx_onhyperv.h      |    2 +-
 arch/x86/mm/pat/set_memory.c         |    2 -
 drivers/clocksource/hyperv_timer.c   |    2 +-
 drivers/hv/hv_balloon.c              |    4 +-
 drivers/hv/hv_common.c               |    2 +-
 drivers/hv/hv_kvp.c                  |    2 +-
 drivers/hv/hv_snapshot.c             |    2 +-
 drivers/hv/hyperv_vmbus.h            |    2 +-
 include/asm-generic/hyperv-tlfs.h    |  874 -----------------
 include/asm-generic/mshyperv.h       |    7 +-
 include/clocksource/hyperv_timer.h   |    2 +-
 include/hyperv/hvgdk.h               |  308 ++++++
 include/hyperv/hvgdk_ext.h           |   46 +
 include/hyperv/hvgdk_mini.h          | 1306 ++++++++++++++++++++++++++
 include/hyperv/hvhdk.h               |  733 +++++++++++++++
 include/hyperv/hvhdk_mini.h          |  311 ++++++
 include/linux/hyperv.h               |   11 +-
 net/vmw_vsock/hyperv_transport.c     |    6 +-
 35 files changed, 2748 insertions(+), 1819 deletions(-)
 delete mode 100644 arch/arm64/include/asm/hyperv-tlfs.h
 delete mode 100644 arch/x86/include/asm/hyperv-tlfs.h
 delete mode 100644 include/asm-generic/hyperv-tlfs.h
 create mode 100644 include/hyperv/hvgdk.h
 create mode 100644 include/hyperv/hvgdk_ext.h
 create mode 100644 include/hyperv/hvgdk_mini.h
 create mode 100644 include/hyperv/hvhdk.h
 create mode 100644 include/hyperv/hvhdk_mini.h
Signature · 1 line
2.34.1