xref: /openbmc/qemu/include/system/hw_accel.h (revision 989dd906ed5556563a57b32ae7abf9db5e1f38ba)
1 /*
2  * QEMU Hardware accelerators support
3  *
4  * Copyright 2016 Google, Inc.
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  *
9  */
10 
11 #ifndef QEMU_HW_ACCEL_H
12 #define QEMU_HW_ACCEL_H
13 
14 #include "hw/core/cpu.h"
15 #include "system/kvm.h"
16 #include "system/hvf.h"
17 #include "system/whpx.h"
18 #include "system/nvmm.h"
19 
20 /**
21  * cpu_synchronize_state:
22  * cpu_synchronize_pre_loadvm:
23  * @cpu: The vCPU to synchronize.
24  *
25  * Request to synchronize QEMU vCPU registers from the hardware accelerator
26  * (the hardware accelerator is the reference).
27  */
28 void cpu_synchronize_state(CPUState *cpu);
29 void cpu_synchronize_pre_loadvm(CPUState *cpu);
30 
31 /**
32  * cpu_synchronize_post_reset:
33  * cpu_synchronize_post_init:
34  * @cpu: The vCPU to synchronize.
35  *
36  * Request to synchronize QEMU vCPU registers to the hardware accelerator
37  * (QEMU is the reference).
38  */
39 void cpu_synchronize_post_reset(CPUState *cpu);
40 void cpu_synchronize_post_init(CPUState *cpu);
41 
42 #endif /* QEMU_HW_ACCEL_H */
43