From: "George Dunlap " Subject: Re: Information required on TRACE_VMEXIT working. Date: Mon, 27 Nov 2006 09:41:35 -0500 Message-ID: References: <20061127054321.45514.qmail@web8714.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: aditya shevalkar Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > When a VMEXIT happens, vmx_trace_vmexit() is called, and a trace > record is generated. (This includes an RDTSC timetamp). Then, as the > VMEXIT is handled, the various trace_values[] are filled in, depending > upon what kind of vmexit it is. Then, just before the next [stupid mailer program...] VMENTER, another trace record is generated with the values in trace_values[]. This turns out to be a pretty powerful profiling and analysis tool; the two RDTSC values can be used to calculate how many cycles Xen spent in the hypervisor for any particular type of VMEXIT. The records are only generated if tracing is actually enabled, of course. See tools/xentrace and xen/public/trace.h for more information. -George