xref: /openbmc/qemu/include/sysemu/whpx.h (revision 1da79ecc)
1 /*
2  * QEMU Windows Hypervisor Platform accelerator (WHPX) support
3  *
4  * Copyright Microsoft, Corp. 2017
5  *
6  * Authors:
7  *
8  * This work is licensed under the terms of the GNU GPL, version 2 or later.
9  * See the COPYING file in the top-level directory.
10  *
11  */
12 
13 #ifndef QEMU_WHPX_H
14 #define QEMU_WHPX_H
15 
16 #ifdef CONFIG_WHPX
17 
18 int whpx_enabled(void);
19 bool whpx_apic_in_platform(void);
20 
21 #else /* CONFIG_WHPX */
22 
23 #define whpx_enabled() (0)
24 #define whpx_apic_in_platform() (0)
25 
26 #endif /* CONFIG_WHPX */
27 
28 #endif /* QEMU_WHPX_H */
29