include/sysemu: Poison all accelerator CONFIG switches in common code
We are already poisoning CONFIG_KVM since this switch is not working in common code. Do the same with the other accelerator switches, too (except for CONFIG_TCG, which is special, since it is also defined in config-host.h). Message-Id: <20210414112004.943383-2-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
bfaa3b05a9
commit
13b48fb00e
@ -83,8 +83,12 @@
|
||||
#pragma GCC poison CONFIG_SPARC_DIS
|
||||
#pragma GCC poison CONFIG_XTENSA_DIS
|
||||
|
||||
#pragma GCC poison CONFIG_HAX
|
||||
#pragma GCC poison CONFIG_HVF
|
||||
#pragma GCC poison CONFIG_LINUX_USER
|
||||
#pragma GCC poison CONFIG_KVM
|
||||
#pragma GCC poison CONFIG_SOFTMMU
|
||||
#pragma GCC poison CONFIG_WHPX
|
||||
#pragma GCC poison CONFIG_XEN
|
||||
|
||||
#endif
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
int hax_sync_vcpus(void);
|
||||
|
||||
#ifdef NEED_CPU_H
|
||||
|
||||
#ifdef CONFIG_HAX
|
||||
|
||||
int hax_enabled(void);
|
||||
@ -34,4 +36,6 @@ int hax_enabled(void);
|
||||
|
||||
#endif /* CONFIG_HAX */
|
||||
|
||||
#endif /* NEED_CPU_H */
|
||||
|
||||
#endif /* QEMU_HAX_H */
|
||||
|
@ -16,6 +16,8 @@
|
||||
#include "qemu/accel.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#ifdef NEED_CPU_H
|
||||
|
||||
#ifdef CONFIG_HVF
|
||||
uint32_t hvf_get_supported_cpuid(uint32_t func, uint32_t idx,
|
||||
int reg);
|
||||
@ -26,6 +28,8 @@ extern bool hvf_allowed;
|
||||
#define hvf_get_supported_cpuid(func, idx, reg) 0
|
||||
#endif /* !CONFIG_HVF */
|
||||
|
||||
#endif /* NEED_CPU_H */
|
||||
|
||||
#define TYPE_HVF_ACCEL ACCEL_CLASS_NAME("hvf")
|
||||
|
||||
typedef struct HVFState HVFState;
|
||||
|
@ -13,6 +13,8 @@
|
||||
#ifndef QEMU_WHPX_H
|
||||
#define QEMU_WHPX_H
|
||||
|
||||
#ifdef NEED_CPU_H
|
||||
|
||||
#ifdef CONFIG_WHPX
|
||||
|
||||
int whpx_enabled(void);
|
||||
@ -25,4 +27,6 @@ bool whpx_apic_in_platform(void);
|
||||
|
||||
#endif /* CONFIG_WHPX */
|
||||
|
||||
#endif /* NEED_CPU_H */
|
||||
|
||||
#endif /* QEMU_WHPX_H */
|
||||
|
Loading…
Reference in New Issue
Block a user