diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h index eea6175cb9..f04da6ec4f 100644 --- a/include/qemu/cpu.h +++ b/include/qemu/cpu.h @@ -87,6 +87,16 @@ struct CPUState { void cpu_reset(CPUState *cpu); /** + * qemu_cpu_has_work: + * @cpu: The vCPU to check. + * + * Checks whether the CPU has work to do. + * + * Returns: %true if the CPU has work, %false otherwise. + */ +bool qemu_cpu_has_work(CPUState *cpu); + +/** * qemu_cpu_is_self: * @cpu: The vCPU to check against. * |