From: "Zhao Forrest" Subject: Re: [PATCH 8/8] x86: KVM guest: VMX cr3 cache support Date: Thu, 6 Mar 2008 17:17:10 +0800 Message-ID: References: <1204475481-16583-9-git-send-email-avi@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Marcelo Tosatti To: "Avi Kivity" Return-path: In-Reply-To: <1204475481-16583-9-git-send-email-avi@qumranet.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org > * We only need to hook operations that are MMU writes. We hook these so > that > * we can use lazy MMU mode to batch these operations. We could probably > * improve the performance of the host code if we used some of the > information > @@ -219,6 +359,9 @@ static void paravirt_ops_setup(void) > pv_mmu_ops.lazy_mode.enter = kvm_enter_lazy_mmu; > pv_mmu_ops.lazy_mode.leave = kvm_leave_lazy_mmu; > } > + > + if (kvm_para_has_feature(KVM_FEATURE_CR3_CACHE)) Here guest OS calls cpuid() to know if KVM_FEATURE_CR3_CACHE is supported by KVM, so I think that the kernel counterpart of this patch(i.e. [kvm-devel] [PATCH 7/8] KVM: MMU: VMX cr3 cache support) should include the code to intercept cpuid trap and set KVM_FEATURE_CR3_CACHE. But I didn't find such code in [PATCH 7/8] KVM: MMU: VMX cr3 cache support. Do I miss anything relevant? Thanks, Forrest ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/