mshv: Use reboot notifier to configure sleep state
authorPraveen K Paladugu <prapal@linux.microsoft.com>
Fri, 5 Dec 2025 20:17:07 +0000 (14:17 -0600)
committerWei Liu <wei.liu@kernel.org>
Fri, 5 Dec 2025 23:25:01 +0000 (23:25 +0000)
commitf0be2600ac55a5845d536c56787daca50dbcb2a1
tree210e6eda1299638b7ee26a50f99a0e453d6b94af
parent723c47a221ee407901055c9d9b4434e68c5d650e
mshv: Use reboot notifier to configure sleep state

Configure sleep state information from ACPI in MSHV hypervisor using
a reboot notifier. This data allows the hypervisor to correctly power
off the host during shutdown.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Co-developed-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@linux.microsoft.com>
Reviewed-by: Stansialv Kinsburskii <skinsburskii@linux.miscrosoft.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/mshyperv.h
drivers/hv/mshv_common.c