Skip to contentSkip to conversation

x86/umip: Make the UMIP activated message generic

PATCH In review Lendacky, Thomas 2 participants 3 messages Dec 4, 2018 – Dec 5, 2018 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/umip: Make the UMIP activated message generic

The User Mode Instruction Prevention (UMIP) feature is part of the x86_64 instruction set architecture and not specific to Intel. Make the message generic.

---

This patch is against the x86/cpu branch of the tip tree:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu

 arch/x86/kernel/cpu/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/common.c +1 -1
index 2c56b80..cb28e98 100644
@@ -353,7 +353,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)
 
 	cr4_set_bits(X86_CR4_UMIP);
 
-	pr_info_once("x86/cpu: Intel User Mode Instruction Prevention (UMIP) activated\n");
+	pr_info_once("x86/cpu: User Mode Instruction Prevention (UMIP) activated\n");
 
 	return;
 
#1 lore raw
Quoted 18 lines · Lendacky, Thomas

The User Mode Instruction Prevention (UMIP) feature is part of the x86_64 instruction set architecture and not specific to Intel. Make the message generic.

---

This patch is against the x86/cpu branch of the tip tree:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu

 arch/x86/kernel/cpu/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/common.c +0 -0
index 2c56b80..cb28e98 100644

arch/x86/kernel/cpu/common.c static __always_inline void setup_umip(struct cpuinfo_x86 *c) · line 356

Quoted 5 lines
arch/x86/kernel/cpu/common.c +1 -1
@@ -353,7 +353,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)
 
 	cr4_set_bits(X86_CR4_UMIP);
 
-	pr_info_once("x86/cpu: Intel User Mode Instruction Prevention (UMIP) activated\n");
+	pr_info_once("x86/cpu: User Mode Instruction Prevention (UMIP) activated\n");

Is there any public information about which AMD CPUs are going to support it?

The latest AMD CPU I can test on is a Ryzen Threadripper 1950X, and that doesn't have UMIP.

Thanks,

Ingo

#2 lore raw
Quoted 22 lines · Ingo Molnar
Quoted 19 lines · Lendacky, Thomas

The User Mode Instruction Prevention (UMIP) feature is part of the x86_64 instruction set architecture and not specific to Intel. Make the message generic.

---

This patch is against the x86/cpu branch of the tip tree:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu

 arch/x86/kernel/cpu/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/common.c +0 -0
index 2c56b80..cb28e98 100644
@@ -353,7 +353,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)
 
Quoted 7 lines

arch/x86/kernel/cpu/common.c static __always_inline void setup_umip(struct cpuinfo_x86 *c) · line 356

Quoted 4 lines
arch/x86/kernel/cpu/common.c +1 -1
 	cr4_set_bits(X86_CR4_UMIP);
 
-	pr_info_once("x86/cpu: Intel User Mode Instruction Prevention (UMIP) activated\n");
+	pr_info_once("x86/cpu: User Mode Instruction Prevention (UMIP) activated\n");

Is there any public information about which AMD CPUs are going to support it?

No public information yet...

Thanks,
Tom

Quoted 8 lines

The latest AMD CPU I can test on is a Ryzen Threadripper 1950X, and that doesn't have UMIP.

Thanks,

Ingo