From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v2 1/7] KVM: MMU: optimize pte write path if don't have protected sp Date: Wed, 18 May 2011 10:12:47 -0300 Message-ID: <20110518131247.GA10833@amt.cnet> References: <4DCFEF3B.5060806@cn.fujitsu.com> <4DD1098E.2070701@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Xiao Guangrong , LKML , KVM To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4DD1098E.2070701@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, May 16, 2011 at 02:25:02PM +0300, Avi Kivity wrote: > On 05/15/2011 06:20 PM, Xiao Guangrong wrote: > >Simply return from kvm_mmu_pte_write path if no shadow page is > >write-protected, then we can avoid to walk all shadow pages and hold > >mmu-lock > > Patchset looks like a very good cleanup (plus the nice optimization > in patch 1). What case is patch 1 optimizing for?