From: Anthony Liguori <aliguori@cs.utexas.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Tracking memory dirtying in QEMU
Date: Wed, 17 Jan 2007 19:23:05 -0600 [thread overview]
Message-ID: <45AECBF9.1090209@cs.utexas.edu> (raw)
Howdy,
I've been working on migration for QEMU and have run into a snag. I've
got a non-live migration patch that works quite happily[1]. I modified
the save/restore code to not seek at all, and then basically pipe a save
over a pipe to a subprocess (usually, ssh).
Conceptually, adding support for live migration is really easy. All I
think I need to do is extend the current code, to have a pre-save hook
that is activated before the VM is stopped. This hook will be called
until it says it's done and then the rest of the save/load handlers are
invoked. At first, I'm just going to do a pre-save handler for RAM
which should significantly reduce the amount of down time. I think the
only other device we'll have to handle specially is the VGA memory but
I'm happy to ignore that for now.
So, all I really need is to be able to track which pages are dirtied. I
also need the a method to reset the dirty map.
I started looking at adding another map like phys_ram_dirty. That seems
to work for some of the IO_MEM_RAM pages, but not all. My initial
thought is that all memory operations should go through one of the
st[bwl]_phys functions but that doesn't seem to be the case.
Can anyone provide me with some advice on how to do this? Am I right in
assuming that all IO will go through some function?
[1] http://hg.codemonkey.ws/qemu-pq/?f=758c26c82f52;file=qemu-migration.diff
Thanks,
Anthony Liguori
next reply other threads:[~2007-01-18 1:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-18 1:23 Anthony Liguori [this message]
2007-01-18 19:05 ` [Qemu-devel] Tracking memory dirtying in QEMU Fabrice Bellard
2007-01-18 23:54 ` Anthony Liguori
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=45AECBF9.1090209@cs.utexas.edu \
--to=aliguori@cs.utexas.edu \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.