]> www.infradead.org Git - users/dwmw2/linux.git/commit
PM / hibernate: Honour ACPI hardware signature by default for virtual guests
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 11 Mar 2022 19:01:42 +0000 (19:01 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 11 Mar 2022 19:19:13 +0000 (19:19 +0000)
commit5d0317e08a537fbf2335256ca7e71140eabe930c
treeb04ed5f947b27a117cd8fb31e433c2a092b3d79b
parentce41d078aaa9cf15cbbb4a42878cc6160d76525e
PM / hibernate: Honour ACPI hardware signature by default for virtual guests

The ACPI specification says that OSPM should refuse to restore from
hibernate if the hardware signature changes, and should boot from
scratch. However, real BIOSes often vary the hardware signature in cases
where we *do* want to resume from hibernate, so Linux doesn't follow the
spec by default.

However, in a virtual environment there's no reason for the VMM to vary
the hardware signature *unless* it wants to trigger a clean reboot as
defined by the ACPI spec. So enable the check by default if a hypervisor
is detected.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kernel/acpi/sleep.c
drivers/acpi/sleep.c
include/linux/acpi.h