[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH] Speculative mitigation facilities report wrong status v2
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jin Nan Wang <jnwang@xxxxxxxx>
- Date: Wed, 31 Jul 2019 13:09: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=k5d48RE+eBDSgYYId1hbOqdisqqsoQyANgilf6GSx3Q=; b=Tj1E8OEFexWDkEbajqBU2fkXwO3U/5g+8pxxDX+pTlR7iwQrxyOGnqNTFAGQ7O8gbjFVXokn9EuVZIGqoIDzpdUn7H3MFa8vX8FyWuHD7WfYYxSJH5pyCzaMhdxO5bQrlaAuniU8GmXnypEzVsk64Vc0Y++gKIQhOwJVZOb83f/ySbY6TflgOpQQZJlSV7XNw4kCX/KtcOLmpIkkG3+oz5XZEoNdhTpI0uslhqTPURmW7crAXKkWgzeHjWmFicYWjgvuDzS4NsQG3TieqnFcRVVHYUcx54Am1Z6DzcUGIeRQIHSAoHZ0wqkmkJIlqAmj8g7Hh2bsKNvSQV5xfAU9Zg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BUwL6npI9YT6rsHJdppIlk9lZ2R6Z4lb9lcVjTcOxTxqwnHq9sARWBlRLj4jOhWr9J9OgvyzTAFOQjb9CKisapzWjNXK4RYjpepxyjuA0G3dmY7vMAQvcAMsiSPiVaV458LEZ6ZoviGpMXaTYlpVigktYUZR1LWLEPPGjZ2BAsVMtDJGw81VWWyLusZ7Lu7Qvns2JbXy3SaS9VcLj//ssN4c/FOCH9ucQp1vPRCo9z3XCVkJax4Y4fWRXHgktEkb18SZlipLzjZMVrGpC7MSZksS2NlrKQT3zte9bNlP8aNA7VtdJpSdVoi10Rv3YvSPWKx37xcgiCKKmjV0xRcu4A==
- 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:12:08 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVR6Eng6gyD2BBNUm+AkTjaw+Y7Q==
- Thread-topic: [PATCH] Speculative mitigation facilities report wrong status v2
Add a check about X86_FEATURE_MD_CLEAR to avoid to print "None".
---
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
|