]>
git.proxmox.com Git - mirror_qemu.git/blob - include/sysemu/hvf.h
2 * QEMU Hypervisor.framework (HVF) support
4 * Copyright Google Inc., 2017
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.
11 /* header to be included in non-HVF-specific code */
16 #include "sysemu/accel.h"
19 uint32_t hvf_get_supported_cpuid(uint32_t func
, uint32_t idx
,
21 extern bool hvf_allowed
;
22 #define hvf_enabled() (hvf_allowed)
23 #else /* !CONFIG_HVF */
24 #define hvf_enabled() 0
25 #define hvf_get_supported_cpuid(func, idx, reg) 0
26 #endif /* !CONFIG_HVF */
28 int hvf_init_vcpu(CPUState
*);
29 int hvf_vcpu_exec(CPUState
*);
30 void hvf_cpu_synchronize_state(CPUState
*);
31 void hvf_cpu_synchronize_post_reset(CPUState
*);
32 void hvf_cpu_synchronize_post_init(CPUState
*);
33 void hvf_cpu_synchronize_pre_loadvm(CPUState
*);
34 void hvf_vcpu_destroy(CPUState
*);
36 #define TYPE_HVF_ACCEL ACCEL_CLASS_NAME("hvf")
38 typedef struct HVFState HVFState
;
39 #define HVF_STATE(obj) \
40 OBJECT_CHECK(HVFState, (obj), TYPE_HVF_ACCEL)