diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-07-06 20:54:56 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-07-09 09:38:33 -0700 |
commit | a4390647f7af6b8a539571b44ab537478f0ae548 (patch) | |
tree | 6bd2cea549a6f6d407ed4daf3681de04e4225175 /accel/tcg/tb-context.h | |
parent | 834361efd9d52947663aa5b297693f8e352bef2a (diff) |
tcg: Move tb_phys_invalidate_count to tb_ctx
We can call do_tb_phys_invalidate from an iocontext, which has
no per-thread tcg_ctx. Move this to tb_ctx, which is global.
The actual update still takes place with a lock held, so only
an atomic set is required, not an atomic increment.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/457
Tested-by: Viktor Ashirov <vashirov@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'accel/tcg/tb-context.h')
-rw-r--r-- | accel/tcg/tb-context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel/tcg/tb-context.h b/accel/tcg/tb-context.h index cc33979113..cac62d9749 100644 --- a/accel/tcg/tb-context.h +++ b/accel/tcg/tb-context.h @@ -34,6 +34,7 @@ struct TBContext { /* statistics */ unsigned tb_flush_count; + unsigned tb_phys_invalidate_count; }; extern TBContext tb_ctx; |