From: Tim Deegan Subject: Re: [PATCH] x86/mm: Take the p2m lock even in shadow mode. Date: Thu, 21 Feb 2013 18:27:05 +0000 Message-ID: <20130221182705.GA31110@ocelot.phlegethon.org> References: <20130221174253.GG24051@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130221174253.GG24051@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org At 17:42 +0000 on 21 Feb (1361468573), Tim Deegan wrote: > At 09:58 -0500 on 21 Feb (1361440689), Andres Lagar-Cavilla wrote: > > > The remaining locked lookups are in sh_page_fault() (in a path that's > > > almost always already serializing on the paging lock), and in > > > emulate_map_dest() (which can probably be updated to use > > > get_page_from_gfn()). > > That is absolutely the case. Here is a rough patch: > > Applied, thanks. I've taken your S-o-b below to apply to this patch > too; hope that's OK. Jan, this second patch isn't necessary for 4.2 -- the performance regression it fixes isn't even measurable on 4-vcpu compile-tests. Tim.