after the initial split into 3 tcg variants, we proceed to also split tcg_start_vcpu_thread. We actually split it in 2 this time, since the icount variant just uses the round robin function. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Claudio Fontana <cfontana@suse.de> Message-Id: <20201015143217.29337-3-cfontana@suse.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
22 lines
501 B
C
22 lines
501 B
C
/*
|
|
* QEMU TCG Single Threaded vCPUs implementation
|
|
*
|
|
* Copyright 2020 SUSE LLC
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef TCG_CPUS_RR_H
|
|
#define TCG_CPUS_RR_H
|
|
|
|
#define TCG_KICK_PERIOD (NANOSECONDS_PER_SECOND / 10)
|
|
|
|
/* Kick all RR vCPUs. */
|
|
void qemu_cpu_kick_rr_cpus(CPUState *unused);
|
|
|
|
/* start the round robin vcpu thread */
|
|
void rr_start_vcpu_thread(CPUState *cpu);
|
|
|
|
#endif /* TCG_CPUS_RR_H */
|