qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 6/6] Continue a migrated vm is a bad idea
Date: Thu, 20 Aug 2009 12:28:38 +0300	[thread overview]
Message-ID: <4A8D1746.4050407@redhat.com> (raw)
In-Reply-To: <m3ws4yetq3.fsf@neno.mitica>

On 08/20/2009 12:10 PM, Juan Quintela wrote:
> Avi Kivity<avi@redhat.com>  wrote:
>    
>> On 08/19/2009 05:07 AM, Juan Quintela wrote:
>>      
>>> index ea5c33a..762a9a5 100644
>>> --- a/monitor.c
>>> +++ b/monitor.c
>>> @@ -567,6 +567,11 @@ static void do_cont(Monitor *mon)
>>>    {
>>>        struct bdrv_iterate_context context = { mon, 0 };
>>>
>>> +    if (unlikely(vm_has_migrated)) {
>>> +        monitor_printf(mon, "this vm has migrated to other machine\n");
>>> +        monitor_printf(mon, "You have to load other vm\n");
>>> +        return;
>>> +    }
>>>
>>>        
>> You don't know whether the guest is running on the other side.  It may
>> be that the control program started the other side stopped, and after
>> migration completes decides which side to continue running.
>>      
> Only works if migration suceeded and was done in _non_ autostart node.
>    

Well, you're disabling this method.

> Have to debug this very bug.  User thought that he had done _nothing_
> on the destination side, and that then stoping it, and continue in the
> source side was a good idea.
>
> He didn't understand why he had disk corruption, obviosly qemu had a
> bug.  I haven't found a better approach to fix this bug.  If you have a
> better idea of what to do in this case, I am all ears.
>
> The reason that I created the patch is that if the user didn't got it
> right, it gets disk corruption.
>    

There are tons of ways to cause disk corruption running multiple qemus.  
This only solves one of them.

I suggest taking locks on the disk images instead (and adding an option 
not to lock for raw images).

-- 
error compiling committee.c: too many arguments to function

      reply	other threads:[~2009-08-20  9:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19  2:07 [Qemu-devel] [PATCH 0/6] Refactor autostart of machines Juan Quintela
2009-08-19  2:07 ` [Qemu-devel] [PATCH 1/6] Delay sighandler_setup() Juan Quintela
2009-08-19  2:07 ` [Qemu-devel] [PATCH 2/6] We want to autostart on incoming conections Once there, indent surrounded code in qemu style Juan Quintela
2009-08-19  6:56   ` [Qemu-devel] " Paolo Bonzini
2009-08-19  9:18     ` Juan Quintela
2009-08-19 10:54       ` Paolo Bonzini
2009-08-19  2:07 ` [Qemu-devel] [PATCH 3/6] split do_loadvm() into do_loadvm() and load_vmstate() Juan Quintela
2009-08-19  2:07 ` [Qemu-devel] [PATCH 4/6] move do_loadvm() to monitor.c Juan Quintela
2009-08-19  2:07 ` [Qemu-devel] [PATCH 5/6] make load_vmstate() return errors Juan Quintela
2009-08-19  2:07 ` [Qemu-devel] [PATCH 6/6] Continue a migrated vm is a bad idea Juan Quintela
2009-08-20  8:40   ` Avi Kivity
2009-08-20  9:10     ` [Qemu-devel] " Juan Quintela
2009-08-20  9:28       ` Avi Kivity [this message]

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=4A8D1746.4050407@redhat.com \
    --to=avi@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).