129b22c79SJustin Terry (VM) /* 229b22c79SJustin Terry (VM) * QEMU Windows Hypervisor Platform accelerator (WHPX) support 329b22c79SJustin Terry (VM) * 429b22c79SJustin Terry (VM) * Copyright Microsoft, Corp. 2017 529b22c79SJustin Terry (VM) * 629b22c79SJustin Terry (VM) * Authors: 729b22c79SJustin Terry (VM) * 829b22c79SJustin Terry (VM) * This work is licensed under the terms of the GNU GPL, version 2 or later. 929b22c79SJustin Terry (VM) * See the COPYING file in the top-level directory. 1029b22c79SJustin Terry (VM) * 1129b22c79SJustin Terry (VM) */ 1229b22c79SJustin Terry (VM) 13*69700301SPhilippe Mathieu-Daudé /* header to be included in non-WHPX-specific code */ 14*69700301SPhilippe Mathieu-Daudé 1529b22c79SJustin Terry (VM) #ifndef QEMU_WHPX_H 1629b22c79SJustin Terry (VM) #define QEMU_WHPX_H 1729b22c79SJustin Terry (VM) 1813b48fb0SThomas Huth #ifdef NEED_CPU_H 1913b48fb0SThomas Huth 2029b22c79SJustin Terry (VM) #ifdef CONFIG_WHPX 2129b22c79SJustin Terry (VM) 2229b22c79SJustin Terry (VM) int whpx_enabled(void); 2384f4ef17SPaolo Bonzini bool whpx_apic_in_platform(void); 24faf20793SSunil Muthuswamy 2529b22c79SJustin Terry (VM) #else /* CONFIG_WHPX */ 2629b22c79SJustin Terry (VM) 2729b22c79SJustin Terry (VM) #define whpx_enabled() (0) 28faf20793SSunil Muthuswamy #define whpx_apic_in_platform() (0) 2929b22c79SJustin Terry (VM) 3029b22c79SJustin Terry (VM) #endif /* CONFIG_WHPX */ 3129b22c79SJustin Terry (VM) 3213b48fb0SThomas Huth #endif /* NEED_CPU_H */ 3313b48fb0SThomas Huth 3429b22c79SJustin Terry (VM) #endif /* QEMU_WHPX_H */ 35