From: Alexander Graf <agraf@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: "Passera, Pablo R" <pablo.r.passera@intel.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Checking guest memory pages changes from host userspace
Date: Sun, 21 Jun 2009 20:46:49 +0200 [thread overview]
Message-ID: <3574F699-DC93-41EB-9ABC-F246CCE28203@suse.de> (raw)
In-Reply-To: <4A3E5706.9070408@redhat.com>
On 21.06.2009, at 17:51, Avi Kivity <avi@redhat.com> wrote:
> On 06/19/2009 09:09 PM, Passera, Pablo R wrote:
>> Hi list,
>> I need to monitor some guest memory pages. I need to know
>> if the information in these pages was changed. For this, I was
>> thinking to mark the guest memory pages in some way (like write
>> protecting them) so a page fault is generated. Then manage this
>> fault inside qemu. Is there some API in libkvm that allows me to do
>> this?
>>
>
> You can use the dirty memory logging API. vga uses this to track
> which regions of the screen have changed, and live migration uses it
> to allow the guest to proceed while copying its memory to the other
> node. It works exactly by write protecting guest memory and
> trapping the resultant fault.
I stumbled across this on my ppc implementation: Is there an obvious
reason we don't use the pte's dirty bit?
I don't know which operation is more frequent - writing into dirty
mapped memory or reading the dirty map. And I have no idea how long it
would take to find out dirty pages...
Alex
>
> --
> error compiling committee.c: too many arguments to function
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-06-21 18:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 18:09 Checking guest memory pages changes from host userspace Passera, Pablo R
2009-06-20 6:47 ` Amit Shah
2009-06-21 15:51 ` Avi Kivity
2009-06-21 18:46 ` Alexander Graf [this message]
2009-06-21 20:01 ` Avi Kivity
2009-06-22 8:50 ` Avi Kivity
2009-06-22 9:42 ` Alexander Graf
2009-06-22 9:48 ` Avi Kivity
[not found] ` <DC72E7E7-2494-48BF-96C6-F543A29888B1@suse.de>
2009-06-22 11:38 ` Avi Kivity
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=3574F699-DC93-41EB-9ABC-F246CCE28203@suse.de \
--to=agraf@suse.de \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pablo.r.passera@intel.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