Re: [RFC PATCH v0 3/6] x86: Enable Upper Address Ignore(UAI) feature
From: Boris Petkov
Date: Fri Mar 11 2022 - 07:37:20 EST
>diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
>index f7a132eb794d..12615b1b4af5 100644
>--- a/arch/x86/kernel/setup.c
>+++ b/arch/x86/kernel/setup.c
>@@ -740,6 +740,12 @@ dump_kernel_offset(struct notifier_block *self, unsigned long v, void *p)
> return 0;
> }
>
>+static inline void __init uai_enable(void)
>+{
>+ if (boot_cpu_has(X86_FEATURE_UAI))
cpu_feature_enabled
>+ msr_set_bit(MSR_EFER, _EFER_UAI);
>+}
--
Sent from a small device: formatting sux and brevity is inevitable.