[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH] Speculative mitigation facilities report wrong status v3
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jin Nan Wang <jnwang@xxxxxxxx>
- Date: Wed, 31 Jul 2019 13:22:16 +0000
- Accept-language: zh-CN, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBQZti58U38TZopuAZXY8DP/o5qR7ZzF/+115oLd+38=; b=nh/zPt/Us8TpcnGtgz6bEseGuqeKG/pbqGt0aQEEEdOOeD5zuehexj73yXW5itIrhXNrlZh8RO+tEv0aMn/XQ/ZvF5XkL9eGlIx7qDhzeifWdDl7/NjrhH0KV8ZaX7EGi/fTWdVwv4xkhOQO859ErOIcaAy4AaNVHPKU7LI5OEQAsVdWqHtYnGtQO3Qcv+r7A2IQnXipxgMv6G52j6JMnQUxJjspYchFxuFJUYoscQG4aK7/S+UtPEeogfbqUjiE0rvHyHWXZ/NseTfraShFSPReDNnwReioWyE+GKq03oB+i96z270q5DrHBa8/tzbBPazH6ZXeKz4CFHMf7k4HVw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PXmU9TNhwJ6rfJnWOU3n1znjnthRW7JhfvwUPEpY45UdIyqLadVCmI9cMpKDqH85om6ElkIPT4MImF7sX9Y9YL6YyTuv+5s3Z2PuViHRRaEEhLW/D9QegKNf906HK/LLmYeM0DC1wpcKhFIRO+82RN6WOdyP/lOmWZwBBHH8MwsXxBafTnczronqJlU0QI+7mgBjArjXLe9og3UPUuGgTWVzAiMGjonHROLdzv19/VuRUXJXe1qgepqOxhEDU6sZFJG5gziZzubUwHa0ccmGxGItd5V/5kuHcT6LO8Eq9k1WWtnSfODKDegoCCRAaQG3MjwfA1JGyp6p0QqRX44SmQ==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=jnwang@xxxxxxxx;
- Cc: "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, Jin Nan Wang <jnwang@xxxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 31 Jul 2019 13:35:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVR6L4rYZnjszFsEKi3E/8s3Q2qw==
- Thread-topic: [PATCH] Speculative mitigation facilities report wrong status v3
Add a check about X86_FEATURE_MD_CLEAR to avoid to print "None".
Signed-off-by: James Wang <jnwang@xxxxxxxx>
---
xen/arch/x86/spec_ctrl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c
index cada9a058e..468a847598 100644
--- a/xen/arch/x86/spec_ctrl.c
+++ b/xen/arch/x86/spec_ctrl.c
@@ -366,6 +366,7 @@ static void __init print_details(enum ind_thunk thunk,
uint64_t caps)
printk(" Support for HVM VMs:%s%s%s%s%s\n",
(boot_cpu_has(X86_FEATURE_SC_MSR_HVM) ||
boot_cpu_has(X86_FEATURE_SC_RSB_HVM) ||
+ boot_cpu_has(X86_FEATURE_MD_CLEAR) ||
opt_eager_fpu) ? "" : "
None",
boot_cpu_has(X86_FEATURE_SC_MSR_HVM) ? " MSR_SPEC_CTRL" : "",
boot_cpu_has(X86_FEATURE_SC_RSB_HVM) ? " RSB" : "",
@@ -377,6 +378,7 @@ static void __init print_details(enum ind_thunk thunk,
uint64_t caps)
printk(" Support for PV VMs:%s%s%s%s%s\n",
(boot_cpu_has(X86_FEATURE_SC_MSR_PV) ||
boot_cpu_has(X86_FEATURE_SC_RSB_PV) ||
+ boot_cpu_has(X86_FEATURE_MD_CLEAR) ||
opt_eager_fpu) ? "" : "
None",
boot_cpu_has(X86_FEATURE_SC_MSR_PV) ? " MSR_SPEC_CTRL" : "",
boot_cpu_has(X86_FEATURE_SC_RSB_PV) ? " RSB" : "",
--
2.22.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|