All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC 00/10] MultiThread TCG.
@ 2015-01-16 17:19 fred.konrad
  2015-01-16 17:19 ` [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_* fred.konrad
                   ` (10 more replies)
  0 siblings, 11 replies; 62+ messages in thread
From: fred.konrad @ 2015-01-16 17:19 UTC (permalink / raw)
  To: qemu-devel, mttcg
  Cc: peter.maydell, jan.kiszka, mark.burton, agraf, pbonzini, fred.konrad

From: KONRAD Frederic <fred.konrad@greensocs.com>

Hi everybody,

This is the start of our work on TCG multithread.

We send it for comment to be sure we are taking the right direction.
We already discussed the first patch but we keep it for simplicity.

We choice to keep a common tbs array for all VCPU but protect it with the
tb_lock from TBContext. Then for each PageDesc we have a tb list per VCPU.

Known issues:
  * Some random deadlock.
  * qemu_pause_cond is broken we can't quit QEMU.
  * tb_flush is broken we must make sure no VCPU are executing code.

Jan Kiszka (1):
  Drop global lock during TCG code execution

KONRAD Frederic (9):
  target-arm: protect cpu_exclusive_*.
  use a different translation block list for each cpu.
  replace spinlock by QemuMutex.
  remove unused spinlock.
  extract TBContext from TCGContext.
  protect TBContext with tb_lock.
  tcg: remove tcg_halt_cond global variable.
  cpu: remove exit_request global.
  tcg: switch on multithread.

 cpu-exec.c                |  47 +++++++----
 cpus.c                    | 122 +++++++++++----------------
 cputlb.c                  |   5 ++
 exec.c                    |  25 ++++++
 include/exec/exec-all.h   |   4 +-
 include/exec/spinlock.h   |  49 -----------
 include/qom/cpu.h         |   1 +
 linux-user/main.c         |   6 +-
 scripts/checkpatch.pl     |   9 +-
 softmmu_template.h        |   6 ++
 target-arm/cpu.c          |  14 ++++
 target-arm/cpu.h          |   3 +
 target-arm/helper.h       |   3 +
 target-arm/op_helper.c    |  10 +++
 target-arm/translate.c    |   6 ++
 target-i386/mem_helper.c  |  16 +++-
 target-i386/misc_helper.c |  27 +++++-
 tcg/i386/tcg-target.c     |   8 ++
 tcg/tcg.h                 |   3 +-
 translate-all.c           | 208 +++++++++++++++++++++++++++-------------------
 vl.c                      |   6 ++
 21 files changed, 335 insertions(+), 243 deletions(-)
 delete mode 100644 include/exec/spinlock.h

-- 
1.9.0

^ permalink raw reply	[flat|nested] 62+ messages in thread

end of thread, other threads:[~2015-04-28 17:48 UTC | newest]

Thread overview: 62+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-16 17:19 [Qemu-devel] [RFC 00/10] MultiThread TCG fred.konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_* fred.konrad
2015-01-27 14:36   ` Alex Bennée
2015-01-29 15:17   ` Peter Maydell
2015-02-02  8:31     ` Frederic Konrad
2015-02-02  8:36       ` Peter Maydell
2015-02-26 18:09     ` Frederic Konrad
2015-02-26 20:36       ` Alexander Graf
2015-02-26 22:56       ` Peter Maydell
2015-02-27  7:54         ` Mark Burton
2015-03-02 12:27           ` Peter Maydell
2015-03-03 15:29             ` Mark Burton
2015-03-03 15:32               ` Paolo Bonzini
2015-03-03 15:33                 ` Mark Burton
2015-03-03 15:34                   ` Paolo Bonzini
2015-03-03 15:41                     ` Mark Burton
2015-03-03 15:47                   ` Dr. David Alan Gilbert
2015-03-13 19:38                     ` Richard Henderson
2015-03-13 20:04                       ` Dr. David Alan Gilbert
2015-01-16 17:19 ` [Qemu-devel] [RFC 02/10] use a different translation block list for each cpu fred.konrad
2015-01-27 14:45   ` Alex Bennée
2015-01-27 15:16     ` Frederic Konrad
2015-01-29 15:24   ` Peter Maydell
2015-01-29 15:33     ` Mark Burton
2015-02-02  8:39     ` Frederic Konrad
2015-02-02  8:49       ` Peter Maydell
2015-02-03 16:17   ` Richard Henderson
2015-02-03 16:33     ` Paolo Bonzini
2015-01-16 17:19 ` [Qemu-devel] [RFC 03/10] replace spinlock by QemuMutex fred.konrad
2015-01-29 15:25   ` Peter Maydell
2015-02-02  8:45     ` Frederic Konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 04/10] remove unused spinlock fred.konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 05/10] extract TBContext from TCGContext fred.konrad
2015-01-29 15:44   ` Peter Maydell
2015-02-03 16:30     ` Richard Henderson
2015-01-16 17:19 ` [Qemu-devel] [RFC 06/10] protect TBContext with tb_lock fred.konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 07/10] tcg: remove tcg_halt_cond global variable fred.konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 08/10] Drop global lock during TCG code execution fred.konrad
2015-01-16 17:19 ` [Qemu-devel] [RFC 09/10] cpu: remove exit_request global fred.konrad
2015-01-29 15:52   ` Peter Maydell
2015-02-02 10:03     ` Paolo Bonzini
2015-02-02 13:12       ` Peter Maydell
2015-02-02 13:14         ` Paolo Bonzini
2015-02-03  9:37     ` Frederic Konrad
2015-02-03 10:29       ` Peter Maydell
2015-01-16 17:19 ` [Qemu-devel] [RFC 10/10] tcg: switch on multithread fred.konrad
2015-03-27 10:08 ` [Qemu-devel] [RFC 00/10] MultiThread TCG Alex Bennée
2015-03-27 10:37   ` Frederic Konrad
2015-03-30  6:52     ` Mark Burton
2015-03-30 21:46       ` Peter Maydell
2015-03-31  6:41         ` Mark Burton
2015-04-10 16:03         ` Frederic Konrad
2015-04-22 12:26           ` Frederic Konrad
2015-04-22 13:18             ` Peter Maydell
2015-04-23  7:38               ` Frederic Konrad
2015-04-23 15:44             ` Alex Bennée
2015-04-23 15:46               ` Alex Bennée
2015-04-27  7:37                 ` Frederic Konrad
2015-04-27 17:06             ` Emilio G. Cota
2015-04-28  8:17               ` Frederic Konrad
2015-04-28  9:06               ` Paolo Bonzini
2015-04-28 17:49                 ` Emilio G. Cota

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.