Received: from eggs.gnu.org ([140.186.70.92]:37826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIjIE-0004v0-1m for qemu-devel@nongnu.org; Tue, 25 Oct 2011 11:51:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIjIC-0005rU-EB for qemu-devel@nongnu.org; Tue, 25 Oct 2011 11:51:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIjIC-0005qu-5i for qemu-devel@nongnu.org; Tue, 25 Oct 2011 11:51:56 -0400 From: Juan Quintela In-Reply-To: <4EA6D6C4.1050108@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Tue, 25 Oct 2011 17:33:24 +0200") References: <2990903a0cc46441449790bcdb216c9b5c895507.1319550280.git.quintela@redhat.com> <4EA6D6C4.1050108@suse.de> Date: Tue, 25 Oct 2011 17:50:39 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, Alexander Graf , Max Filippov , Michael Walle , Paul Brook , Aurelien Jarno , Richard Henderson Andreas F=C3=A4rber wrote: > Am 25.10.2011 16:00, schrieb Juan Quintela: >> 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 unm= igratable. >> - Depending on CPU_SAVE_VERSION we register old/new migration style >>=20 >> Signed-off-by: Juan Quintela > > I like that move in general. > >> diff --git a/target-m68k/machine.c b/target-m68k/machine.c >> index e69de29..86b6fe9 100644 >> --- a/target-m68k/machine.c >> +++ b/target-m68k/machine.c >> @@ -0,0 +1,10 @@ >> + >> +#include "hw/hw.h" >> + >> +/* To make this architecture migratable, we need to define cpu state >> + here. Other things need to be done elsewhere */ >> + >> +const VMStateDescription vmstate_cpu =3D { >> + .name =3D "cpu", >> + .unmigratable =3D 1, >> +}; > > Here ... > >> diff --git a/target-sh4/machine.c b/target-sh4/machine.c >> index e69de29..86b6fe9 100644 >> --- a/target-sh4/machine.c >> +++ b/target-sh4/machine.c >> @@ -0,0 +1,10 @@ >> + >> +#include "hw/hw.h" >> + >> +/* To make this architecture migratable, we need to define cpu state >> + here. Other things need to be done elsewhere */ >> + >> +const VMStateDescription vmstate_cpu =3D { >> + .name =3D "cpu", >> + .unmigratable =3D 1, >> +}; > > ... and here you sort-of create new files (empty before) without a > license header. The contents is trivial right now, but it would get a > case for the Wiki trying to figure out what license to put on other > people's code. None of target-*/machine.c files have a license line. I can put the normal boilerplate on them, but I have just transformed them, So .. who should I put as copyright owner? Puting me is (at least) a bit presumptuous, if not just plain false O:-) Later, Juan.