qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 3/3] Make cpu_single_env thread-local


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 3/3] Make cpu_single_env thread-local
Date: Thu, 27 Oct 2011 17:12:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 10/27/2011 05:10 PM, Andreas Färber wrote:
Am 27.10.2011 13:37, schrieb Peter Maydell:
From: Paolo Bonzini<address@hidden>

Make cpu_single_env thread-local. This fixes a regression
in handling of multi-threaded programs in linux-user mode
(bug 823902).

Signed-off-by: Paolo Bonzini<address@hidden>
[Peter Maydell: rename tls_cpu_single_env to cpu_single_env]
Signed-off-by: Peter Maydell<address@hidden>
---
  cpu-all.h |    4 +++-
  exec.c    |    2 +-
  2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpu-all.h b/cpu-all.h
index 42a5fa0..5f47ab8 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -20,6 +20,7 @@
  #define CPU_ALL_H

  #include "qemu-common.h"
+#include "qemu-tls.h"
  #include "cpu-common.h"

  /* some important defines:
[8<]

Is there a reason not to include this from qemu-common.h? To avoid
accidental use in unsuited cases? If so, add an explicit comment to
either qemu-common.h or Jan's comment in qemu-tls.h to avoid someone
doing such a cleanup/simplification patch?

I think we're evolving towards having qemu-common.h as a common place for system header inclusions, but not really for QEMU-specific headers.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]