qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] cpu: cpu_save/cpu_load is no more
@ 2016-01-19 12:08 Paolo Bonzini
  2016-01-30  9:36 ` Michael Tokarev
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2016-01-19 12:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

Everything has been converted to vmstate.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 exec.c                | 6 ------
 include/qemu-common.h | 6 ------
 2 files changed, 12 deletions(-)

diff --git a/exec.c b/exec.c
index 0d8ca3f..35705a1 100644
--- a/exec.c
+++ b/exec.c
@@ -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);
     }
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);
 
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] cpu: cpu_save/cpu_load is no more
  2016-01-19 12:08 [Qemu-devel] [PATCH] cpu: cpu_save/cpu_load is no more Paolo Bonzini
@ 2016-01-30  9:36 ` Michael Tokarev
  2016-01-30 15:16   ` Peter Maydell
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2016-01-30  9:36 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: qemu-trivial

19.01.2016 15:08, Paolo Bonzini wrote:
> Everything has been converted to vmstate.

Applied to -trivial, thanks!

/mjt\

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] cpu: cpu_save/cpu_load is no more
  2016-01-30  9:36 ` Michael Tokarev
@ 2016-01-30 15:16   ` Peter Maydell
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2016-01-30 15:16 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: QEMU Trivial, Paolo Bonzini, QEMU Developers

On 30 January 2016 at 09:36, Michael Tokarev <mjt@tls.msk.ru> wrote:
> 19.01.2016 15:08, Paolo Bonzini wrote:
>> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-30 15:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-19 12:08 [Qemu-devel] [PATCH] cpu: cpu_save/cpu_load is no more Paolo Bonzini
2016-01-30  9:36 ` Michael Tokarev
2016-01-30 15:16   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).