From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOtwH-00062u-Fi for qemu-devel@nongnu.org; Thu, 09 Jul 2009 09:45:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOtwC-00060M-Ka for qemu-devel@nongnu.org; Thu, 09 Jul 2009 09:45:29 -0400 Received: from [199.232.76.173] (port=49649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOtwC-000607-Fu for qemu-devel@nongnu.org; Thu, 09 Jul 2009 09:45:24 -0400 Received: from rv-out-0708.google.com ([209.85.198.246]:16542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOtwC-0000gu-4m for qemu-devel@nongnu.org; Thu, 09 Jul 2009 09:45:24 -0400 Received: by rv-out-0708.google.com with SMTP id b17so37379rvf.22 for ; Thu, 09 Jul 2009 06:45:23 -0700 (PDT) Message-ID: <4A55F46F.6060705@codemonkey.ws> Date: Thu, 09 Jul 2009 08:45:19 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/3] move vm stop/start to migrate_set_state References: <1247140059-5034-1-git-send-email-pbonzini@redhat.com> <1247140059-5034-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1247140059-5034-3-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini wrote: > With this patch, the state machine grows a new state, COMPLETING. > This new state corresponds to the VM being stopped while migration > is finalized. Stopping and starting the machine is driven > exclusively by the state machine mechanisms. > > Two rare bugs are fixed. The first is a race; the VM used to remain > stopped if a migration was canceled exactly in what corresponds > to the new COMPLETING state. You cannot cancel during the stopped state. When you enter into the final stage, you no longer process monitor input. > A bit worse is that if an error occurred > exactly during the final stage (for example due to disk full) > the VM was unconditionally restarted, even if it was paused before > the beginning of the migration. > How does the disk become full during the final stage? The guest isn't running. Regards, Anthony Liguori