From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uojo2-0004Mm-8v for qemu-devel@nongnu.org; Mon, 17 Jun 2013 20:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uojo1-00078m-5R for qemu-devel@nongnu.org; Mon, 17 Jun 2013 20:29:54 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38613 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uojo0-00078X-V2 for qemu-devel@nongnu.org; Mon, 17 Jun 2013 20:29:53 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 18 Jun 2013 02:29:39 +0200 Message-Id: <1371515385-32203-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH qom-cpu v3 0/6] QOM CPUState migration, next generation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jia Liu , quintela@redhat.com, Michael Roth , Blue Swirl , Anthony Liguori , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Aur=C3=A9lien=20Jarno?= , Richard Henderson Hello, As previously reported, alpha and openrisc had prepared VMStateDescriptio= ns but failed to register them due to lack of CPU_SAVE_VERSION. Now that CPUState is a DeviceState, it was suggested to register the VMSt= ate of new CPUs the same way devices do. They thereby deviate from legacy CPU= s, which register a separate VMStateDescription for the common state. The series still concludes with a patch to prevent further silent migrati= on registration bugs. Regards, Andreas v2 -> v3: * Prepended patch introducing VMSTATE_CPU() macro for vmstate_cpu_common. * Prepended patch adding device_class_set_vmsd(). * Added typo fix patch for cpu_class_set_vmsd(). * Register AlphaCPU and OpenRISCCPU vmsd via DeviceClass instead of CPUCl= ass. Cc: Juan Quintela Cc: Michael Roth Cc: Anthony Liguori Cc: Blue Swirl Cc: Aur=C3=A9lien Jarno Cc: Richard Henderson Cc: Jia Liu Andreas F=C3=A4rber (6): cpu: Fix cpu_class_set_vmsd() documentation cpu: Introduce device_class_set_vmsd() helper cpu: Introduce VMSTATE_CPU() macro for CPUState target-alpha: Register VMStateDescription for AlphaCPU target-openrisc: Register VMStateDescription for OpenRISCCPU cpu: Guard cpu_{save,load}() definitions exec.c | 5 ++--- include/qemu-common.h | 2 ++ include/qom/cpu.h | 37 ++++++++++++++++++++++++++++++++++++- target-alpha/cpu-qom.h | 4 ++++ target-alpha/cpu.c | 2 ++ target-alpha/machine.c | 28 ++++++++++++++++------------ target-openrisc/cpu.c | 1 + target-openrisc/cpu.h | 2 ++ target-openrisc/machine.c | 27 ++++++++++++++++----------- 9 files changed, 81 insertions(+), 27 deletions(-) --=20 1.8.1.4