]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Drivers: hv: vmbus: Ignore the offers when resuming from hibernation
authorDexuan Cui <decui@microsoft.com>
Thu, 5 Sep 2019 23:01:18 +0000 (23:01 +0000)
committerSasha Levin <sashal@kernel.org>
Fri, 6 Sep 2019 18:52:44 +0000 (14:52 -0400)
commite3ede02add7e6df315afc6b4120520f7d0c5a258
treead419a90173f22a44a040ab17452f1641723f79f
parent271b2224d42f88870e6b060924ee374871c131fc
Drivers: hv: vmbus: Ignore the offers when resuming from hibernation

When the VM resumes, the host re-sends the offers. We should not add the
offers to the global vmbus_connection.chn_list again.

This patch assumes the RELIDs of the channels don't change across
hibernation. Actually this is not always true, especially in the case of
NIC SR-IOV the VF vmbus device's RELID sometimes can change. A later patch
will address this issue by mapping the new offers to the old channels and
fixing up the old channels, if necessary.

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/channel_mgmt.c