]> git.proxmox.com Git - mirror_qemu.git/commit
cpus: introduce cpu_update_icount helper
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 5 Apr 2017 11:32:37 +0000 (12:32 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Apr 2017 09:23:38 +0000 (10:23 +0100)
commit512d3c807177b5cfff6b5a4925d71ae1b5521093
treee28725655ab542d8a7e0c5eab665c009a0ea6727
parente4cd96571f00e290e93dcc65a6d2b616b159dea6
cpus: introduce cpu_update_icount helper

By holding off updates to timer_state.qemu_icount we can run into
trouble when the non-vCPU thread needs to know the time. This helper
ensures we atomically update timers_state.qemu_icount based on what
has been currently executed.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
cpus.c
include/qemu/timer.h