qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro)
@ 2011-09-23 16:39 Lluís Vilanova
  2011-09-23 16:39 ` [Qemu-devel] [PATCH v3 2/3] trace: Add "vcpu_init" event Lluís Vilanova
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lluís Vilanova @ 2011-09-23 16:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jan Kiszka, Stefan Hajnoczi

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   |   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 =
 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..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ís Vilanova <vilanova@ac.upc.edu>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * 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;
 };
 
-#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;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-06 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 16:39 [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova
2011-09-23 16:39 ` [Qemu-devel] [PATCH v3 2/3] trace: Add "vcpu_init" event Lluís Vilanova
2011-09-23 16:39 ` [Qemu-devel] [PATCH v3 3/3] trace: Add "vcpu_reset" event Lluís Vilanova
2011-12-06 15:52 ` [Qemu-devel] [PATCH v3 1/3] Make 'qemu_init_vcpu' a function (instead of a macro) Lluís Vilanova

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).