]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/umip: Print a line in the boot log that UMIP has been enabled
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Tue, 14 Nov 2017 06:29:43 +0000 (22:29 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 14 Nov 2017 07:38:09 +0000 (08:38 +0100)
Indicate that this feature has been enabled.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi V. Shankar <ravi.v.shankar@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: ricardo.neri@intel.com
Link: http://lkml.kernel.org/r/1510640985-18412-3-git-send-email-ricardo.neri-calderon@linux.intel.com
[ Changelog tweaks. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/common.c

index 13ae9e5eec2f5c8e40f89f2ecd077fc852d8d32c..fa998ca8aa5aa5b4899dbe8a57c5b543f927009e 100644 (file)
@@ -341,6 +341,8 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)
 
        cr4_set_bits(X86_CR4_UMIP);
 
+       pr_info("x86/cpu: Activated the Intel User Mode Instruction Prevention (UMIP) CPU feature\n");
+
        return;
 
 out: