From: Pavel Fedin <p.fedin@samsung.com>
To: quintela@redhat.com
Cc: 'Amit Shah' <amit.shah@redhat.com>,
qemu-devel@nongnu.org, 'Luiz Capitulino' <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] migration: Introduce migration_in_completion()
Date: Wed, 28 Oct 2015 14:36:48 +0300 [thread overview]
Message-ID: <007101d11174$ef2b83e0$cd828ba0$@samsung.com> (raw)
In-Reply-To: <877fm7b9h2.fsf@neno.neno>
Hello!
> Power people have a similar problem with its hashed page tables, they
> integrated their own save_live implementation because they are too big
> for the last stage. You can look there for inspiration.
I examined their code. Interesting, and, indeed, it opens up a way for decreasing downtime by implementing iterative migration for
the ITS.
However, this is not really what is necessary. This thing aims to produce own data chunk, and it's not good for ITS. ITS already
stores everything in system RAM, therefore savevm_ram_handlers take perfect care about these data. The only thing to do is to tell
the ITS to dump its state into RAM. This is what i currently do using migration_in_completion().
An alternate, perhaps better approach, would be to be able to hook into ram_save_iterate() and ram_save_complete(). This way we
could kick ITS right before attempting to migrate RAM.
Could we extend the infrastructure so that:
a) Handlers are prioritized, and we can determine order of their execution?
b) We can choose whether our handlers actually produce extra chunk or not?
OTOH, what i've done is actually a way to hook up into save_live_complete before any other registered handlers get executed. What
is missing is one more notifier_list_notify() call right before qemu_savevm_state_iterate(), and a corresponding
migration_is_active() checker.
What do you think ?
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
next prev parent reply other threads:[~2015-10-28 11:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 11:01 [Qemu-devel] [PATCH] migration: Introduce migration_in_completion() Pavel Fedin
2015-10-27 13:41 ` Juan Quintela
2015-10-27 14:03 ` Pavel Fedin
2015-10-28 9:58 ` Juan Quintela
2015-10-28 10:27 ` Pavel Fedin
2015-10-28 11:36 ` Pavel Fedin [this message]
2015-10-29 12:20 ` Juan Quintela
2015-10-29 13:36 ` Pavel Fedin
2015-10-29 14:37 ` Juan Quintela
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='007101d11174$ef2b83e0$cd828ba0$@samsung.com' \
--to=p.fedin@samsung.com \
--cc=amit.shah@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@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).