From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhfU7-00045y-8X for qemu-devel@nongnu.org; Fri, 24 Oct 2014 10:04:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhfU3-0001i2-1n for qemu-devel@nongnu.org; Fri, 24 Oct 2014 10:04:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhfU2-0001hP-QM for qemu-devel@nongnu.org; Fri, 24 Oct 2014 10:04:50 -0400 Message-ID: <544A5C6E.6090206@redhat.com> Date: Fri, 24 Oct 2014 08:04:30 -0600 From: Eric Blake MIME-Version: 1.0 References: <1414134377-19665-1-git-send-email-wency@cn.fujitsu.com> <1414134377-19665-20-git-send-email-wency@cn.fujitsu.com> In-Reply-To: <1414134377-19665-20-git-send-email-wency@cn.fujitsu.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6qIu8fItvATRrT8xpBOcU9dq1VuirVvVk" Subject: Re: [Qemu-devel] [PATCH 19/18] Introduce "xen-load-devices-state" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang , xen devel Cc: Ian Campbell , Stefano Stabellini , Ian Jackson , Jiang Yunhong , Dong Eddie , qemu-devl , Paolo Bonzini , Yang Hongyang , Lai Jiangshan This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6qIu8fItvATRrT8xpBOcU9dq1VuirVvVk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/24/2014 01:06 AM, Wen Congyang wrote: > Introduce a "xen-load-devices-state" QAPI command that can be used to l= oad > the state of all devices, but not the RAM or the block devices of the > VM. >=20 > We only have hmp commands savevm/loadvm, and qmp commands > xen-save-devices-state. >=20 > We use this new command for COLO: > 1. suspend both primay vm and secondary vm > 2. sync the state > 3. resume both primary vm and secondary vm >=20 > In such case, we need to update all devices's state in any time. >=20 > Signed-off-by: Wen Congyang > Cc: qemu-devl > Cc: Stefano Stabellini > Cc: Paolo Bonzini > --- > qapi-schema.json | 18 ++++++++++++++++++ > qmp-commands.hx | 27 +++++++++++++++++++++++++++ > savevm.c | 36 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 81 insertions(+) >=20 > +# > +# Since: 2.0 > +## > +{ 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} } s/2.0/2.2/ - if you even get it in 2.2 (haven't we already passed soft freeze, but this is a feature addition?) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --6qIu8fItvATRrT8xpBOcU9dq1VuirVvVk 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 iQEcBAEBCAAGBQJUSlxuAAoJEKeha0olJ0NqHBkH/2rJmRkYA6KTMe0MhYJ1y8ts 7EvD/bhvJ1bJklXl3JhWDAxNsP4YrwVR1DXq64R5ve/OAYdOSBN4+bSf8RKAbt84 00oeG9hPaZFUnoGWPlQggH0ckrfVDW5DCvN10WEOf/T+fw9a0Cwxz5W0AHhBva34 jtEngYwDbBJLEpChPBDeSnQo8aOh/LZ38OIhkbMgXy7LFQ3ydYof9hET8cAb7naJ LzKAwy7J4cWiGGEblBRgwHHEPXza4Zym6G5P36ueYTBn1B6BhjiGrZArL1XXPC8J 4YGxvOmjnzyDrykSzLcHL7YlJnN4NKQE75lNC1QtvsiT8ErxTBGfNVLzpSFEOhU= =eUmc -----END PGP SIGNATURE----- --6qIu8fItvATRrT8xpBOcU9dq1VuirVvVk--