From: Keir Fraser Subject: Re: Re: [PATCH] EPT: Flush running cpus, add mask to flush when scheduled in Date: Tue, 22 Sep 2009 10:17:43 +0100 Message-ID: References: <4AB8AEA90200007800016325@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4AB8AEA90200007800016325@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich 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 On 22/09/2009 10:02, "Jan Beulich" wrote: >> 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. I assume George is knowledgeable on that area. If calls to ept_sync_domain() are not serialised then I think synchronisation around the ept_needs_flush/ept_synced cpumask is indeed pretty suspect. If there isn't such a serialising lock, we could add one to ept_sync_domain() quite safely. -- Keir