From: Avi Kivity <avi@redhat.com>
To: quintela@redhat.com
Cc: Umesh Deshpande <udeshpan@redhat.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [RFC] New thread for the VM migration
Date: Thu, 14 Jul 2011 19:07:28 +0300 [thread overview]
Message-ID: <4E1F1440.4080409@redhat.com> (raw)
In-Reply-To: <m339i87tce.fsf@neno.neno>
On 07/14/2011 06:52 PM, Juan Quintela wrote:
> >
> >> Notice that hotplug/unplug during
> >> migration don't make a lot of sense anyways.
> >
> > That's completely wrong. Hotplug is a guest/end-user operation;
> > migration is a host/admin operation. The two don't talk to each other
> > at all - if the admin (usually a program) wants to migrate at the same
> > time the user wants to hotplug, which one gets the bad news? Who will
> > actually test the combination?
>
> I am not sure if it makes sense, but to be able to allow hotplug during
> migration we need to change lots of things. It don't work today either,
> so I think it is excesive to fix that on this patch.
Reluctantly agree. We're adding another obstacle that we have to remove
later, which I don't really like, but that's life.
> >
> > You are right. ram_list _is_ volatile though (but we can't really
> > change it these days during migration).
>
> I have think a little bit about hotplug& migration, and haven't arraive
> to a nice solution.
>
> - Disabling hotplug/unplug during migration: easy to do. But it is not
> exactly user friendly (we are here).
>
> - Allowing hotplug during migration. Solutions:
> * allow the transfer of hotplug events over the migration protocol
> (make it even more complicated, but not too much. The big problem is
> if the hotplug succeeds on the source but not the destination, ...)
If we transfer only the guest side of the device (and really, that's the
only thing we can do), then nothing should ever fail, except for guest
memory allocation. If that happens, kill the target. The source should
recover.
Maybe we can do this via a magic subsection whose contents are the
hotplug event.
> * migrate the device list in stage 3: it fixes the hotplug problem
> nicely, but it makes the interesting problem that after migrating
> all the ram, we can find "interesting" problems like: disk not
> readable, etc. Not funny.
Yes, that's not very nice.
> *<insert your nice idea here>
>
> As far as I can see, if we sent the device list 1st, we can create the
> full machine at destination, but hotplug is "interesting" to manage.
> Sending the device list late, solve hotplug, but allows errors after
> migrating all memory (also known as, why don't you told me *sooner*).
>
> No clue about a nice& good solution. For now, I think that we should
> go with disabling hotplug/unplug during migration, until we get a better
> idea.
Yes.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-07-14 16:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <539565793.1312156.1310595395982.JavaMail.root@zmail01.collab.prod.int.phx2.redhat.com>
2011-07-13 23:34 ` [Qemu-devel] [RFC] New thread for the VM migration Umesh Deshpande
2011-07-14 7:14 ` Umesh Deshpande
2011-07-14 8:36 ` Avi Kivity
2011-07-14 9:09 ` Stefan Hajnoczi
2011-07-14 12:30 ` Anthony Liguori
2011-07-14 12:32 ` Avi Kivity
2011-07-14 15:30 ` Juan Quintela
2011-07-14 15:44 ` Avi Kivity
2011-07-14 15:52 ` Juan Quintela
2011-07-14 16:07 ` Avi Kivity [this message]
2011-07-15 7:59 ` Paolo Bonzini
2011-07-15 21:09 ` Anthony Liguori
2011-07-17 8:39 ` Avi Kivity
2011-07-18 7:08 ` Markus Armbruster
2011-07-14 16:49 ` Anthony Liguori
2011-07-14 16:59 ` 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=4E1F1440.4080409@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=udeshpan@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).