diff options
author | Claudio Fontana <cfontana@suse.de> | 2020-07-31 12:23:42 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-05 16:41:22 +0200 |
commit | 430065dab060f04a74f915ea1260dcc79701ca75 (patch) | |
tree | f445ddeea37071030bd0bbbef143b705b608252a /include/sysemu/cpu-timers.h | |
parent | 8191d3684157884bf7e6eff0d247d7e91a1cc543 (diff) | |
download | qemu-430065dab060f04a74f915ea1260dcc79701ca75.zip qemu-430065dab060f04a74f915ea1260dcc79701ca75.tar.gz qemu-430065dab060f04a74f915ea1260dcc79701ca75.tar.bz2 |
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>
Diffstat (limited to 'include/sysemu/cpu-timers.h')
-rw-r--r-- | include/sysemu/cpu-timers.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/sysemu/cpu-timers.h b/include/sysemu/cpu-timers.h index 7726e00..ed6ee5c 100644 --- a/include/sysemu/cpu-timers.h +++ b/include/sysemu/cpu-timers.h @@ -70,9 +70,8 @@ void cpu_enable_ticks(void); void cpu_disable_ticks(void); /* - * return the time elapsed in VM between vm_start and vm_stop. Unless - * icount is active, cpu_get_ticks() uses units of the host CPU cycle - * counter. + * return the time elapsed in VM between vm_start and vm_stop. + * cpu_get_ticks() uses units of the host CPU cycle counter. */ int64_t cpu_get_ticks(void); @@ -84,4 +83,8 @@ int64_t cpu_get_clock(void); void qemu_timer_notify_cb(void *opaque, QEMUClockType type); +/* get the VIRTUAL clock and VM elapsed ticks via the cpus accel interface */ +int64_t cpus_get_virtual_clock(void); +int64_t cpus_get_elapsed_ticks(void); + #endif /* SYSEMU_CPU_TIMERS_H */ |