* Find timing info between two VM exits
@ 2007-12-24 0:55 avadh patel
[not found] ` <c09e7eee0712231655n3b0150a2kab4f261ebea8aff5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: avadh patel @ 2007-12-24 0:55 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1.1: Type: text/plain, Size: 243 bytes --]
Hi All,
I was looking into the source code of kvm and modified qemu and trying to
find the time spent between two VM-exit in kvm.
Is there a way to find this from user-space qemu, without modifying the
kernel module or libkvm?
Thanks,
Avadh
[-- Attachment #1.2: Type: text/html, Size: 266 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find timing info between two VM exits
[not found] ` <c09e7eee0712231655n3b0150a2kab4f261ebea8aff5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-12-24 7:05 ` Avi Kivity
[not found] ` <476F5A43.2060605-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2007-12-24 7:05 UTC (permalink / raw)
To: avadh patel; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
avadh patel wrote:
> Hi All,
>
> I was looking into the source code of kvm and modified qemu and trying
> to find the time spent between two VM-exit in kvm.
> Is there a way to find this from user-space qemu, without modifying
> the kernel module or libkvm?
>
What do you mean exactly? Average time between vmexits? Time between
vmexit and vmenter? time between vmenter and vmexit? Or what code
executes?
--
error compiling committee.c: too many arguments to function
-------------------------------------------------------------------------
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find timing info between two VM exits
[not found] ` <476F5A43.2060605-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-12-24 15:46 ` avadh patel
[not found] ` <c09e7eee0712240746q4022d5e6v364ab7d491ae80ec-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: avadh patel @ 2007-12-24 15:46 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1.1: Type: text/plain, Size: 868 bytes --]
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 ?
Thanks,
Avadh
On Dec 24, 2007 2:05 AM, Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> avadh patel wrote:
> > Hi All,
> >
> > I was looking into the source code of kvm and modified qemu and trying
> > to find the time spent between two VM-exit in kvm.
> > Is there a way to find this from user-space qemu, without modifying
> > the kernel module or libkvm?
> >
>
> What do you mean exactly? Average time between vmexits? Time between
> vmexit and vmenter? time between vmenter and vmexit? Or what code
> executes?
>
> --
> error compiling committee.c: too many arguments to function
>
>
[-- Attachment #1.2: Type: text/html, Size: 1292 bytes --]
[-- Attachment #2: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Find timing info between two VM exits
[not found] ` <c09e7eee0712240746q4022d5e6v364ab7d491ae80ec-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-12-25 7:25 ` Avi Kivity
0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2007-12-25 7:25 UTC (permalink / raw)
To: avadh patel; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-25 7:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-24 0:55 Find timing info between two VM exits avadh patel
[not found] ` <c09e7eee0712231655n3b0150a2kab4f261ebea8aff5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-12-24 7:05 ` Avi Kivity
[not found] ` <476F5A43.2060605-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-12-24 15:46 ` avadh patel
[not found] ` <c09e7eee0712240746q4022d5e6v364ab7d491ae80ec-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-12-25 7:25 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox