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

The hv_utils driver currently supports a "shutdown" operation initiated
from the Hyper-V host. Newer versions of Hyper-V also support a "restart"
operation. So add support for the updated protocol version that has
"restart" support, and perform a clean reboot when such a message is
received from Hyper-V.

To test the restart functionality, run this PowerShell command on the
Hyper-V host:

Restart-VM  <vmname>  -Type Reboot

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