Skip to contentSkip to conversation

cpu: cpu_save/cpu_load is no more

PATCH Applied Paolo Bonzini 3 participants 3 messages Jan 19, 2016 – Jan 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpu: cpu_save/cpu_load is no more

Everything has been converted to vmstate.

---
 exec.c                | 6 ------
 include/qemu-common.h | 6 ------
 2 files changed, 12 deletions(-)
exec.c +0 -6
index 0d8ca3f..35705a1 100644
@@ -628,12 +628,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);
     }
include/qemu-common.h +0 -6
index 22b010c..f557be7 100644
@@ -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);
 
Signature · 1 line
2.5.0
#1 lore raw
Quoted 1 line · Paolo Bonzini

Everything has been converted to vmstate.

Applied to -trivial, thanks!

/mjt\

#2 lore raw
Quoted 4 lines · Michael Tokarev
Quoted 1 line · Paolo Bonzini

Everything has been converted to vmstate.

Applied to -trivial, thanks!

Ah, I missed that Paolo had sent out this patch before me (my version is http://patchwork.ozlabs.org/patch/572694/ but a week later...)

thanks
-- PMM