[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] target/i386/translate: use thread-local sto
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] target/i386/translate: use thread-local storage in !user-mode |
Date: |
Tue, 14 Aug 2018 03:34:12 -0400 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
On Tue, Aug 14, 2018 at 08:31:02 +0200, Paolo Bonzini wrote:
> On 14/08/2018 03:38, Emilio G. Cota wrote:
> > Needed for MTTCG.
> >
> > Signed-off-by: Emilio G. Cota <address@hidden>
>
> Why not always use TLS, even in user-mode?
To avoid TLS waste; user-mode uses a single TCGContext,
so a single copy of these variables is all that's needed because
code generation is serialized with a lock.
If in user-mode we just have a few threads it'd be no big deal,
but apps can easily spawn thousands of threads.
E.