Received: from eggs.gnu.org ([2001:4830:134:3::10]:44326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYGAP-0005NM-9p for qemu-devel@nongnu.org; Thu, 10 Apr 2014 10:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYGAJ-0004PX-2m for qemu-devel@nongnu.org; Thu, 10 Apr 2014 10:41:25 -0400 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) From: Alexander Graf In-Reply-To: <5346AC43.2060600@ozlabs.ru> Date: Thu, 10 Apr 2014 16:41:15 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7CC94F60-7580-4986-9026-7C16262F5778@suse.de> References: <1395888071-28677-1-git-send-email-aik@ozlabs.ru> <53341B8F.7040904@suse.de> <53341E41.7050101@ozlabs.ru> <533422AB.7080106@ozlabs.ru> <53435036.9020901@ozlabs.ru> <53468A29.50404@suse.de> <5346AC43.2060600@ozlabs.ru> Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: Add @cpu_dt_id into migration stream List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Peter Maydell , Juan Quintela , "qemu-ppc@nongnu.org" , =?iso-8859-1?Q?Andreas_F=E4rber?= , QEMU Developers On 10.04.2014, at 16:35, Alexey Kardashevskiy wrote: > On 04/10/2014 10:10 PM, Alexander Graf wrote: >>=20 >> On 08.04.14 03:26, Alexey Kardashevskiy wrote: >>> On 03/28/2014 12:07 AM, Alexey Kardashevskiy wrote: >>>> On 03/27/2014 11:57 PM, Peter Maydell wrote: >>>>> On 27 March 2014 12:49, Alexey Kardashevskiy = wrote: >>>>>> On 03/27/2014 11:37 PM, Andreas F=E4rber wrote: >>>>>>> Am 27.03.2014 03:41, schrieb Alexey Kardashevskiy: >>>>>>>> This should prevent the destination guest from misbehaving when >>>>>>>> the threads number is different in "-smp" command. >>>>>>> Sorry, I don't understand. When migrating, surely -smp needs to = be the >>>>>>> same on source and destination, so how can they differ? >>>>>>=20 >>>>>> The idea is that "-smp" does not migrate and if we run source and >>>>>> destination guests with different numbers in -smp, we end up with = weird >>>>>> machine >>>>> Yes, so don't do that. As I understand it: >>>>> (1) if you don't run QEMU with the exact same command line >>>>> and config at both ends then migration won't work >>>>> (2) we don't guarantee to detect and cleanly fail if you >>>>> don't do (1) >>>>>=20 >>>>> It would probably be nice if we did detect config mismatches, >>>> Yep, we do not send the device tree (as libvirt does). Pure command = line >>>> matching won't work. >>>>=20 >>>>> but that seems to me like a problem we should be addressing >>>>> more globally than just for one particular config item for >>>>> one particular target... >>>=20 >>> Ok. So. Let's assume I want to implement migration of "-smp" = parameters. >>> What would be the correct way of doing this in terms of the current = QOM >>> principles? Thanks. >>=20 >> You don't. The migration protocol doesn't migrate configuration. If = you >> want to start to transfer VM configuration (which I'd be all in for), = do it >> properly and transfer _all_ configuration. >=20 >=20 > Then what is the purpose of many, many VMSTATE_.*_EQUAL? Probably legacy from old vmstate layouts. > And I do not want to send configuration by the proposed patch, I want = to > make sure that the new guest is able to continue. Why exactly is this = bad? It's not bad, but we should solve this properly, not one field at a = time. Alex