xref: /openbmc/qemu/include/sysemu/whpx.h (revision 13b48fb00e61dc7662da27c020c3263b74374acc)
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) 
1329b22c79SJustin Terry (VM) #ifndef QEMU_WHPX_H
1429b22c79SJustin Terry (VM) #define QEMU_WHPX_H
1529b22c79SJustin Terry (VM) 
16*13b48fb0SThomas Huth #ifdef NEED_CPU_H
17*13b48fb0SThomas Huth 
1829b22c79SJustin Terry (VM) #ifdef CONFIG_WHPX
1929b22c79SJustin Terry (VM) 
2029b22c79SJustin Terry (VM) int whpx_enabled(void);
2184f4ef17SPaolo Bonzini bool whpx_apic_in_platform(void);
22faf20793SSunil Muthuswamy 
2329b22c79SJustin Terry (VM) #else /* CONFIG_WHPX */
2429b22c79SJustin Terry (VM) 
2529b22c79SJustin Terry (VM) #define whpx_enabled() (0)
26faf20793SSunil Muthuswamy #define whpx_apic_in_platform() (0)
2729b22c79SJustin Terry (VM) 
2829b22c79SJustin Terry (VM) #endif /* CONFIG_WHPX */
2929b22c79SJustin Terry (VM) 
30*13b48fb0SThomas Huth #endif /* NEED_CPU_H */
31*13b48fb0SThomas Huth 
3229b22c79SJustin Terry (VM) #endif /* QEMU_WHPX_H */
33