OSDN Git Service

Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation
authorDexuan Cui <decui@microsoft.com>
Thu, 5 Sep 2019 23:01:19 +0000 (23:01 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 6 Sep 2019 18:52:44 +0000 (14:52 -0400)
commitf53335e3289f9ac3a6a8faf6c2f819eee508bd39
treee8206b915df497dd3ab54d6602a4d1da2d873538
parente3ede02add7e6df315afc6b4120520f7d0c5a258
Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation

Before Linux enters hibernation, it sends the CHANNELMSG_UNLOAD message to
the host so all the offers are gone. After hibernation, Linux needs to
re-negotiate with the host using the same vmbus protocol version (which
was in use before hibernation), and ask the host to re-offer the vmbus
devices.

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/connection.c
drivers/hv/hyperv_vmbus.h
drivers/hv/vmbus_drv.c