mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
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>
This commit is contained in:
committed by
Paolo Bonzini
parent
8191d36841
commit
430065dab0
8
stubs/cpus-get-virtual-clock.c
Normal file
8
stubs/cpus-get-virtual-clock.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "sysemu/cpu-timers.h"
|
||||
#include "qemu/main-loop.h"
|
||||
|
||||
int64_t cpus_get_virtual_clock(void)
|
||||
{
|
||||
return cpu_get_clock();
|
||||
}
|
||||
Reference in New Issue
Block a user