[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170817154403.15099-4-andi@firstfloor.org>
Date: Thu, 17 Aug 2017 08:44:01 -0700
From: Andi Kleen <andi@...stfloor.org>
To: hpa@...or.com
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>
Subject: [PATCH v5 3/5] x86/cpuid: Make clearcpuid an early param
From: Andi Kleen <ak@...ux.intel.com>
Make clearcpuid= an early param, to make sure it is parsed
before the XSAVE initialization. This allows to modify
XSAVE state by clearing specific CPUID bits.
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
---
arch/x86/kernel/cpu/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 60b7aa6330ed..600e0cf714b9 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1285,7 +1285,7 @@ static __init int setup_disablecpuid(char *arg)
return 1;
}
-__setup("clearcpuid=", setup_disablecpuid);
+early_param("clearcpuid", setup_disablecpuid);
#ifdef CONFIG_X86_64
struct desc_ptr idt_descr __ro_after_init = {
--
2.9.4
Powered by blists - more mailing lists