From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLaxD-0001j4-Le for qemu-devel@nongnu.org; Wed, 11 Feb 2015 12:20:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLax8-0004oi-NK for qemu-devel@nongnu.org; Wed, 11 Feb 2015 12:19:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLax8-0004oc-9V for qemu-devel@nongnu.org; Wed, 11 Feb 2015 12:19:54 -0500 Message-ID: <54DB8F37.2080101@redhat.com> Date: Wed, 11 Feb 2015 10:19:51 -0700 From: Eric Blake MIME-Version: 1.0 References: <1423673184-5903-1-git-send-email-dgilbert@redhat.com> <1423673184-5903-3-git-send-email-dgilbert@redhat.com> In-Reply-To: <1423673184-5903-3-git-send-email-dgilbert@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IBN1EVFWlqfFBIPhJPGPcW67T0aFdlxxk" Subject: Re: [Qemu-devel] [PATCH v2 2/3] Add migrate_incoming List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" , qemu-devel@nongnu.org Cc: quintela@redhat.com, liang.z.li@intel.com, mjt@tls.msk.ru, amit.shah@redhat.com, pbonzini@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IBN1EVFWlqfFBIPhJPGPcW67T0aFdlxxk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/11/2015 09:46 AM, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" >=20 > Add migrate_incoming/migrate-incoming to start an incoming > migration. >=20 > Once a qemu has been started with > -incoming pause >=20 > the migration can be started by issuing: > migrate_incoming uri >=20 > Signed-off-by: Dr. David Alan Gilbert > --- > hmp-commands.hx | 16 ++++++++++++++++ > hmp.c | 14 ++++++++++++++ > hmp.h | 1 + > migration/migration.c | 19 +++++++++++++++++++ > qapi-schema.json | 15 +++++++++++++++ > qmp-commands.hx | 31 ++++++++++++++++++++++++++++++- > 6 files changed, 95 insertions(+), 1 deletion(-) >=20 > +++ b/migration/migration.c > @@ -432,6 +432,25 @@ void migrate_del_blocker(Error *reason) > migration_blockers =3D g_slist_remove(migration_blockers, reason);= > } > =20 > +void qmp_migrate_incoming(const char *uri, Error **errp) > +{ > + Error *local_err =3D NULL; > + > + if (!paused_incoming) { > + error_setg(errp, "-incoming pause is required for migrate_inco= ming"); Might read easier as "'-incoming pause' is required...", but that's minor= =2E Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --IBN1EVFWlqfFBIPhJPGPcW67T0aFdlxxk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU2483AAoJEKeha0olJ0NqfI0H/3h0c5WfZTRo3dagIRRzwud0 tIYry5YyMFbgTWGsHJhC83Kf1CuHd9p1FQRof2eeeee0n1dHUppZSdQTShGb+Fcj Q+Nx4eO/Ds4LneTDFJVGO/0nBtoxQ3AeSiTWi/79iRk7rg9UIeK2+zDEIodl/D+4 Y6kKOSh5lZPSyAeHC4XW/n8xnhdxuCgSMKsu7k+wI1O602q0URppEJn8yoWycUWL ANgjCvDZmmnaJwjGUBLwg/aKPblt55ZD0e5Hcr3ehAAAWDqSS0UGJIwuantyB7G3 4g+6iJ83/0+TNE5LMtoQFQbKB3IG2oncm0chiyKujaB859Gr61feY4iO2xqvGPw= =zQS3 -----END PGP SIGNATURE----- --IBN1EVFWlqfFBIPhJPGPcW67T0aFdlxxk--