]> xenbits.xensource.com Git - people/jgross/xen.git/commitdiff
x86/boot: Don't disable PV32 when XEN_SHSTK is compiled out
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Jun 2020 10:30:55 +0000 (11:30 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Jun 2020 12:38:28 +0000 (13:38 +0100)
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>
xen/arch/x86/setup.c

index 2aa1cd50b8540d8528b343c6e5e1e5a159f4577a..c9b6af826da0ac18bab9d07d696f12fe371f8b87 100644 (file)
@@ -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)
 {