mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 23:10:38 +00:00
84f4ef17ae
Only leave the external interface in sysemu/whpx.h. whpx_apic_in_platform is moved to a .c file because it needs whpx_state. Reported-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20201219090637.1700900-3-pbonzini@redhat.com>
29 lines
519 B
C
29 lines
519 B
C
/*
|
|
* QEMU Windows Hypervisor Platform accelerator (WHPX) support
|
|
*
|
|
* Copyright Microsoft, Corp. 2017
|
|
*
|
|
* Authors:
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#ifndef QEMU_WHPX_H
|
|
#define QEMU_WHPX_H
|
|
|
|
#ifdef CONFIG_WHPX
|
|
|
|
int whpx_enabled(void);
|
|
bool whpx_apic_in_platform(void);
|
|
|
|
#else /* CONFIG_WHPX */
|
|
|
|
#define whpx_enabled() (0)
|
|
#define whpx_apic_in_platform() (0)
|
|
|
|
#endif /* CONFIG_WHPX */
|
|
|
|
#endif /* QEMU_WHPX_H */
|