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