| * QEMU Hypervisor.framework (HVF) support |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| /* header to be included in HVF-specific code */ |
| #include <Hypervisor/Hypervisor.h> |
| #include <Hypervisor/hv.h> |
| #define HVF_SLOT_LOG (1 << 0) |
| typedef struct hvf_slot { |
| typedef struct hvf_vcpu_caps { |
| uint64_t vmx_cap_pinbased; |
| uint64_t vmx_cap_procbased; |
| uint64_t vmx_cap_procbased2; |
| uint64_t vmx_cap_preemption_timer; |
| extern HVFState *hvf_state; |
| sigset_t unblock_ipi_mask; |
| void assert_hvf_ok(hv_return_t ret); |
| int hvf_arch_init_vcpu(CPUState *cpu); |
| void hvf_arch_vcpu_destroy(CPUState *cpu); |
| int hvf_vcpu_exec(CPUState *); |
| hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t); |
| int hvf_put_registers(CPUState *); |
| int hvf_get_registers(CPUState *); |
| void hvf_kick_vcpu_thread(CPUState *cpu); |