* [Qemu-devel] Re: Build failure of Git HEAD
[not found] <201004010822.o318MTTm008165@bandsman.co.uk>
@ 2010-04-01 8:45 ` Nigel Horne
2010-04-01 18:37 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Nigel Horne @ 2010-04-01 8:45 UTC (permalink / raw)
To: qemu-devel
> just for the record: a build of QEMU from HEAD with
> '--enable-io-thread' fails. In "vl.c" "qemu_system_ready" is used but
> not declared any longer.
>
I noticed this yesterday evening. The thing is that qemu_system_ready
is defined in cpus.c, but it's a static variable.
> Dirk
>
>
-Nigel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Re: Build failure of Git HEAD
2010-04-01 8:45 ` [Qemu-devel] Re: Build failure of Git HEAD Nigel Horne
@ 2010-04-01 18:37 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-04-01 18:37 UTC (permalink / raw)
To: Nigel Horne; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
On 4/1/10, Nigel Horne <njh@bandsman.co.uk> wrote:
>
>
> > just for the record: a build of QEMU from HEAD with
> > '--enable-io-thread' fails. In "vl.c" "qemu_system_ready" is used but
> > not declared any longer.
> >
> >
> I noticed this yesterday evening. The thing is that qemu_system_ready is
> defined in cpus.c, but it's a static variable.
The attached patch fixes build. But I don't know if moving
qemu_system_ready = 1; qemu_cond_broadcast(); a bit earlier is safe.
[-- Attachment #2: 0001-Fix-build-when-configured-with-enable-io-thread.patch --]
[-- Type: text/x-diff, Size: 2071 bytes --]
From 7c54fa959cdece6dc3fe8a3cabac5a783e4f1094 Mon Sep 17 00:00:00 2001
From: Blue Swirl <blauwirbel@gmail.com>
Date: Thu, 1 Apr 2010 18:33:23 +0000
Subject: [PATCH] Fix build when configured with --enable-io-thread
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
cpus.c | 9 +++++++++
cpus.h | 1 +
vl.c | 13 +------------
3 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/cpus.c b/cpus.c
index a2e0642..09f3ebe 100644
--- a/cpus.c
+++ b/cpus.c
@@ -33,6 +33,12 @@
#include "cpus.h"
+#ifdef SIGRTMIN
+#define SIG_IPI (SIGRTMIN+4)
+#else
+#define SIG_IPI SIGUSR1
+#endif
+
static CPUState *cur_cpu;
static CPUState *next_cpu;
@@ -305,6 +311,9 @@ int qemu_init_main_loop(void)
{
int ret;
+ qemu_system_ready = 1;
+ qemu_cond_broadcast(&qemu_system_cond);
+
ret = qemu_event_init();
if (ret)
return ret;
diff --git a/cpus.h b/cpus.h
index 67c9a3b..e72084b 100644
--- a/cpus.h
+++ b/cpus.h
@@ -10,6 +10,7 @@ void pause_all_vcpus(void);
extern int smp_cores;
extern int smp_threads;
extern int debug_requested;
+extern int vmstop_requested;
void vm_state_notify(int running, int reason);
bool tcg_cpu_exec(void);
void set_numa_modes(void);
diff --git a/vl.c b/vl.c
index 6768cf1..03fccbf 100644
--- a/vl.c
+++ b/vl.c
@@ -245,12 +245,6 @@ int kvm_allowed = 0;
uint32_t xen_domid;
enum xen_mode xen_mode = XEN_EMULATE;
-#ifdef SIGRTMIN
-#define SIG_IPI (SIGRTMIN+4)
-#else
-#define SIG_IPI SIGUSR1
-#endif
-
static int default_serial = 1;
static int default_parallel = 1;
static int default_virtcon = 1;
@@ -1781,7 +1775,7 @@ static int reset_requested;
static int shutdown_requested;
static int powerdown_requested;
int debug_requested;
-static int vmstop_requested;
+int vmstop_requested;
int qemu_shutdown_requested(void)
{
@@ -2019,11 +2013,6 @@ static void main_loop(void)
{
int r;
-#ifdef CONFIG_IOTHREAD
- qemu_system_ready = 1;
- qemu_cond_broadcast(&qemu_system_cond);
-#endif
-
for (;;) {
do {
bool nonblocking = false;
--
1.5.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-01 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201004010822.o318MTTm008165@bandsman.co.uk>
2010-04-01 8:45 ` [Qemu-devel] Re: Build failure of Git HEAD Nigel Horne
2010-04-01 18:37 ` Blue Swirl
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).