qemu/accel
Claudio Fontana 740b175973 cpu-timers, icount: new modules
refactoring of cpus.c continues with cpu timer state extraction.

cpu-timers: responsible for the softmmu cpu timers state,
            including cpu clocks and ticks.

icount: counts the TCG instructions executed. As such it is specific to
the TCG accelerator. Therefore, it is built only under CONFIG_TCG.

One complication is due to qtest, which uses an icount field to warp time
as part of qtest (qtest_clock_warp).

In order to solve this problem, provide a separate counter for qtest.

This requires fixing assumptions scattered in the code that
qtest_enabled() implies icount_enabled(), checking each specific case.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[remove redundant initialization with qemu_spice_init]
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
[fix lingering calls to icount_get]
Signed-off-by: Claudio Fontana <cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-05 16:41:22 +02:00
..
kvm qemu/atomic.h: rename atomic_ to qatomic_ 2020-09-23 16:07:44 +01:00
stubs stubs: Split accelerator / hardware related stubs 2020-09-30 19:11:36 +02:00
tcg cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00
xen meson: accel 2020-08-21 06:30:36 -04:00
accel.c accel: Introduce the current_accel() wrapper 2020-01-24 20:59:11 +01:00
Kconfig accel/Kconfig: Add the TCG selector 2020-07-10 18:02:21 -04:00
meson.build meson: accel 2020-08-21 06:30:36 -04:00
qtest.c cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00