pc-bios/vof: Adopt meson style Make output
[qemu.git] / include / sysemu / hvf.h
blobbb70082e4581818ee20fa35b45e898345e3c5372
1 /*
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.
9 */
11 /* header to be included in non-HVF-specific code */
13 #ifndef HVF_H
14 #define HVF_H
16 #include "qemu/accel.h"
17 #include "qom/object.h"
19 #ifdef NEED_CPU_H
21 #ifdef CONFIG_HVF
22 uint32_t hvf_get_supported_cpuid(uint32_t func, uint32_t idx,
23 int reg);
24 extern bool hvf_allowed;
25 #define hvf_enabled() (hvf_allowed)
26 #else /* !CONFIG_HVF */
27 #define hvf_enabled() 0
28 #define hvf_get_supported_cpuid(func, idx, reg) 0
29 #endif /* !CONFIG_HVF */
31 #endif /* NEED_CPU_H */
33 #define TYPE_HVF_ACCEL ACCEL_CLASS_NAME("hvf")
35 typedef struct HVFState HVFState;
36 DECLARE_INSTANCE_CHECKER(HVFState, HVF_STATE,
37 TYPE_HVF_ACCEL)
39 #endif