diff options
| author | Emilio G. Cota | 2017-08-01 21:40:16 +0200 |
|---|---|---|
| committer | Richard Henderson | 2018-06-15 20:18:42 +0200 |
| commit | 95590e24af11236ef334f6bc3e2b71404a790ddb (patch) | |
| tree | 76e03c0f097bd05f4921fdc6cbe067cc9e2e598e /docs | |
| parent | translate-all: introduce assert_no_pages_locked (diff) | |
| download | qemu-95590e24af11236ef334f6bc3e2b71404a790ddb.tar.gz qemu-95590e24af11236ef334f6bc3e2b71404a790ddb.tar.xz qemu-95590e24af11236ef334f6bc3e2b71404a790ddb.zip | |
translate-all: discard TB when tb_link_page returns an existing matching TB
Use the recently-gained QHT feature of returning the matching TB if it
already exists. This allows us to get rid of the lookup we perform
right after acquiring tb_lock.
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/devel/multi-thread-tcg.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/devel/multi-thread-tcg.txt b/docs/devel/multi-thread-tcg.txt index faf8918b23..faf09c6069 100644 --- a/docs/devel/multi-thread-tcg.txt +++ b/docs/devel/multi-thread-tcg.txt @@ -140,6 +140,9 @@ to atomically insert new elements. The lookup caches are updated atomically and the lookup hash uses QHT which is designed for concurrent safe lookup. +Parallel code generation is supported. QHT is used at insertion time +as the synchronization point across threads, thereby ensuring that we only +keep track of a single TranslationBlock for each guest code block. Memory maps and TLBs -------------------- |
