Skip to content

x86/hyperv: VTL mode reboot fixes

Roman Kisel linux-hyperv lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Added verbs to the patch titles.
** Thank you, Ingo!**

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2x86/hyperv: Add VTL mode emergency restart callbackarch/x86/hyperv/hv_vtl.c+23 -00 replies
2/2x86/hyperv: Add VTL mode callback for restarting the systemarch/x86/hyperv/hv_vtl.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH hyperv-next v3 0/2] x86/hyperv: VTL mode reboot fixes

The first patch defines a specialized machine emergency restart callback not to write to the physical address of 0x472 which is what the native_machine_emergency_restart() does unconditionally.

I first wanted to tweak that function[1], and in the course of the discussion it looked as the risks of doing that would outweigh the benefit: the bare-metal systems have likely adopted that behavior as a standard although I could not find any mentions of that magic address in the UEFI+ACPI specification.

The second patch removes the need to always supply "reboot=t" to the kernel command line in the OpenHCL bootloader[2]. There is no other option at the moment; when/if it appears the newly added callback's code can be adjusted as required.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://github.com/microsoft/openvmm/blob/7a9d0e0a00461be6e5f3267af9ea54cc7157c900/openhcl/openhcl_boot/src/main.rs#L139

[V3]:
- Added verbs to the patch titles.
** Thank you, Ingo!**

[V2]: https://lore.kernel.org/linux-hyperv/[email protected]/
- Fixed the warning from the kernel robot about using C23.
** Thank you, kernel robot!**

- Tightened up wording in the comments and the commit descriptions.
** Thank you, Saurabh!**

- Dropped the CC: stable tag as there is no specific commit this patch series fixes.
** Thank you, Saurabh!**

[V1]: https://lore.kernel.org/linux-hyperv/[email protected]/

Roman Kisel (2):
x86/hyperv: Add VTL mode emergency restart callback x86/hyperv: Add VTL mode callback for restarting the system

 arch/x86/hyperv/hv_vtl.c | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

base-commit: 3a7f7785eae7cf012af128ca9e383c91e4955354

Signature · 1 line
2.43.0