From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIlDm-0005qM-Dj for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:55:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIlDl-0002DC-FU for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:55:30 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:48098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIlDl-0002D5-8b for qemu-devel@nongnu.org; Tue, 25 Oct 2011 13:55:29 -0400 Received: by bkat2 with SMTP id t2so893157bka.4 for ; Tue, 25 Oct 2011 10:55:28 -0700 (PDT) From: Max Filippov Date: Tue, 25 Oct 2011 21:55:22 +0400 References: <2990903a0cc46441449790bcdb216c9b5c895507.1319550280.git.quintela@redhat.com> In-Reply-To: <2990903a0cc46441449790bcdb216c9b5c895507.1319550280.git.quintela@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201110252155.22224.jcmvbkbc@gmail.com> Subject: Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: aliguori@us.ibm.com, Alexander Graf , qemu-devel@nongnu.org, Michael Walle , Paul Brook , Aurelien Jarno , Richard Henderson > 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 [...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 Thanks. -- Max