qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
	qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [Qemu-devel] [PATCH 1/3] Make 'qemu_init_vcpu' a function (instead of a macro)
Date: Fri, 23 Sep 2011 11:20:48 -0500	[thread overview]
Message-ID: <4E7CB1E0.20101@codemonkey.ws> (raw)
In-Reply-To: <20110921154221.27648.63402.stgit@ginnungagap.bsc.es>

On 09/21/2011 10:42 AM, Lluís Vilanova wrote:
> Implementation with 'CONFIG_USER_ONLY' is moved into new file 'cpus-user.c'.
>
> Signed-off-by: Lluís Vilanova<vilanova@ac.upc.edu>
> ---
>   Makefile.objs |    1 +
>   cpus-user.c   |    8 ++++++++
>   qemu-common.h |    4 ----
>   3 files changed, 9 insertions(+), 4 deletions(-)
>   create mode 100644 cpus-user.c
>
> diff --git a/Makefile.objs b/Makefile.objs
> index 1c65087..c94abd9 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -177,6 +177,7 @@ user-obj-y =
>   user-obj-y += envlist.o path.o
>   user-obj-y += tcg-runtime.o host-utils.o
>   user-obj-y += cutils.o cache-utils.o
> +user-obj-y += cpus-user.o
>   user-obj-y += $(trace-obj-y)
>
>   ######################################################################
> diff --git a/cpus-user.c b/cpus-user.c
> new file mode 100644
> index 0000000..c1e5e58
> --- /dev/null
> +++ b/cpus-user.c
> @@ -0,0 +1,8 @@
> +/* Implementation of routines in "cpus.c" when compiling for CONFIG_USER_ONLY */
> +
> +#include "qemu-common.h"
> +
> +
> +void qemu_init_vcpu(void *env)
> +{
> +}

New files need a copyright and license.

Regards,

Anthony Liguori

> 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;
>   };
>
> -#ifdef CONFIG_USER_ONLY
> -#define qemu_init_vcpu(env) do { } while (0)
> -#else
>   void qemu_init_vcpu(void *env);
> -#endif
>
>   typedef struct QEMUIOVector {
>       struct iovec *iov;
>
>
>

  parent reply	other threads:[~2011-09-23 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21 15:42 [Qemu-devel] [PATCH 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova
2011-09-21 15:42 ` [Qemu-devel] [PATCH 2/3] trace: Add "vcpu_init" event Lluís Vilanova
2011-09-21 15:42 ` [Qemu-devel] [PATCH 3/3] trace: Add "vcpu_reset" event Lluís Vilanova
2011-09-23 16:20 ` Anthony Liguori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-21 13:23 [Qemu-devel] [PATCH 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova
2011-09-21 13:45 ` Lluís Vilanova

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E7CB1E0.20101@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=jan.kiszka@siemens.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=vilanova@ac.upc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).