From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVZNi-0004y2-U1 for qemu-devel@nongnu.org; Mon, 27 Jul 2009 19:13:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVZNe-0004wz-Cr for qemu-devel@nongnu.org; Mon, 27 Jul 2009 19:13:22 -0400 Received: from [199.232.76.173] (port=35001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVZNe-0004ww-88 for qemu-devel@nongnu.org; Mon, 27 Jul 2009 19:13:18 -0400 Received: from mx20.gnu.org ([199.232.41.8]:63408) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVZNd-0001Vf-Qi for qemu-devel@nongnu.org; Mon, 27 Jul 2009 19:13:17 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVZNc-0004Sg-Ee for qemu-devel@nongnu.org; Mon, 27 Jul 2009 19:13:16 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e38.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n6RN9nX9025560 for ; Mon, 27 Jul 2009 17:09:49 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n6RNDFMl263512 for ; Mon, 27 Jul 2009 17:13:15 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n6RNDFmT014746 for ; Mon, 27 Jul 2009 17:13:15 -0600 Message-ID: <4A6E348A.4090904@us.ibm.com> Date: Mon, 27 Jul 2009 18:13:14 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20090727201855.GK4776@poweredge.glommer> <1248729471-5403-1-git-send-email-pbonzini@redhat.com> <20090727212923.GO4776@poweredge.glommer> <4A6E1DF5.7090704@us.ibm.com> <20090727231541.GP4776@poweredge.glommer> In-Reply-To: <20090727231541.GP4776@poweredge.glommer> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH alternative] fix migration to obey -S List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Glauber Costa Cc: Paolo Bonzini , qemu-devel@nongnu.org Glauber Costa wrote: > On Mon, Jul 27, 2009 at 04:36:53PM -0500, Anthony Liguori wrote: > >> Glauber Costa wrote: >> >>> Hummm,, those are a little bit weird. I'd expect it to be a characteristic of the >>> source machine, no the destination. IOW, if the machine was running prior to migration, >>> it should be running after it, and if it was stopped prior to migration, it should be >>> stopped after it. >>> >>> >> Whether a guest is running is not part of it's state-IOW, it's not >> visible to the guest whether it's running or not. >> > Can't we then register a savevm function for that? > No, that's the point. Since it's not guest visible, it should not be saved as part of savevm. It's up to the management tools to keep track of whether a VM is stopped or not. When creating the destination node, the user specify whether they want the VM to be stopped. So qemu -incoming ... -S Should translate to: do not automatically run the VM after migration. qemu -incoming ... Will always run the VM after migration regardless of whether the VM was migrated while stopped. -- Regards, Anthony Liguori