2017-01-10 11:59:55 +01:00
|
|
|
/*
|
2020-07-31 12:23:42 +02:00
|
|
|
* QEMU Hardware accelerators support
|
2017-01-10 11:59:55 +01:00
|
|
|
*
|
|
|
|
* Copyright 2016 Google, Inc.
|
|
|
|
*
|
|
|
|
* 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 QEMU_HW_ACCEL_H
|
|
|
|
#define QEMU_HW_ACCEL_H
|
|
|
|
|
2019-07-09 17:20:52 +02:00
|
|
|
#include "hw/core/cpu.h"
|
2017-01-10 11:59:55 +01:00
|
|
|
#include "sysemu/hax.h"
|
|
|
|
#include "sysemu/kvm.h"
|
2020-06-30 12:28:17 +02:00
|
|
|
#include "sysemu/hvf.h"
|
2018-01-22 22:07:49 +01:00
|
|
|
#include "sysemu/whpx.h"
|
2021-04-02 22:25:34 +02:00
|
|
|
#include "sysemu/nvmm.h"
|
2017-01-10 11:59:55 +01:00
|
|
|
|
2020-07-31 12:23:42 +02:00
|
|
|
void cpu_synchronize_state(CPUState *cpu);
|
|
|
|
void cpu_synchronize_post_reset(CPUState *cpu);
|
|
|
|
void cpu_synchronize_post_init(CPUState *cpu);
|
|
|
|
void cpu_synchronize_pre_loadvm(CPUState *cpu);
|
2017-05-26 06:46:28 +02:00
|
|
|
|
2021-01-26 18:36:47 +01:00
|
|
|
static inline bool cpu_check_are_resettable(void)
|
|
|
|
{
|
|
|
|
return kvm_enabled() ? kvm_cpu_check_are_resettable() : true;
|
|
|
|
}
|
|
|
|
|
2017-01-10 11:59:55 +01:00
|
|
|
#endif /* QEMU_HW_ACCEL_H */
|