Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4c7N-00038i-HF for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:45:37 -0400 Received: from [140.186.70.92] (port=35070 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4c7J-00034X-Sj for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4c7E-0003vX-8H for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:45:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30221) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4c7D-0003vO-BE for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:45:28 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3LFjQmu024348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Apr 2010 11:45:26 -0400 From: Juan Quintela In-Reply-To: <20100421120838.4aa8428c@redhat.com> (Luiz Capitulino's message of "Wed, 21 Apr 2010 12:08:38 -0300") References: <1271797792-24571-1-git-send-email-lcapitulino@redhat.com> <1271797792-24571-5-git-send-email-lcapitulino@redhat.com> <4BCEFD70.70100@redhat.com> <20100421120838.4aa8428c@redhat.com> Date: Wed, 21 Apr 2010 17:45:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 04/22] savevm: do_loadvm(): Always resume the VM List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Kevin Wolf , qemu-devel@nongnu.org, armbru@redhat.com Luiz Capitulino wrote: > On Wed, 21 Apr 2010 15:28:16 +0200 > Kevin Wolf wrote: > >> Am 20.04.2010 23:09, schrieb Luiz Capitulino: >> > do_loadvm(), which implements the 'loadvm' Monitor command, pauses >> > the emulation to load the saved VM, however it will only resume >> > it if the loading succeeds. >> > >> > In other words, if the user issues 'loadvm' and it fails, the >> > end result will be an error message and a paused VM. >> > >> > This seems an undesirable side effect to me because, most of the >> > time, if a Monitor command fails the best thing we can do is to >> > leave the VM as it were before the command was executed. >> >> I completely agree with Juan here, this is broken. > > Yeah, it's an RFC. I decided to send it as is because I needed feedback as > this series is a snowball. > >> If you could leave the VM as it was before, just like you describe >> above, everything would be okay. But in fact you can't tell where the >> error occurred. You may still have the old state; or you may have loaded >> the snapshot on one disk, but not on the other one; or you may have >> loaded snapshots for all disks, but only half of the devices. >> >> We must not run a machine in such an unknown state. I'd even go further >> and say that after a failed loadvm we must even prevent that a user uses >> the cont command to resume manually. > > Maybe 'info status' should have a specific status for this too. > > (Assuming we don't want to radically call exit(1)). I tried a variation of this in the past, and was not a clear agreement. Basically, after a working migration to other host, you don't want to allow "cont" on the source node (it target has ever changed anything, it would give disk corruption). But my suggestion to disable "cont" after that got complains that people wanted a "I_know_what_I_am_doing_cont". (not the real syntax). Perhaps it is time to revise this issue? Later, Juan.