]> git.proxmox.com Git - mirror_qemu.git/commit
exec: [tcg] Track which vCPU is performing translation and execution
authorLluís Vilanova <vilanova@ac.upc.edu>
Thu, 9 Jun 2016 17:31:41 +0000 (19:31 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 14:30:01 +0000 (15:30 +0100)
commit7c2550432abe62f53e6df878ceba6ceaf71f0e7e
treed9560c139a0e59672cc44578cec766dd45e64370
parent5edbd4e30426d3a0d712510b2509a521e35192b1
exec: [tcg] Track which vCPU is performing translation and execution

Information is tracked inside the TCGContext structure, and later used
by tracing events with the 'tcg' and 'vcpu' properties.

The 'cpu' field is used to check tracing of translation-time
events ("*_trans"). The 'tcg_env' field is used to pass it to
execution-time events ("*_exec").

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-id: 146549350162.18437.3033661139638458143.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
21 files changed:
target-alpha/translate.c
target-arm/translate.c
target-cris/translate.c
target-cris/translate_v10.c
target-i386/translate.c
target-lm32/translate.c
target-m68k/translate.c
target-microblaze/translate.c
target-mips/translate.c
target-moxie/translate.c
target-openrisc/translate.c
target-ppc/translate.c
target-s390x/translate.c
target-sh4/translate.c
target-sparc/translate.c
target-tilegx/translate.c
target-tricore/translate.c
target-unicore32/translate.c
target-xtensa/translate.c
tcg/tcg.h
translate-all.c