From: Jaspal <jaspal.iiith@gmail.com>
To: "Richard W.M. Jones" <rjones@redhat.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] Memory Tracking API
Date: Mon, 21 May 2012 08:58:58 +0530 [thread overview]
Message-ID: <4FB9B67A.2020409@gmail.com> (raw)
In-Reply-To: <20120517184744.GA4377@amd.home.annexia.org>
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
prev parent reply other threads:[~2012-05-21 3:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FB9B67A.2020409@gmail.com \
--to=jaspal.iiith@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).