lkml.org 
[lkml]   [2019]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v4 12/12] Drivers: hv: vmbus: Resume after fixing up old primary channels
Date
From: Dexuan Cui <decui@microsoft.com> Sent: Monday, September 2, 2019 5:23 PM
>
> When the host re-offers the primary channels upon resume, the host only
> guarantees the Instance GUID doesn't change, so vmbus_bus_suspend()
> should invalidate channel->offermsg.child_relid and figure out the
> number of primary channels that need to be fixed up upon resume.
>
> Upon resume, vmbus_onoffer() finds the old channel structs, and maps
> the new offers to the old channels, and fixes up the old structs,
> and finally the resume callbacks of the VSC drivers will re-open
> the channels.
>
> Signed-off-by: Dexuan Cui <decui@microsoft.com>
> ---
> drivers/hv/channel_mgmt.c | 85 ++++++++++++++++++++++++++++++++++++-----------
> drivers/hv/connection.c | 2 ++
> drivers/hv/hyperv_vmbus.h | 14 ++++++++
> drivers/hv/vmbus_drv.c | 17 ++++++++++
> include/linux/hyperv.h | 3 ++
> 5 files changed, 101 insertions(+), 20 deletions(-)
>

Reviewed-by: Michael Kelley <mikelley@microsoft.com>

\
 
 \ /
  Last update: 2019-09-04 18:46    [W:0.104 / U:1.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site