Received: from eggs.gnu.org ([2001:4830:134:3::10]:40694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWKpM-00031Q-NQ for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:24:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWKpI-0008F0-5v for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:24:48 -0500 Received: from e06smtp05.uk.ibm.com ([195.75.94.101]:44528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWKpH-0008EU-TH for qemu-devel@nongnu.org; Thu, 18 Feb 2016 04:24:44 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Feb 2016 09:24:40 -0000 Date: Thu, 18 Feb 2016 10:24:32 +0100 From: Greg Kurz Message-ID: <20160218102432.6b236dab@bahia.huguette.org> In-Reply-To: <20160218063639.GB4440@grmbl.mre> References: <20160217160344.840.69108.stgit@bahia.huguette.org> <20160217160628.840.96784.stgit@bahia.huguette.org> <20160218025025.GE15224@voom.fritz.box> <20160218063639.GB4440@grmbl.mre> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/3] migration: allow to suppress configuration section submission List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: Laurent Vivier , Juan Quintela , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , qemu-ppc@nongnu.org, David Gibson On Thu, 18 Feb 2016 12:06:39 +0530 Amit Shah wrote: > On (Thu) 18 Feb 2016 [13:50:25], David Gibson wrote: > > On Wed, Feb 17, 2016 at 05:06:43PM +0100, Greg Kurz wrote: > > > Since the addition of the configuration section in QEMU 2.4, it is impossible > > > to migrate a pseries-2.3 machine back to QEMU 2.3. > > > > > > This patch makes it possible thanks to a new machine property which allows to > > > disable configuration section submission. > > > > > > To disable submission, just add: > > > > > > -machine suppress-config-section=on > > > > > > Alternatively, if the target QEMU version isn't known at startup, this can > > > be done later from the QEMU monitor with: > > > > > > qom-set /machine suppress-config-section on > > > > > > This property won't be automatically set for pseries-2.3 because it would > > > then break backward migration to QEMU 2.4. If automatic behaviour is needed, > > > it is up to the tooling to handle this. > > > > As noted elsewhere, I'd actually be ok with enabling it for > > pseries-2.3. Basically we have to chose whether to work against qemu > > 2.3 or 2.4 out of the box, we can't have both, and it sounds like qemu > > 2.3 is more widely deployed than qemu 2.4. > > > > > > > > Signed-off-by: Greg Kurz > > > > Reviewed-by: David Gibson > > > > I'm not sure whose tree these need to go in via. > > I'd like to see Juan's ack, and I'm fine if you take it via your tree. > > > > Amit > Hi, I also have another option I'd like to submit. Basically, this would be: - introduce a enforce-config-section machine property which allows to override the savevm_state.skip_configuration flag - update pseries-2.3 to skip configuration section by default (like it should have been done in the beginning) It would fix migration from/to QEMU 2.3 of pseries-2.3 without manual intervention. Only migration to/from QEMU 2.4/2.5 would require manual use of the enforce-config-section. Laurent, is this what you had in mind ? -- Greg