summaryrefslogtreecommitdiffstats
path: root/include/exec/user
diff options
context:
space:
mode:
authorPaolo Bonzini2016-07-19 08:36:18 +0200
committerPaolo Bonzini2016-09-13 19:08:43 +0200
commit6d21e4208f382dd8ca1f7995a6dd9ea7ca281163 (patch)
tree81569f437586f0525ac788a09826af4e0c8020bb /include/exec/user
parenttcg: Prepare safe access to tb_flushed out of tb_lock (diff)
downloadqemu-6d21e4208f382dd8ca1f7995a6dd9ea7ca281163.tar.gz
qemu-6d21e4208f382dd8ca1f7995a6dd9ea7ca281163.tar.xz
qemu-6d21e4208f382dd8ca1f7995a6dd9ea7ca281163.zip
tcg: Prepare TB invalidation for lockless TB lookup
When invalidating a translation block, set an invalid flag into the TranslationBlock structure first. It is also necessary to check whether the target TB is still valid after acquiring 'tb_lock' but before calling tb_add_jump() since TB lookup is to be performed out of 'tb_lock' in future. Note that we don't have to check 'last_tb'; an already invalidated TB will not be executed anyway and it is thus safe to patch it. Suggested-by: Sergey Fedorov <serge.fdrv@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions