Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840Ab1FHJjW (ORCPT ); Wed, 8 Jun 2011 05:39:22 -0400 Received: from cantor.suse.de ([195.135.220.2]:57304 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341Ab1FHJjU convert rfc822-to-8bit (ORCPT ); Wed, 8 Jun 2011 05:39:20 -0400 Subject: Re: [PATCH 04/15] KVM: MMU: cache mmio info on page fault path Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <4DEF41F6.8050204@cn.fujitsu.com> Date: Wed, 8 Jun 2011 11:39:16 +0200 Cc: Avi Kivity , Marcelo Tosatti , LKML , KVM Content-Transfer-Encoding: 8BIT Message-Id: References: <4DEE205E.8000601@cn.fujitsu.com> <4DEE20EE.7060000@cn.fujitsu.com> <4FA0E9B8-FBB6-49BD-916C-239599136604@suse.de> <4DEF39CB.4020109@cn.fujitsu.com> <3CA39806-D840-414B-816E-99DAB6F8FEBD@suse.de> <4DEF41F6.8050204@cn.fujitsu.com> To: Xiao Guangrong X-Mailer: Apple Mail (2.1084) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 23 On 08.06.2011, at 11:33, Xiao Guangrong wrote: > On 06/08/2011 05:18 PM, Alexander Graf wrote: > >>> >>> Also, when context switched, CR3 is reloaded, mmio cache info can be cleared too. right? :-) >> >> Only when using SPT. In the NPT case, you will never see cr3 getting reloaded or INVLPG :). >> > > In the NPT case, we only cache the GPA, GVA is not cached (vcpu.arch.mmio_gva is always 0) ;-) Ah, very nice! :) Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/