avadh patel wrote:
> Hi Avi,
>
> Sorry for the wrong question. My revised question is as follows:
> How can I find the time spent between vm-enter and vm-exit ?
> In other words, How can I find the number of clock ticks spent in 
> execution of VM's code between vm-enter and vm-exit ?

Linux 2.6.24 supports guest time counters in /proc/pid/stat; these sum 
up the amount of real time spent inside the guest.  To get clock tick 
counts, you can add rdtsc calls in vmx_vcpu_run or svm_vcpu_run, before 
and after the big asm block.


-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to