Skip to content

Add support for clean shutdown with MSHV

Praveen K Paladugu linux-hyperv lkml 7 versions – Applied

Status from this message: I queued these patches to hyperv-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest4 patches 5 repliesApplied
  2. v63 patches 9 repliesSuperseded
  3. v53 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches8 repliesSuperseded
v32 patches4 repliesSuperseded
v22 patches5 repliesSuperseded
v12 patches8 repliesSuperseded

Changes in v7 from the cover letter

- Fix Makefile condition for building mshv_common.c
- Drop the now unnecessary CONFIG_X86_64 guards

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/4fixup! Drivers: hv: Introduce mshv_vtl driverdrivers/hv/Makefile+1 -13 replies
2/4hyperv: Add definitions for MSHV sleep state configurationinclude/hyperv/hvgdk_mini.h include/hyperv/hvhdk_mini.h+43 -10 replies
3/4hyperv: Use reboot notifier to configure sleep statearch/x86/hyperv/hv_init.c arch/x86/include/asm/mshyperv.h drivers/hv/mshv_common.c+80 -00 replies
4/4hyperv: Cleanly shutdown root partition with MSHVarch/x86/include/asm/mshyperv.h arch/x86/kernel/cpu/mshyperv.c drivers/hv/mshv_common.c+24 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchEaswar HariharanNuno Das NevesStanislav KinsburskiiStansialv KinsburskiiIngo Molnar
1/4
2/4R-b R-b A-b
3/4R-b R-b R-b A-b
4/4R-b A-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 5 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/4] Add support for clean shutdown with MSHV

Add support for clean shutdown of the root partition when running on MSHV Hypervisor.

v7:
- Fix Makefile condition for building mshv_common.c
- Drop the now unnecessary CONFIG_X86_64 guards

v6:
- Fixed build errors, by adding CONFIG_X86_64 guard
- Moved machine_ops hook definition to ms_hyperv_init_platform
- Addressed review comments in v5

v5:
- Fixed build errors
- Padded struct hv_input_set_system_property for alignment
- Dropped CONFIG_ACPI stub

v4:
- Adopted machine_ops to order invoking HV_ENTER_SLEEP_STATE as the last step in shutdown sequence.
- This ensures rest of the cleanups are done before powering off

v3:
- Dropped acpi_sleep handlers as they are not used on mshv
- Applied ordering for hv_reboot_notifier
- Fixed build issues on i386, arm64 architectures

v2:
- Addressed review comments from v1.
- Moved all sleep state handling methods under CONFIG_ACPI stub
- - This fixes build issues on non-x86 architectures.

Praveen K Paladugu (4):
fixup! Drivers: hv: Introduce mshv_vtl driver
hyperv: Add definitions for MSHV sleep state configuration
hyperv: Use reboot notifier to configure sleep state
hyperv: Cleanly shutdown root partition with MSHV

 arch/x86/hyperv/hv_init.c       |  1 +
 arch/x86/include/asm/mshyperv.h |  2 +
 arch/x86/kernel/cpu/mshyperv.c  |  2 +
 drivers/hv/Makefile             |  2 +-
 drivers/hv/mshv_common.c        | 99 +++++++++++++++++++++++++++++++++
 include/hyperv/hvgdk_mini.h     |  4 +-
 include/hyperv/hvhdk_mini.h     | 40 +++++++++++++
 7 files changed, 148 insertions(+), 2 deletions(-)
Signature · 1 line
2.51.0