Received: from eggs.gnu.org ([140.186.70.92]:39635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXxKJ-0008NU-BH for qemu-devel@nongnu.org; Tue, 06 Dec 2011 10:53:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXxKE-0005ma-Nk for qemu-devel@nongnu.org; Tue, 06 Dec 2011 10:53:03 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:60920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXxKE-0005mA-Bf for qemu-devel@nongnu.org; Tue, 06 Dec 2011 10:52:58 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20110923163908.7646.87389.stgit@ginnungagap.bsc.es> Date: Tue, 06 Dec 2011 16:52:46 +0100 In-Reply-To: <20110923163908.7646.87389.stgit@ginnungagap.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Fri, 23 Sep 2011 18:39:08 +0200") Message-ID: <87fwgxzohd.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Stefan Hajnoczi Llu=C3=ADs Vilanova writes: > Implementation with 'CONFIG_USER_ONLY' is moved into new file 'cpus-user.= c'. Ping > Signed-off-by: Llu=C3=ADs Vilanova > --- > Makefile.objs | 1 + > cpus-user.c | 15 +++++++++++++++ > qemu-common.h | 4 ---- > 3 files changed, 16 insertions(+), 4 deletions(-) > create mode 100644 cpus-user.c > diff --git a/Makefile.objs b/Makefile.objs > index 8afed3d..0656991 100644 > --- a/Makefile.objs > +++ b/Makefile.objs > @@ -177,6 +177,7 @@ user-obj-y =3D > user-obj-y +=3D envlist.o path.o > user-obj-y +=3D tcg-runtime.o host-utils.o > user-obj-y +=3D cutils.o cache-utils.o > +user-obj-y +=3D cpus-user.o > user-obj-y +=3D $(trace-obj-y) =20 > ###################################################################### > diff --git a/cpus-user.c b/cpus-user.c > new file mode 100644 > index 0000000..50e45ce > --- /dev/null > +++ b/cpus-user.c > @@ -0,0 +1,15 @@ > +/* > + * Implementation of routines in "cpus.c" when compiling for CONFIG_USER= _ONLY. > + * > + * Copyright (C) 2011 Llu=C3=ADs Vilanova > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or la= ter. > + * See the COPYING file in the top-level directory. > + */ > + > +#include "qemu-common.h" > + > + > +void qemu_init_vcpu(void *env) > +{ > +} > diff --git a/qemu-common.h b/qemu-common.h > index 404c421..7cda162 100644 > --- a/qemu-common.h > +++ b/qemu-common.h > @@ -296,11 +296,7 @@ struct qemu_work_item { > int done; > }; =20 > -#ifdef CONFIG_USER_ONLY > -#define qemu_init_vcpu(env) do { } while (0) > -#else > void qemu_init_vcpu(void *env); > -#endif =20 > typedef struct QEMUIOVector { > struct iovec *iov; --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth