cpus: prepare new CpusAccel cpu accelerator interface
commit430065dab060f04a74f915ea1260dcc79701ca75
authorClaudio Fontana <cfontana@suse.de>
Fri, 31 Jul 2020 10:23:42 +0000 (31 12:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Oct 2020 14:41:22 +0000 (5 16:41 +0200)
treef445ddeea37071030bd0bbbef143b705b608252a
parent8191d3684157884bf7e6eff0d247d7e91a1cc543
cpus: prepare new CpusAccel cpu accelerator interface

The new interface starts unused, will start being used by the
next patches.

It provides methods for each accelerator to start a vcpu, kick a vcpu,
synchronize state, get cpu virtual clock and elapsed ticks.

In qemu_wait_io_event, make it clear that APC is used only for HAX
on Windows.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/cpu.c
hw/i386/x86.c
include/sysemu/cpu-timers.h
include/sysemu/cpus.h
include/sysemu/hw_accel.h
softmmu/cpu-timers.c
softmmu/cpus.c
stubs/cpu-synchronize-state.c [new file with mode: 0644]
stubs/cpus-get-virtual-clock.c [new file with mode: 0644]
stubs/meson.build
util/qemu-timer.c