Merge tag 'hw-misc-20240312' of https://github.com/philmd/qemu into staging
[qemu/armbru.git] / include / sysemu / whpx.h
blob781ca5b2b61437e796f4d99d9f92796e1c0299fc
1 /*
2 * QEMU Windows Hypervisor Platform accelerator (WHPX) support
4 * Copyright Microsoft, Corp. 2017
6 * Authors:
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.
13 /* header to be included in non-WHPX-specific code */
15 #ifndef QEMU_WHPX_H
16 #define QEMU_WHPX_H
18 #ifdef NEED_CPU_H
20 #ifdef CONFIG_WHPX
22 int whpx_enabled(void);
23 bool whpx_apic_in_platform(void);
25 #else /* CONFIG_WHPX */
27 #define whpx_enabled() (0)
28 #define whpx_apic_in_platform() (0)
30 #endif /* CONFIG_WHPX */
32 #endif /* NEED_CPU_H */
34 #endif /* QEMU_WHPX_H */