Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3810013ybc; Thu, 21 Nov 2019 14:12:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzwU9pgpajUfdAAaqMY0QDG/7JEz6Dnq/dw6/16Z5useNLO7XbeVkby/72zY6bkIrDUFtwt X-Received: by 2002:a17:906:ccc6:: with SMTP id ot6mr16898422ejb.137.1574374372919; Thu, 21 Nov 2019 14:12:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574374372; cv=none; d=google.com; s=arc-20160816; b=SQfH0j1IDi8yusnnwm6Wf6/PhokmfNv4lsqNbtN+x8KEK7Fm7TU0CqCpjdEsrCdlL/ HOmXLRn99tsfNZHl1bq70o4L4R4+FITucTO8fox2M8AL2qUKlFrcOHn9H8u498r3J6b7 yYKZTSCREb/jY8c985G8WsRFuJA4n5yINhLEcvBgVZSdYK+CPe4gCq1WEZP+WA27Tfa+ YjYDpl68NFaXrl5GVEd9acv/IlZEgki5/TK2SLZS2rHp7rhQ12Pf0/0GS3oiqzBeUizZ WK0Tywz7wZbqVUYIPwiZWqqgeF2kXYbjlLm+pAmLM43CRoc7zEgMtqOUqBcBYWzP4Iwc VHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=Wso9M2AptCOQ/FSB/cF//hdr5Wmb6Utbp6FwVtSvgFg=; b=WIHRpto/FlfotTBqMHld1oMzeAKNgJfa+0t3q4cdOp4KnaH4SC+SJ7AKnMCqPVi711 eLpNto9KlIzvKxPzrpmup2wuLiDdmPyr/D3svEgMy6ubca955pyV57HVE8jH6s1u+0cB pUVTv42DQqLzekZBntAnw6UgFDef3vKF6kUDOTLTR2F6Lj+yyfdqJRiqjyKOR7pjlVOX 6J3hcscJKCD5bJWyNoNCr+Q+MM7bIw2Tx7f9yKbIvHfZSdKkhzeEz0GDQw139N+4RjV1 FOCLKXfS3itwVtm29vnmuYadMoWUe/NWhtROO4ceaQk7Z7VhxXWPO4WUmjQqyhlMTRfw +3Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=muVq5zaK; 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 k11si2729783ejr.119.2019.11.21.14.12.18; Thu, 21 Nov 2019 14:12:52 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=muVq5zaK; 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 S1726970AbfKUWHl (ORCPT + 99 others); Thu, 21 Nov 2019 17:07:41 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40268 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726813AbfKUWHl (ORCPT ); Thu, 21 Nov 2019 17:07:41 -0500 Received: by mail-pg1-f195.google.com with SMTP id e17so2328500pgd.7 for ; Thu, 21 Nov 2019 14:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=Wso9M2AptCOQ/FSB/cF//hdr5Wmb6Utbp6FwVtSvgFg=; b=muVq5zaKkBQRopIc2gUyZS+KHD4OCOG0Y0Lj9B2+WEvWxaf2p7IF3xq6IVyLVHF/hi hhFNsLIeUddkEjHpGStAkfUtqdyDYWvzQGPuti6Tjxn9uGaT+ChklsBz2+FboMQNqJ8c madsv1PEL3adKYmbw+yn9sZeSGJ2Zev5fqTvM7OhNGf+lhJqyvxhQ8zwzH6fCPCt1iVE CnVaWt1iXAR9zQyLbNHKvxP1GhyFxccyMLU9SEqCXYi+8L7y2he1JApd92rh5MDKW8F2 NMu/Y9Fi0QydQSpgXIMFhgMcWvYOZGi/Xkx+t/wahNlb0K+ILJiYZ/MDe1tBdh9d0I2L nIAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Wso9M2AptCOQ/FSB/cF//hdr5Wmb6Utbp6FwVtSvgFg=; b=gVVhtG2GycRJ1gj9MQIM0SkAGsuMeoa6dkUQcLlumiow5pt7QDarwieX9gGMOqUV/i VsOn+oyDmK4MsMp3iAXt4s9uXQaralpLV7YP+Y9H+/zoWzZ20rirPeefubVFXRz/R4zI HYc0JCyff9fCTPzbeCaAqEZJXJErcrjMP/I5GVrRC2acJvuOWOahAQhp/ldNa5/ZzE1C ie7iq5mFp5xPPgzjXwzNDifrXJPLRgBXqRay1oS5qpgTJgEQ8nUYldoM6PNt7LnaB0Ao Umk27+NYx1HoSYiT5OSC1fYcY1f2QkQ+opXuy3X+A2lgCPWe1f6G9MPY83qG7N/Mlmm4 8QUQ== X-Gm-Message-State: APjAAAX4YKCqsyDTHQbH+zMBWyZumOE2hdytqiIFgq61cejGC1iNKR9j C452J1k23C2vS3qroFyd0KEYHA== X-Received: by 2002:a63:25c7:: with SMTP id l190mr12263520pgl.429.1574374060188; Thu, 21 Nov 2019 14:07:40 -0800 (PST) Received: from ?IPv6:2601:646:c200:1ef2:1956:3100:f5cd:d9bc? ([2601:646:c200:1ef2:1956:3100:f5cd:d9bc]) by smtp.gmail.com with ESMTPSA id y24sm4833234pfr.116.2019.11.21.14.07.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2019 14:07:39 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v10 4/6] x86/split_lock: Enumerate split lock detection if the IA32_CORE_CAPABILITIES MSR is not supported Date: Thu, 21 Nov 2019 14:07:38 -0800 Message-Id: References: <1574297603-198156-5-git-send-email-fenghua.yu@intel.com> Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Peter Zijlstra , Tony Luck , Ashok Raj , Ravi V Shankar , linux-kernel , x86 In-Reply-To: <1574297603-198156-5-git-send-email-fenghua.yu@intel.com> To: Fenghua Yu X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Nov 20, 2019, at 5:45 PM, Fenghua Yu wrote: >=20 > =EF=BB=BFArchitecturally the split lock detection feature is enumerated by= > IA32_CORE_CAPABILITIES MSR and future CPU models will indicate presence > of the feature by setting bit 5. But the feature is present in a few > older models where split lock detection is enumerated by the CPU models. >=20 > Use a "x86_cpu_id" table to list the older CPU models with the feature. >=20 This may need to be disabled if the HYPERVISOR bit is set.=