summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorKONRAD Frederic2017-02-23 19:29:18 +0100
committerAlex Bennée2017-02-24 11:32:46 +0100
commite3b9ca810980851f93f5719a7df2044c9435f003 (patch)
tree599b323ab84d00be942903cbfebd37885966744e /scripts/switch-timer-api
parentcputlb: tweak qemu_ram_addr_from_host_nofail reporting (diff)
downloadqemu-e3b9ca810980851f93f5719a7df2044c9435f003.tar.gz
qemu-e3b9ca810980851f93f5719a7df2044c9435f003.tar.xz
qemu-e3b9ca810980851f93f5719a7df2044c9435f003.zip
cputlb: introduce tlb_flush_* async work.
Some architectures allow to flush the tlb of other VCPUs. This is not a problem when we have only one thread for all VCPUs but it definitely needs to be an asynchronous work when we are in true multithreaded work. We take the tb_lock() when doing this to avoid racing with other threads which may be invalidating TB's at the same time. The alternative would be to use proper atomic primitives to clear the tlb entries en-mass. This patch doesn't do anything to protect other cputlb function being called in MTTCG mode making cross vCPU changes. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> [AJB: remove need for g_malloc on defer, make check fixes, tb_lock] Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions