[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM5PR2101MB10473EA12E5ACBDB1E06A329D7DE0@DM5PR2101MB1047.namprd21.prod.outlook.com>
Date: Fri, 10 Apr 2020 19:33:47 +0000
From: Michael Kelley <mikelley@...rosoft.com>
To: "Andrea Parri (Microsoft)" <parri.andrea@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: KY Srinivasan <kys@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Wei Liu <wei.liu@...nel.org>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
Dexuan Cui <decui@...rosoft.com>,
Boqun Feng <boqun.feng@...il.com>,
vkuznets <vkuznets@...hat.com>
Subject: RE: [PATCH 09/11] Drivers: hv: vmbus: Synchronize init_vp_index() vs.
CPU hotplug
From: Andrea Parri (Microsoft) <parri.andrea@...il.com> Sent: Sunday, April 5, 2020 5:15 PM
>
> init_vp_index() may access the cpu_online_mask mask via its calls of
> cpumask_of_node(). Make sure to protect these accesses with a
> cpus_read_lock() critical section.
>
> Also, remove some (hardcoded) instances of CPU(0) from init_vp_index()
> and replace them with VMBUS_CONNECT_CPU. The connect CPU can not go
> offline, since Hyper-V does not provide a way to change it.
>
> Finally, order the accesses of target_cpu from init_vp_index() and
> hv_synic_cleanup() by relying on the channel_mutex; this is achieved
> by moving the call of init_vp_index() into vmbus_process_offer().
>
> Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@...il.com>
> ---
> drivers/hv/channel_mgmt.c | 47 ++++++++++++++++++++++++++++-----------
> drivers/hv/hv.c | 7 +++---
> 2 files changed, 38 insertions(+), 16 deletions(-)
>
Reviewed-by: Michael Kelley <mikelley@...rosoft.com>
Powered by blists - more mailing lists