]> git.baikalelectronics.ru Git - kernel.git/commit
hv_utils: Support host-initiated hibernation request
authorDexuan Cui <decui@microsoft.com>
Sun, 26 Jan 2020 05:49:43 +0000 (21:49 -0800)
committerSasha Levin <sashal@kernel.org>
Mon, 27 Jan 2020 03:10:16 +0000 (22:10 -0500)
commitffd1d4a49336b7f0078f45332fa4b93d25720f6c
tree1fddb74c77387737e89fc5d44e74c44e570d28ed
parent3e9c72056ed5618bef253f602e79dd2312a0d8a5
hv_utils: Support host-initiated hibernation request

Update the Shutdown IC version to 3.2, which is required for the host to
send the hibernation request.

The user is expected to create the below udev rule file, which is applied
upon the host-initiated hibernation request:

root@localhost:~# cat /usr/lib/udev/rules.d/40-vm-hibernation.rules
SUBSYSTEM=="vmbus", ACTION=="change", DRIVER=="hv_utils", ENV{EVENT}=="hibernate", RUN+="/usr/bin/systemctl hibernate"

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/hv_util.c