[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's |
Date: |
Tue, 25 Oct 2011 10:58:54 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
On 10/25/2011 07:00 AM, Juan Quintela wrote:
> This makes several changes:
> - exports VMStateDescription vmstate_cpu non-static.
> - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined
> - for the architecture that had nothing, it just register the cpu as
> unmigratable.
> - Depending on CPU_SAVE_VERSION we register old/new migration style
>
> Signed-off-by: Juan Quintela <address@hidden>
> CC: Richard Henderson <address@hidden>
> CC: Michael Walle <address@hidden>
> CC: Paul Brook <address@hidden>
> CC: Alexander Graf <address@hidden>
> CC: Aurelien Jarno <address@hidden>
> CC: Max Filippov <address@hidden>
> ---
> exec.c | 2 ++
> hw/hw.h | 2 ++
> target-alpha/machine.c | 12 +-----------
> target-i386/machine.c | 2 +-
> target-lm32/machine.c | 2 +-
> target-m68k/machine.c | 10 ++++++++++
> target-s390x/machine.c | 14 ++++++--------
> target-sh4/machine.c | 10 ++++++++++
> target-xtensa/machine.c | 14 ++++++--------
...
> --- a/target-alpha/machine.c
> +++ b/target-alpha/machine.c
> @@ -68,20 +68,10 @@ static VMStateField vmstate_cpu_fields[] = {
> VMSTATE_END_OF_LIST()
> };
>
> -static const VMStateDescription vmstate_cpu = {
> +const VMStateDescription vmstate_cpu = {
> .name = "cpu",
> .version_id = 1,
> .minimum_version_id = 1,
> .minimum_version_id_old = 1,
> .fields = vmstate_cpu_fields,
> };
> -
> -void cpu_save(QEMUFile *f, void *opaque)
> -{
> - vmstate_save_state(f, &vmstate_cpu, opaque);
> -}
> -
> -int cpu_load(QEMUFile *f, void *opaque, int version_id)
> -{
> - return vmstate_load_state(f, &vmstate_cpu, opaque, version_id);
> -}
Acked-by: Richard Henderson <address@hidden>
r~
- [Qemu-devel] [PATCH 04/25] vmstate: unicore32 don't support cpu migration, (continued)
- [Qemu-devel] [PATCH 04/25] vmstate: unicore32 don't support cpu migration, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 05/25] vmstate: use new cpu style for x86, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 07/25] vmstate: make microblaze cpus not migrateable, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 06/25] vmstate: use new style for lm32 cpus, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's, Juan Quintela, 2011/10/25
- Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's, Max Filippov, 2011/10/25
- Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's,
Richard Henderson <=
- Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's, Michael Walle, 2011/10/25
- [Qemu-devel] [PATCH 08/25] vmstate: port cris cpu to vmstate, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 09/25] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 11/25] vmstate: introduce float64 arrays, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 10/25] vmstate: introduce float32 arrays, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 17/25] vmstate: make incompatible change for sparc, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 20/25] mips: make tlb an embedded struct instead of a pointer, Juan Quintela, 2011/10/25
- [Qemu-devel] [PATCH 24/25] vmstate: port arm cpu, Juan Quintela, 2011/10/25