qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Alexander Graf <agraf@suse.de>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] vm state save/restore question
Date: Wed, 20 Jun 2012 01:11:57 +0200	[thread overview]
Message-ID: <87y5nij3r6.fsf@elfo.mitica> (raw)
In-Reply-To: <1340146833.28143.50.camel@pasglop> (Benjamin Herrenschmidt's message of "Wed, 20 Jun 2012 09:00:33 +1000")

Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Wed, 2012-06-20 at 00:55 +0200, Juan Quintela wrote:
>> 
>> This was going to be my question.
>> 
>> If we can do something like: send hash register, and get a bitmap of
>> the
>> ones that get changed, we should be good.  Perhaps we need something
>> "interesting" like removing old entries (no clue if they got just
>> overwritten, or how they are replaced), and we should be good. 
>
> Right, we can do an initial "snapshot" and have the kernel start
> tracking changes from there. On the final step, we can then request from
> the kernel a new snapshot with a dirty bitmap.
>
> Or we can be even simpler, just do two snapshots and have qemu diff them
> itself :-)
>
> I am confident I can come up with something as far as the kernel and
> qemu <-> kernel interface goes. I need to get my head around the details
> on how to implement that two stage save process in qemu though and the
> corresponding restore which will need to read both snapshots and apply
> the diff before shooting it back to the kernel.
>
> BTW. Does migration in pure qemu (full system emu) works similarily, ie,
> two stage ? If it does I can easily prototype everything there.

It does, but I have no clue how the hashed page tables are implemented
on ppc, i.e. if there is anything specific for bare metal.  Alex?

Later, Juan.

  reply	other threads:[~2012-06-19 23:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-09 10:53 [Qemu-devel] vm state save/restore question Benjamin Herrenschmidt
2012-06-09 11:34 ` Benjamin Herrenschmidt
2012-06-09 11:37   ` Andreas Färber
2012-06-19 14:07   ` Alexander Graf
2012-06-19 14:59     ` Juan Quintela
2012-06-19 17:16       ` Andreas Färber
2012-06-19 20:30       ` Benjamin Herrenschmidt
2012-06-19 21:00         ` Alexander Graf
2012-06-19 21:13           ` Benjamin Herrenschmidt
2012-06-19 21:48             ` Alexander Graf
2012-06-19 21:51               ` Benjamin Herrenschmidt
2012-06-19 22:27                 ` Alexander Graf
2012-06-19 22:32                   ` Benjamin Herrenschmidt
2012-06-19 22:55           ` Juan Quintela
2012-06-19 23:00             ` Benjamin Herrenschmidt
2012-06-19 23:11               ` Juan Quintela [this message]
2012-06-19 23:28                 ` Benjamin Herrenschmidt
2012-06-19 23:30                   ` Alexander Graf
2012-06-19 23:52                     ` Benjamin Herrenschmidt
2012-06-20  0:05                       ` Alexander Graf

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=87y5nij3r6.fsf@elfo.mitica \
    --to=quintela@redhat.com \
    --cc=agraf@suse.de \
    --cc=benh@kernel.crashing.org \
    --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 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).