qemu/accel/stubs
Philippe Mathieu-Daudé 8e0ef06894 accel/xen: Fix xen_enabled() behavior on target-agnostic objects
CONFIG_XEN is generated by configure and stored in "config-target.h",
which is (obviously) only include for target-specific objects.
This is a problem for target-agnostic objects as CONFIG_XEN is never
defined and xen_enabled() is always inlined as 'false'.

Fix by following the KVM schema, defining CONFIG_XEN_IS_POSSIBLE
when we don't know to force the call of the non-inlined function,
returning the xen_allowed boolean.

Fixes: da278d58a0 ("accel: Move Xen accelerator code under accel/xen/")
Reported-by: Paul Durrant <pdurrant@amazon.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20200804074930.13104-2-philmd@redhat.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
2020-08-04 10:21:35 +01:00
..
hax-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
hvf-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
kvm-stub.c kvm: Introduce KVM irqchip change notifier 2019-11-26 10:11:30 +11:00
Makefile.objs stubs: move Xen stubs to accel/ 2020-06-12 11:20:15 -04:00
tcg-stub.c accel/tcg: Add stub for probe_access() 2020-07-10 18:02:21 -04:00
whpx-stub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
xen-stub.c accel/xen: Fix xen_enabled() behavior on target-agnostic objects 2020-08-04 10:21:35 +01:00