]> 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)
commit3e9c72056ed5618bef253f602e79dd2312a0d8a5
treee6ea3d7d219f8a57eedfd67e83c4bdf4af6291eb
parent9fc3c01a1fae669a2ef9f13ee1e1a26e057d79f8
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