From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH v4 5/6] KVM: MMU: combine guest pte read between walk and pte prefetch Date: Fri, 2 Jul 2010 14:03:03 -0300 Message-ID: <20100702170303.GC25969@amt.cnet> References: <4C2C9DC0.8050607@cn.fujitsu.com> <4C2C9E6C.2040803@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , LKML , KVM list To: Xiao Guangrong Return-path: Content-Disposition: inline In-Reply-To: <4C2C9E6C.2040803@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Jul 01, 2010 at 09:55:56PM +0800, Xiao Guangrong wrote: > Combine guest pte read between guest pte walk and pte prefetch > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/paging_tmpl.h | 48 ++++++++++++++++++++++++++++++------------- > 1 files changed, 33 insertions(+), 15 deletions(-) Can't do this, it can miss invlpg: vcpu0 vcpu1 read guest ptes modify guest pte invlpg instantiate stale guest pte See how the pte is reread inside fetch with mmu_lock held. Otherwise the patchset looks fine to me.