From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yang, Sheng" Subject: Re: KVM: VMX: cache exit_intr_info Date: Sat, 28 Jun 2008 11:20:47 +0800 Message-ID: <200806281120.47995.sheng.yang@intel.com> References: <20080627180519.GB18541@dmt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Avi Kivity , kvm-devel To: Marcelo Tosatti Return-path: Received: from mga09.intel.com ([134.134.136.24]:51537 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430AbYF1DUR (ORCPT ); Fri, 27 Jun 2008 23:20:17 -0400 In-Reply-To: <20080627180519.GB18541@dmt.cnet> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Saturday 28 June 2008 02:05:19 Marcelo Tosatti wrote: > exit_intr_info is read-only in nature, so once read it can be > cached similarly to idtv_vectoring_inf. > > Reduces guest re-entry in about 50 cycles on my machine (the > exception path should be similar, but haven't measured). > > Applies on top of register accessor patch. > > Signed-off-by: Marcelo Tosatti > Thanks for the patches! :) And I realized there are also too much vmcs_read32 (CPU_BASED_VM_EXEC_CONTROL)(though not read only). I'd like to post another patch to optimize it later. -- Thanks Yang, Sheng