]> git.proxmox.com Git - mirror_qemu.git/commit
tcg: move locking for tb_invalidate_phys_page_range up
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 27 Oct 2016 15:10:16 +0000 (16:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 31 Oct 2016 14:00:25 +0000 (15:00 +0100)
commitba051fb5e56d5ff5e4fa672d37954452e58543b2
treebc0e27a6e1ef932b5801e235a6ffaf5f2672e456
parent14e6fe12a705c065fecdfd2a97199728123d4d9a
tcg: move locking for tb_invalidate_phys_page_range up

In the linux-user case all things that involve ''l1_map' and PageDesc
tweaks are protected by the memory lock (mmpa_lock). For SoftMMU mode
we previously relied on single threaded behaviour, with MTTCG we now use
the tb_lock().

As a result we need to do a little re-factoring  and push the taking of
this lock up the call tree. This requires a slightly different entry for
the SoftMMU and user-mode cases from tb_invalidate_phys_range.

This also means user-mode breakpoint insertion needs to take two locks
but it hadn't taken any previously so this is an improvement.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20161027151030.20863-20-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
translate-all.c