mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
accel: Introduce AccelOpsClass::cpus_are_resettable()
Add cpus_are_resettable() to AccelOps, and implement it for the KVM accelerator. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-12-f4bug@amsat.org>
This commit is contained in:
parent
ad7d684dfd
commit
3919635582
4 changed files with 12 additions and 6 deletions
|
@ -23,9 +23,4 @@ void cpu_synchronize_post_reset(CPUState *cpu);
|
|||
void cpu_synchronize_post_init(CPUState *cpu);
|
||||
void cpu_synchronize_pre_loadvm(CPUState *cpu);
|
||||
|
||||
static inline bool cpu_check_are_resettable(void)
|
||||
{
|
||||
return kvm_enabled() ? kvm_cpu_check_are_resettable() : true;
|
||||
}
|
||||
|
||||
#endif /* QEMU_HW_ACCEL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue