Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1654681
| From | Andi Kleen <andi@firstfloor.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/5] x86/cpuid: Make clearcpuid an early param |
| Date | 2017-06-01 00:30 +0200 |
| Message-ID | <tNkhQ-2yk-7@gated-at.bofh.it> (permalink) |
| References | <tNkhP-2yk-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Andi Kleen <ak@linux.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@linux.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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/5] x86/xsave: Move xsave initialization to after parsing early parameters Andi Kleen <andi@firstfloor.org> - 2017-06-01 00:30 +0200
[PATCH 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling Andi Kleen <andi@firstfloor.org> - 2017-06-01 00:30 +0200
[PATCH 3/5] x86/cpuid: Make clearcpuid an early param Andi Kleen <andi@firstfloor.org> - 2017-06-01 00:30 +0200
[PATCH 2/5] x86/cpuid: Add generic table for cpuid dependencies Andi Kleen <andi@firstfloor.org> - 2017-06-01 00:30 +0200
Re: [PATCH 2/5] x86/cpuid: Add generic table for cpuid dependencies kbuild test robot <lkp@intel.com> - 2017-06-04 06:20 +0200
Re: [PATCH 2/5] x86/cpuid: Add generic table for cpuid dependencies Andi Kleen <ak@linux.intel.com> - 2017-06-06 01:00 +0200
[PATCH 5/5] x86/xsave: Using generic CPUID clearing when disabling XSAVE Andi Kleen <andi@firstfloor.org> - 2017-06-01 00:30 +0200
csiph-web