]> git.proxmox.com Git - mirror_qemu.git/commit - cpus.c
cpus: call cpu_update_icount on read
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 5 Apr 2017 09:53:47 +0000 (10:53 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Apr 2017 09:23:38 +0000 (10:23 +0100)
commit1d05906b95e7f2a35be2392506f9af8f89ff39a5
tree2de27cd5cb6f1ddccd6fd4abb3d07bfa38773ff4
parenteda5f7c6a147c8eb927a6198ec48fe677cb079b3
cpus: call cpu_update_icount on read

This ensures each time the vCPU thread reads the icount we update the
master timer_state.qemu_icount field. This way as long as updates are
in BQL protected sections (which they should be) the main-loop can
never come to update the log and find time has gone backwards.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
cpus.c