From: Keir Fraser Subject: Re: How expensive is a VM EXIT? Date: Wed, 04 Mar 2009 18:49:16 +0000 Message-ID: References: <8115AF16522A3D4383C1FF753036713F76B84D2A@cosmail01.lsi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8115AF16522A3D4383C1FF753036713F76B84D2A@cosmail01.lsi.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Nadolski, Ed" , NAHieu Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Either of those can give you profiling info about common paths through the hypervisor, and time spent in the hypervisor. For the specific microbenchmark of time taken for a processor to execute a vmexit, I'd hack in custom tracing to get a precise measurement. -- Keir On 04/03/2009 18:39, "Nadolski, Ed" wrote: > Is there a good tool to look at for this -- xentrace, xenoprofile, other? > > Thanks, > Ed > > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Keir Fraser > Sent: Wednesday, March 04, 2009 1:46 AM > To: NAHieu > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] How expensive is a VM EXIT? > > On 04/03/2009 00:15, "NAHieu" wrote: > >> On Wed, Mar 4, 2009 at 1:34 AM, Keir Fraser >> wrote: >>> For just the VMEXIT itself, it's probably about 1000-1500 cycles on the >>> latest processors. I haven't measured it very recently though. >>> >> >> Could you explain how do you measure the cycles for VMEXIT? > > RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the > hypervisor on entry. > > -- Keir > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel