2020-10-15 17:32:15 +03:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2022-05-06 16:49:08 +03:00
|
|
|
#ifndef TCG_ACCEL_OPS_RR_H
|
|
|
|
#define TCG_ACCEL_OPS_RR_H
|
2020-10-15 17:32:15 +03:00
|
|
|
|
|
|
|
#define TCG_KICK_PERIOD (NANOSECONDS_PER_SECOND / 10)
|
|
|
|
|
|
|
|
/* Kick all RR vCPUs. */
|
2020-10-15 17:32:17 +03:00
|
|
|
void rr_kick_vcpu_thread(CPUState *unused);
|
2020-10-15 17:32:15 +03:00
|
|
|
|
2020-10-15 17:32:16 +03:00
|
|
|
/* start the round robin vcpu thread */
|
|
|
|
void rr_start_vcpu_thread(CPUState *cpu);
|
2020-10-15 17:32:15 +03:00
|
|
|
|
2022-05-06 16:49:08 +03:00
|
|
|
#endif /* TCG_ACCEL_OPS_RR_H */
|