Received: from eggs.gnu.org ([2001:4830:134:3::10]:51626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNfJZ-0005hJ-0Q for qemu-devel@nongnu.org; Mon, 25 Jan 2016 06:28:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNfJY-0006y0-3X for qemu-devel@nongnu.org; Mon, 25 Jan 2016 06:28:08 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:59589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNfJX-0006wK-TA for qemu-devel@nongnu.org; Mon, 25 Jan 2016 06:28:08 -0500 From: Peter Maydell Date: Mon, 25 Jan 2016 11:27:58 +0000 Message-Id: <1453721278-31300-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] cpu: Drop support for non-vmstate CPU migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , patches@linaro.org All of our target CPUs have now been converted from the old-style save/load function migration to use VMState structures instead. We can therefore drop the support for the old cpu_save/cpu_load functions from the core code. Signed-off-by: Peter Maydell --- exec.c | 6 ------ include/qemu-common.h | 6 ------ 2 files changed, 12 deletions(-) diff --git a/exec.c b/exec.c index 7115403..8daa915 100644 --- a/exec.c +++ b/exec.c @@ -662,12 +662,6 @@ void cpu_exec_init(CPUState *cpu, Error **errp) if (qdev_get_vmsd(DEVICE(cpu)) == NULL) { vmstate_register(NULL, cpu_index, &vmstate_cpu_common, cpu); } -#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY) - register_savevm(NULL, "cpu", cpu_index, CPU_SAVE_VERSION, - cpu_save, cpu_load, cpu->env_ptr); - assert(cc->vmsd == NULL); - assert(qdev_get_vmsd(DEVICE(cpu)) == NULL); -#endif if (cc->vmsd != NULL) { vmstate_register(NULL, cpu_index, cc->vmsd, cpu); } diff --git a/include/qemu-common.h b/include/qemu-common.h index 22b010c..f557be7 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.h @@ -330,12 +330,6 @@ bool tcg_enabled(void); void cpu_exec_init_all(void); -/* CPU save/load. */ -#ifdef CPU_SAVE_VERSION -void cpu_save(QEMUFile *f, void *opaque); -int cpu_load(QEMUFile *f, void *opaque, int version_id); -#endif - /* Unblock cpu */ void qemu_cpu_kick_self(void); -- 1.9.1