From: "Jan Beulich" Subject: Re: Re: [PATCH] EPT: Flush running cpus, add mask to flush when scheduled in Date: Tue, 22 Sep 2009 10:02:01 +0100 Message-ID: <4AB8AEA90200007800016325@vpn.id2.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xiaohui Xin , Xin Li , George Dunlap , Tim Deegan , Paul Durrant , Jun Nakajima , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 22.09.09 10:20 >>> >On 22/09/2009 09:07, "Keir Fraser" wrote: > >> On 22/09/2009 08:07, "Jan Beulich" wrote: >>=20 >>> Passing a pointer to the global cpu mask looks racy here: What if a = CPU >>> disappears from domain_dirty_cpumask under your feet? >>=20 >> I'm fixing this race before I apply the patch. > >George, Jan, > >Please see what you think of xen-unstable:20244. With no assertion in ept_sync_domain() on any locks held, is it guaranteed that the function cannot be entered twice at the same time for a given guest? If not, passing a pointer to the new ept_synced member isn't any better than passing the one to domain_dirty_cpumask. Jan