Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-08-16 11:44:31 +0200
committerBorislav Petkov <bp@suse.de>2019-08-16 11:44:31 +0200
commitbe2af52e0f0ccd3e20930d068c26bbcec3ff2557 (patch)
treeb2320fec12a85f87699f3ba91c198d5ab230beb8
parent19b1b4784551a8ce70db99837314c21b72b55f49 (diff)
x86/speculation/mds: Apply more accurate check on hypervisor
platform (bsc#1114279). suse-commit: 8a1df4029a260bc2d57ea38ba6734604128adf1b
-rw-r--r--arch/x86/kernel/cpu/bugs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
index 3fbd6b11349b..9a25e43dd13d 100644
--- a/arch/x86/kernel/cpu/bugs.c
+++ b/arch/x86/kernel/cpu/bugs.c
@@ -1293,7 +1293,7 @@ static ssize_t l1tf_show_state(char *buf)
static ssize_t mds_show_state(char *buf)
{
- if (!hypervisor_is_type(X86_HYPER_NATIVE)) {
+ if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) {
return sprintf(buf, "%s; SMT Host state unknown\n",
mds_strings[mds_mitigation]);
}