[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-5.1 v2 1/1] accel/xen: Fix xen_enabled() behavior on targ
Re: [PATCH-for-5.1 v2 1/1] accel/xen: Fix xen_enabled() behavior on target-agnostic objects
Tue, 4 Aug 2020 10:20:48 +0100
On Tue, Aug 04, 2020 at 09:49:30AM +0200, Philippe Mathieu-Daudé wrote:
> 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: da278d58a092 ("accel: Move Xen accelerator code under accel/xen/")
> Reported-by: Paul Durrant <firstname.lastname@example.org>
> Suggested-by: Peter Maydell <email@example.com>
> Signed-off-by: Philippe Mathieu-Daudé <firstname.lastname@example.org>
Reviewed-by: Anthony PERARD <email@example.com>
This time, I've also check that build all targets works...
I'll prepare the pull request right away.