From: Wei Liu Subject: Re: [PATCH v8 21/21] libxl: add support for migrating HVM guests without a device model Date: Wed, 11 Nov 2015 15:49:22 +0000 Message-ID: <20151111154922.GE10274@zion.uk.xensource.com> References: <1446825955-11842-1-git-send-email-roger.pau@citrix.com> <1446825955-11842-22-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZwXeK-0006kX-0M for xen-devel@lists.xenproject.org; Wed, 11 Nov 2015 15:49:28 +0000 Content-Disposition: inline In-Reply-To: <1446825955-11842-22-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Andrew Cooper , Ian Jackson , Ian Campbell , Wei Liu List-Id: xen-devel@lists.xenproject.org CC Andrew On Fri, Nov 06, 2015 at 05:05:55PM +0100, Roger Pau Monne wrote: > Only some minor libxl changes are needed in order to be able to migrate H= VM > guests without a device model, no hypervisor changes are needed. > = > This change prevents sending the emulator context if the device model > version is set to none. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Ian Campbell > Cc: Wei Liu > --- > Changes since v7: > - Prevent sending the emulator context and xenstore record in > write_emulator_context_record and write_emulator_xenstore_record. > - Error out if an emulator record is received for a no-dm guest. I think this is in line with what you and Andrew discussed in previous version. If Andrew is happy with this, I'm happy with it, too. > = > + if (libxl__device_model_version_running(gc, dss->domid) =3D=3D > + LIBXL_DEVICE_MODEL_VERSION_NONE) { > + emulator_xenstore_record_done(egc, stream); > + return; > + } > + > rc =3D libxl__save_emulator_xenstore_data(dss, &buf, &len); > if (rc) > goto err; > @@ -387,6 +396,7 @@ static void emulator_xenstore_record_done(libxl__egc = *egc, > libxl__stream_write_state *str= eam) > { > libxl__domain_suspend_state *dss =3D stream->dss; > + STATE_AO_GC(stream->ao); > = This is redundant. Wei.