Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8574343ybl; Thu, 16 Jan 2020 19:59:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwKY5LLe8xsGlPlcu1wtFpC06Yh711ABr+cXf7MmC0c/TXM2kRU7nAIqwet1iGpp7R5TFH3 X-Received: by 2002:aca:c3c4:: with SMTP id t187mr2047139oif.89.1579233558969; Thu, 16 Jan 2020 19:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579233558; cv=none; d=google.com; s=arc-20160816; b=LmGLRvOCDnhTF4Nb18h2gdZXZa105rzk/c6yElXXJ2h1RoshYLTs/OX7a2JM1h522U 5OZbXf5tWspq5ZBwanUBFGPPNFY2VO4klDzMXajR6gOPt5osdUzIvd9mr82xbKjeiWFh DM482q5mNlU4Hf2z0ErvDj46cNH6tebDjFrc7NuK6j/rE3OSXbN4Fxzkiu4tcQLfpQvN l2q9wr5W0vdqYsBSLu70AQDI56HdZB3F1yN46yirc3hElyOWqUBspG0+hMFPWa2LXyHu CFeJbIQi5+sfwfiwIqfm0y06uTa23HbWNLVeDzhHPvj2nBcwqcWA0xgvL1L62vEOkZDX WGAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=O04KN7ZhpOZuJnfsiYxfZ02BVQCPKrDSMa20UXHGBcg=; b=ciMDbJysfGaKB0/AnannqExLoWQMFOuMOORrx1FoLibptk+iwYvwWhIubyeZxye31T yVP+RnsOXU8tkTu1D/hTPqULxzWMeA9aiszUoDA8REbh5cfBS8aY7DOf3sDlj1EntqlB WuAVqUEfDzgSFi+QGdY8M/GYBmq+NPHP0mPoRRP/9mb5/0aBZoRdK+4M47gLx7HPDya5 3Rzqsu8M1BWZoBAC0WhaJWz40L2dgAaPOaatxhxshc6SsQzVok9GZsKJ8EAeZmtO9LKT 4fzwGA0vF3Mnh+zlxClvv6aOGT87Cr5rLfVoVvQ6SPE2j+NxtQxSqSYW3HL1zTYmZjwv jOIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si15171097otk.86.2020.01.16.19.59.07; Thu, 16 Jan 2020 19:59:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388246AbgAQCYH (ORCPT + 99 others); Thu, 16 Jan 2020 21:24:07 -0500 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:30405 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726726AbgAQCYH (ORCPT ); Thu, 16 Jan 2020 21:24:07 -0500 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Fri, 17 Jan 2020 10:24:05 +0800 Received: from tony-HX002EA.zhaoxin.com (10.32.64.11) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Fri, 17 Jan 2020 10:24:03 +0800 From: Tony W Wang-oc To: , , , , , , , , , , CC: , , , Subject: [PATCH v1 0/2] x86/bugs: Exclude Zhaoxin family 7 CPUs Date: Fri, 17 Jan 2020 10:24:30 +0800 Message-ID: <1579227872-26972-1-git-send-email-TonyWWang-oc@zhaoxin.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.32.64.11] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To zxbjmbx1.zhaoxin.com (10.29.252.163) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New Zhaoxin family 7 CPUs are not affected by SPECTRE_V2, SWAPGS. Extend cpu_vuln_whitelist flag with a NO_SPECTRE_V2 bit. And add these CPUs to the cpu vulnerability whitelist. Tony W Wang-oc (2): x86/speculation/spectre_v2: Exclude Zhaoxin CPUs from SPECTRE_V2 x86/speculation/swapgs: Exclude Zhaoxin CPUs from SWAPGS arch/x86/kernel/cpu/common.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.7.4