Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1660445 > unrolled thread

[PATCH v2 3/5] x86/cpuid: Make clearcpuid an early param

Started byAndi Kleen <andi@firstfloor.org>
First post2017-06-08 01:40 +0200
Last post2017-06-08 01:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 3/5] x86/cpuid: Make clearcpuid an early param Andi Kleen <andi@firstfloor.org> - 2017-06-08 01:40 +0200

#1660445 — [PATCH v2 3/5] x86/cpuid: Make clearcpuid an early param

FromAndi Kleen <andi@firstfloor.org>
Date2017-06-08 01:40 +0200
Subject[PATCH v2 3/5] x86/cpuid: Make clearcpuid an early param
Message-ID<tPSIq-4Pr-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web