Skip to content

Commit

Permalink
x86/boot: Don't disable PV32 when XEN_SHSTK is compiled out
Browse files Browse the repository at this point in the history
There is no need to automatically disable PV32 support on SHSTK-capable
hardware if Xen isn't actually using the feature.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Paul Durrant <paul@xen.org>
  • Loading branch information
andyhhp committed Jun 29, 2020
1 parent 88cfd06 commit d476440
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xen/arch/x86/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ unsigned long __initdata highmem_start;
size_param("highmem-start", highmem_start);
#endif

#ifdef CONFIG_XEN_SHSTK
static bool __initdata opt_xen_shstk = true;
#else
#define opt_xen_shstk false
#endif

static int __init parse_cet(const char *s)
{
Expand Down

0 comments on commit d476440

Please sign in to comment.