[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext.
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext. |
Date: |
Thu, 29 Jan 2015 15:44:53 +0000 |
On 16 January 2015 at 17:19, <address@hidden> wrote:
> From: KONRAD Frederic <address@hidden>
>
> In order to have one TCGContext per thread and a single TBContext we have to
> extract TBContext from TCGContext.
This seems a bit odd. It's not clear to me what the advantages
are of having one TCGContext per thread but only a single
TBContext (as opposed to either (1) having a single TCGContext
and TBContext with locks protecting against multiple threads
generating code at once, or (2) having each thread have its
own TCGContext and TBContext and completely independent codegen).
Maybe it would help if you sketched out your design in a little
more detail in the cover letter, with emphasis on which data
structures are going to be per-thread and which are going to
be shared (and if so how shared).
(Long term we would want to be able to have multiple
TBContexts to support heterogenous systems where CPUs
might be different architectures or have different views
of physical memory...)
thanks
-- PMM
- [Qemu-devel] [RFC 03/10] replace spinlock by QemuMutex., (continued)
- [Qemu-devel] [RFC 03/10] replace spinlock by QemuMutex., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 07/10] tcg: remove tcg_halt_cond global variable., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 08/10] Drop global lock during TCG code execution, fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 09/10] cpu: remove exit_request global., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext., fred . konrad, 2015/01/16
- Re: [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext.,
Peter Maydell <=
- [Qemu-devel] [RFC 10/10] tcg: switch on multithread., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 02/10] use a different translation block list for each cpu., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 06/10] protect TBContext with tb_lock., fred . konrad, 2015/01/16
- [Qemu-devel] [RFC 04/10] remove unused spinlock., fred . konrad, 2015/01/16