[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Xen missing prompt log when exec-sp=off


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jin Nan Wang <jnwang@xxxxxxxx>
  • Date: Mon, 16 Dec 2019 05:47:48 +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=stedXO0+eqT7zbb2V7pJqFPa6RrsSXoeZl8uoziC7WI=; b=i6CiIept4jN1WYPC8ztmDaGmJNoIBh4BWISYLKnHma1fHaFjULmzAN8EFxeugvMZ/pmDGL3KbaqmR476q9KsjJtzvdyMOzZMxBc6CNmLnXRBX0ilq4kFBQN5G88Fp0hzpvFX8OI+xkVCGqzZqihE7KUy2+xoK0oBar/361rYB6LVzBixlXXG1dmkla429MPQi0h6yZ/ALyoOnK2n4XfqFJ3OnjWupUNogsCxE7X+e5n9GqsphhXvhL1kOWLYxcwzJmUwZ45OYBfi3C5G26hKg2fxf7EkL39kQqrxcxYkVNlQsGru0SAfssInnj6NmBPf+wgDn/XiTp47XLdxQzhn1A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ve14y2k50hCyTxpcNLyrVKSMMaWGbGHt6ycqfnqxR1HXH7Nch+AYbo2m8EmMkBKX+3W/JoiTYmfxda5gm3BdPwLQO+jWY3Psq+YA7emSy6A5dEYsbiQNeayEtdmOOuCu0XU+KYyzuRiiN/ltb1BktGHfs3GUQD3neuDFsGr7+EZfjSZQHd1kzpW5P53BBcVbpSMXRdXG7GrwE9T2F2pNIvPJlij5kLQ+Q23X2ldo0WCXAvBkEtDywh1vugWLypt3dWBJzp0B5FwLTiwT7gmXn6v6cXXhJEt2Rew25S2/vzXpy9L+fM+h5e3V8xHpgspJBL+cCPT8hGObMgmZu4KT2Q==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=jnwang@xxxxxxxx;
  • Cc: Kevin Tian <kevin.tian@xxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jin Nan Wang <jnwang@xxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 16 Dec 2019 05:55:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVs9RYvDJGD9d8eEizxnHO4Wu68w==
  • Thread-topic: [PATCH] Xen missing prompt log when exec-sp=off

Fix a issue when user disable ETP exec-sp, xen missed a prompt
log in dmesg.

Signed-off-by: James Wang <jnwang@xxxxxxxx>
---
 xen/arch/x86/hvm/vmx/vmx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 7970ba93e1..9c1f0f645d 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -2499,7 +2499,9 @@ const struct hvm_function_table * __init start_vmx(void)
         {
             /* Default to non-executable superpages on vulnerable hardware. */
             opt_ept_exec_sp = !cpu_has_bug_pschange_mc;
-
+        }
+        if (opt_ept_exec_sp == false)
+        {
             if ( cpu_has_bug_pschange_mc )
                 printk("VMX: Disabling executable EPT superpages due to 
CVE-2018-12207\n");
         }
-- 
2.24.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.