diff options
author | Dexuan Cui <decui@microsoft.com> | 2019-09-06 01:01:19 +0200 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2019-09-06 20:52:44 +0200 |
commit | f53335e3289f9ac3a6a8faf6c2f819eee508bd39 (patch) | |
tree | e8206b915df497dd3ab54d6602a4d1da2d873538 /drivers/hv/hyperv_vmbus.h | |
parent | Drivers: hv: vmbus: Ignore the offers when resuming from hibernation (diff) | |
download | linux-f53335e3289f9ac3a6a8faf6c2f819eee508bd39.tar.xz linux-f53335e3289f9ac3a6a8faf6c2f819eee508bd39.zip |
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>
Diffstat (limited to 'drivers/hv/hyperv_vmbus.h')
-rw-r--r-- | drivers/hv/hyperv_vmbus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h index 26ea161a6876..e657197a027a 100644 --- a/drivers/hv/hyperv_vmbus.h +++ b/drivers/hv/hyperv_vmbus.h @@ -274,6 +274,8 @@ struct vmbus_msginfo { extern struct vmbus_connection vmbus_connection; +int vmbus_negotiate_version(struct vmbus_channel_msginfo *msginfo, u32 version); + static inline void vmbus_send_interrupt(u32 relid) { sync_set_bit(relid, vmbus_connection.send_int_page); |