> 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 <quint...@redhat.com>
[...snip...] > diff --git a/target-xtensa/machine.c b/target-xtensa/machine.c > index ddeffb2..3f98330 100644 > --- a/target-xtensa/machine.c > +++ b/target-xtensa/machine.c > @@ -26,13 +26,11 @@ > */ > > #include "hw/hw.h" > -#include "hw/boards.h" > > -void cpu_save(QEMUFile *f, void *opaque) > -{ > -} > +/* To make this architecture migratable, we need to define cpu state > + here. Other things need to be done elsewhere */ > > -int cpu_load(QEMUFile *f, void *opaque, int version_id) > -{ > - return 0; > -} > +const VMStateDescription vmstate_cpu = { > + .name = "cpu", > + .unmigratable = 1, > +}; > Acked-by: Max Filippov <jcmvb...@gmail.com> Thanks. -- Max