mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
faa9372c07
commit
95590e24af
3 changed files with 46 additions and 21 deletions
|
@ -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
|
||||
--------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue