* [Qemu-devel] Memory Tracking API
@ 2012-05-17 18:06 Jaspal
2012-05-17 18:47 ` Richard W.M. Jones
0 siblings, 1 reply; 3+ messages in thread
From: Jaspal @ 2012-05-17 18:06 UTC (permalink / raw)
To: qemu-devel, kvm
Hi ,
Is it possible to keep a count of reads / writes taking place in a vm
using qemu ( using kvm as hypervisor ) ? Is there a api ( or any patch )
for it ?
Thanks ,
Jaspal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Memory Tracking API
2012-05-17 18:06 [Qemu-devel] Memory Tracking API Jaspal
@ 2012-05-17 18:47 ` Richard W.M. Jones
2012-05-21 3:28 ` Jaspal
0 siblings, 1 reply; 3+ messages in thread
From: Richard W.M. Jones @ 2012-05-17 18:47 UTC (permalink / raw)
To: Jaspal; +Cc: qemu-devel, kvm
On Thu, May 17, 2012 at 11:36:24PM +0530, Jaspal wrote:
> Hi ,
>
> Is it possible to keep a count of reads / writes taking place in a
> vm using qemu ( using kvm as hypervisor ) ? Is there a api ( or any
> patch ) for it ?
Memory reads and writes is surely going to generate a huge
amount of output!
There are various DEBUG_* symbols at the top of exec.c and ioport.c.
I've only used a few of these:
DEBUG_UNASSIGNED - prints a message when an unmapped page is
referenced (TCG only, presumably?)
DEBUG_IOPORT - prints a message when any I/O port is referenced
DEBUG_UNUSED_IOPORT - prints a message when a non-emulated I/O port
is referenced
There are several more if you look at the code.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Memory Tracking API
2012-05-17 18:47 ` Richard W.M. Jones
@ 2012-05-21 3:28 ` Jaspal
0 siblings, 0 replies; 3+ messages in thread
From: Jaspal @ 2012-05-21 3:28 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: qemu-devel, kvm
On 05/18/2012 12:17 AM, Richard W.M. Jones wrote:
> On Thu, May 17, 2012 at 11:36:24PM +0530, Jaspal wrote:
>> Hi ,
>>
>> Is it possible to keep a count of reads / writes taking place in a
>> vm using qemu ( using kvm as hypervisor ) ? Is there a api ( or any
>> patch ) for it ?
> Memory reads and writes is surely going to generate a huge
> amount of output!
>
> There are various DEBUG_* symbols at the top of exec.c and ioport.c.
> I've only used a few of these:
>
> DEBUG_UNASSIGNED - prints a message when an unmapped page is
> referenced (TCG only, presumably?)
>
> DEBUG_IOPORT - prints a message when any I/O port is referenced
>
> DEBUG_UNUSED_IOPORT - prints a message when a non-emulated I/O port
> is referenced
>
> There are several more if you look at the code.
>
> Rich.
>
When are these functions called : kvm_read_guest_page ,
kvm_read_guest_atomic , kvm_write_guest_page present in kvm_main.c ?
When qemu wants to read/write to a page ? If qemu has to read/write on
the vm's memory ( RAM ) , does the process always involve kvm ?
Thanks ,
Jaspal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-21 3:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-17 18:06 [Qemu-devel] Memory Tracking API Jaspal
2012-05-17 18:47 ` Richard W.M. Jones
2012-05-21 3:28 ` Jaspal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).