]> git.proxmox.com Git - mirror_qemu.git/commit
ui/console: use exclusive mechanism directly
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 24 Mar 2017 15:39:05 +0000 (15:39 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 28 Mar 2017 09:52:45 +0000 (10:52 +0100)
commit0096109052c5b83ee6894c88acedfd59b76d0113
tree5c334ecd55d69aa1e3555d0530f3a4a38efd5343
parent85390939190e4b7eeba57765e344947c328cd166
ui/console: use exclusive mechanism directly

The previous commit (8bb93c6f99) using async_safe_run_on_cpu() doesn't
work on graphics sub-system which restrict which threads can do GUI
updates. Rather the special casing MacOS we just directly call the
helper and move all the exclusive handling into do_dafe_dpy_refresh().

The unfortunate bouncing of the BQL is to ensure there is no deadlock
as vCPUs waiting on the BQL are kicked into their quiescent state.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c