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 NEED_CPU_H 17 18 #ifdef CONFIG_WHPX 19 20 int whpx_enabled(void); 21 bool whpx_apic_in_platform(void); 22 23 #else /* CONFIG_WHPX */ 24 25 #define whpx_enabled() (0) 26 #define whpx_apic_in_platform() (0) 27 28 #endif /* CONFIG_WHPX */ 29 30 #endif /* NEED_CPU_H */ 31 32 #endif /* QEMU_WHPX_H */ 33