From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZADk4-0007Hf-Gf for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZADk1-0007oV-2w for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:51:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZADk0-0007oR-RY for qemu-devel@nongnu.org; Wed, 01 Jul 2015 04:51:36 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 621A9B66A7 for ; Wed, 1 Jul 2015 08:51:36 +0000 (UTC) From: Juan Quintela Date: Wed, 1 Jul 2015 10:51:21 +0200 Message-Id: <1435740693-10839-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH v2 00/12] Migration events + optional sections List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, dgilbert@redhat.com Hi At the end, Daved asked for a couple of things on previous series. [v2] - Ensure that we start in NONE even after failed/canceled migration - move printf's to traces - make sure that we can migrate the new states like guest-panicked (not sure if it is a good idea to enable migrate a guest-panicked, but it is not this series the place to forbid it) - address all comments from Dave and Eric. Please, review. [v1] As the beggining of both series have been accepted, I merged both here. Changes: - answered all comments on list and applied suggested changes - Use migrate_set_state() consistently - we were misusing atomic_cmpxchg(), it didn't matter until now because we were missing only traces, but it showed with events missing. - Reorganized how the migration events are generated, now only on migrate_set_state. Please review. Juan Quintela (12): runstate: Add runstate store runstate: migration allows more transitions now migration: create new section to store global state global_state: Make section optional vmstate: Create optional sections migration: Add configuration section migration: Use cmpxchg correctly migration: ensure we start in NONE state migration: Use always helper to set state migration: No need to call trace_migrate_set_state() migration: create migration event migration: Add migration events on target side docs/qmp/qmp-events.txt | 14 ++++ hw/i386/pc_piix.c | 2 + hw/i386/pc_q35.c | 2 + include/migration/migration.h | 4 ++ include/migration/vmstate.h | 2 + include/sysemu/sysemu.h | 1 + migration/migration.c | 157 ++++++++++++++++++++++++++++++++++++++---- migration/savevm.c | 69 +++++++++++++++++++ migration/vmstate.c | 11 +++ qapi/event.json | 12 ++++ trace-events | 4 ++ vl.c | 21 +++++- 12 files changed, 283 insertions(+), 16 deletions(-) -- 2.4.3