From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boxY2-0006dA-JE for qemu-devel@nongnu.org; Tue, 27 Sep 2016 14:56:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boxY0-0000zj-Dm for qemu-devel@nongnu.org; Tue, 27 Sep 2016 14:56:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boxY0-0000zI-7W for qemu-devel@nongnu.org; Tue, 27 Sep 2016 14:56:08 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A7F7A85546 for ; Tue, 27 Sep 2016 18:56:07 +0000 (UTC) From: "Dr. David Alan Gilbert (git)" Date: Tue, 27 Sep 2016 19:56:03 +0100 Message-Id: <1475002565-30170-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Add error reporting in migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, amit.shah@redhat.com, quintela@redhat.com From: "Dr. David Alan Gilbert" At the moment if you use a VMSTATE_*_EQUAL macro and the value doesn't match you just get an error about the section that failed e.g. qemu-system-ppc64: error while loading state for instance 0x0 of device 'cpu' qemu-system-ppc64: load of migration failed: Invalid argument with this pair you get the field and the mismatched values. e.g. qemu-system-ppc64: 8000600FE1FF7AE1 != 8000600FE1FF3A21 qemu-system-ppc64: Failed to load cpu:env.insns_flags qemu-system-ppc64: error while loading state for instance 0x0 of device 'cpu' qemu-system-ppc64: load of migration failed: Invalid argument which is much more likely to point you at the culprit. (Broken out from a larger vmstatification series, the only change since then is the values are printed in hex except for the le case). Dave Dr. David Alan Gilbert (2): migration: report an error giving the failed field migration: Report values for comparisons migration/vmstate.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.7.4