| 1 | /* |
| 2 | * QEMU Hypervisor.framework (HVF) support |
| 3 | * |
| 4 | * Copyright 2017 Google Inc |
| 5 | * |
| 6 | * Adapted from target-i386/hax-i386.h: |
| 7 | * Copyright (c) 2011 Intel Corporation |
| 8 | * Written by: |
| 9 | * Jiang Yunhong<yunhong.jiang@intel.com> |
| 10 | * |
| 11 | * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 12 | * See the COPYING file in the top-level directory. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef HVF_I386_H |
| 17 | #define HVF_I386_H |
| 18 | |
| 19 | uint32_t hvf_get_supported_cpuid(uint32_t func, uint32_t idx, int reg); |
| 20 | |
| 21 | void hvf_handle_io(CPUState *, uint16_t, void *, int, int, int); |
| 22 | bool hvf_simulate_rdmsr(CPUState *cpu); |
| 23 | bool hvf_simulate_wrmsr(CPUState *cpu); |
| 24 | |
| 25 | /* Host specific functions */ |
| 26 | int hvf_inject_interrupt(CPUArchState *env, int vector); |
| 27 | |
| 28 | #endif |