qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH v3] introduce on_vcpu


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH v3] introduce on_vcpu
Date: Tue, 01 Sep 2009 02:55:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 08/31/2009 01:35 PM, Glauber Costa wrote:
On Sat, Aug 29, 2009 at 02:22:27AM +0100, Jamie Lokier wrote:
Anthony Liguori wrote:
Glauber Costa wrote:
Since we already keep the tid in the vcpu structure, it seems to make
more sense to ask "am I this vcpu thread" by doing gettid() == env->tid
than by maintaining a new global tls variable.

Note that a tls variable will be much faster than gettid().  Don't
know if you're talking about a hot path.
just to be sure, TLS is not supported on all our linux target hosts, right?

I think it is.

~/devel/gcc/gcc pbonzini$ grep -l SYMBOL_REF_TLS_MODEL config/*/*.c
config/alpha/alpha.c
config/arm/arm.c
config/frv/frv.c
config/i386/i386.c
config/ia64/ia64.c
config/m68k/m68k.c
config/mips/mips.c
config/pa/pa.c
config/rs6000/rs6000.c
config/s390/s390.c
config/sh/sh.c
config/sparc/sparc.c
config/xtensa/xtensa.c

Paolo




reply via email to

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