]> Git Repo - linux.git/commitdiff
x86/cpufeatures: Add X86_FEATURE_XENPV to disabled-features.h
authorJuergen Gross <[email protected]>
Fri, 4 Nov 2022 07:26:57 +0000 (08:26 +0100)
committerBorislav Petkov <[email protected]>
Tue, 22 Nov 2022 14:42:33 +0000 (15:42 +0100)
Add X86_FEATURE_XENPV to the features handled specially in
disabled-features.h.

Signed-off-by: Juergen Gross <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/x86/include/asm/disabled-features.h

index 33d2cd04d2544791b1363f8d7578a7d45b7fc749..c862552d7d6d92e3b48e06ba4dcbe1e7f0065575 100644 (file)
 # define DISABLE_SGX   (1 << (X86_FEATURE_SGX & 31))
 #endif
 
+#ifdef CONFIG_XEN_PV
+# define DISABLE_XENPV         0
+#else
+# define DISABLE_XENPV         (1 << (X86_FEATURE_XENPV & 31))
+#endif
+
 #ifdef CONFIG_INTEL_TDX_GUEST
 # define DISABLE_TDX_GUEST     0
 #else
 #define DISABLED_MASK5 0
 #define DISABLED_MASK6 0
 #define DISABLED_MASK7 (DISABLE_PTI)
-#define DISABLED_MASK8 (DISABLE_TDX_GUEST)
+#define DISABLED_MASK8 (DISABLE_XENPV|DISABLE_TDX_GUEST)
 #define DISABLED_MASK9 (DISABLE_SGX)
 #define DISABLED_MASK10        0
 #define DISABLED_MASK11        (DISABLE_RETPOLINE|DISABLE_RETHUNK|DISABLE_UNRET)
This page took 0.045747 seconds and 4 git commands to generate.