From 7c2550432abe62f53e6df878ceba6ceaf71f0e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Vilanova?= Date: Thu, 9 Jun 2016 19:31:41 +0200 Subject: exec: [tcg] Track which vCPU is performing translation and execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 146549350162.18437.3033661139638458143.stgit@fimbulvetr.bsc.es Signed-off-by: Stefan Hajnoczi --- tcg/tcg.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tcg/tcg.h') diff --git a/tcg/tcg.h b/tcg/tcg.h index 909db3fc02..66d7fc01c5 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -599,6 +599,10 @@ struct TCGContext { TBContext tb_ctx; + /* Track which vCPU triggers events */ + CPUState *cpu; /* *_trans */ + TCGv_env tcg_env; /* *_exec */ + /* The TCGBackendData structure is private to tcg-target.inc.c. */ struct TCGBackendData *be; -- cgit v1.2.1