Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7064364ybl; Wed, 15 Jan 2020 14:59:54 -0800 (PST) X-Google-Smtp-Source: APXvYqy6R/PCOgdM9xb4NDrdkPqlIl1WO+EW8g66Kjr8cZ10qeXbok0NqKETR2pQ9BzASQ9EBQX5 X-Received: by 2002:aca:d544:: with SMTP id m65mr1887715oig.177.1579129194639; Wed, 15 Jan 2020 14:59:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579129194; cv=none; d=google.com; s=arc-20160816; b=i/cuVuoFSLVojourcOXoDQF8xhxxAgi16oOOGqmCKxxtPqIGoWSLQhsVOCK56xnspV cU/Da6gl/XYmhqlCuHtH48ODx6ai+dvdllnZchUTRvPkj1fBeo1P6N1YzLAo4FEkPEA4 JSRtCbNiMU0yYMLeuGLBvv6nTbwjHDW6XD/liLX326QTqKNGR3924iD67g2YV3USRcCx CJUKSkyvO3ZFMfKrLhT0k5pWK9BKp+9u1iLEfWMrdYlpRJeECjrBS2DEePztE8Owqfq0 CJhKaZQl58uW+h7phVrpiGyIe7oLWOPeAkev8d0C6LFIt7Q1SA5iYXJc+0SpFJb6KkVd ykmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=G/h/4RtBUMc7JyRRUwT/FKtBblKENNU0/AbcsXY0Ge4=; b=fRXQBzcxdxf8CgKdnaDoaKAt7ZBJmDZ6sINm9GxRkU9Lzmoq17txfrcEGZFA+a/dmR xIMkKti2Z9crjPUDLqvm4FUbHDfakbiBY2s0cgXbAwXv8xx6eDcAm1VQeuNOqLmtjOJT fIcKytiL1BnzAcuAV092a3EHEHo51EclTZ/q2cwmaKOlb7d/Knwg0oTS0CqC4eqrYNyW Y0mQU4dd2pp+deLkH3ESLSeqhq1RtDgggpvhExIKkItBR+cZzOBW8Rk2qT0I98Qbta5n gYGyfLbVJy+wEjPksnIqtAPsxJmY2xhKtn5OPNrCZQ0ZT9yWrhcdyAsdR+88ts7BZyIE QlHA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si11652040ota.71.2020.01.15.14.59.42; Wed, 15 Jan 2020 14:59:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730145AbgAOVtU (ORCPT + 99 others); Wed, 15 Jan 2020 16:49:20 -0500 Received: from mga11.intel.com ([192.55.52.93]:33995 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbgAOVtU (ORCPT ); Wed, 15 Jan 2020 16:49:20 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 13:49:20 -0800 X-IronPort-AV: E=Sophos;i="5.70,323,1574150400"; d="scan'208";a="257021421" Received: from agluck-desk2.sc.intel.com (HELO agluck-desk2.amr.corp.intel.com) ([10.3.52.68]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jan 2020 13:49:19 -0800 Date: Wed, 15 Jan 2020 13:49:18 -0800 From: "Luck, Tony" To: Josh Poimboeuf Cc: Pawan Gupta , Thomas Gleixner , Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Michal Hocko , linux-kernel@vger.kernel.org, Neelima Krishnan , Dave Hansen , Andi Kleen Subject: Re: [PATCH] x86/cpu: Update cached HLE state on write to TSX_CTRL_CPUID_CLEAR Message-ID: <20200115214918.GA13375@agluck-desk2.amr.corp.intel.com> References: <2529b99546294c893dfa1c89e2b3e46da3369a59.1578685425.git.pawan.kumar.gupta@linux.intel.com> <20200115211513.mxzembrm4hf44d6j@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200115211513.mxzembrm4hf44d6j@treble> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 15, 2020 at 03:15:13PM -0600, Josh Poimboeuf wrote: > From the Intel TAA deep dive page [1], it says: > > "On processors that enumerate IA32_ARCH_CAPABILITIES[TSX_CTRL] (bit > 7)=1, HLE prefix hints are always ignored." > > So if the CPU has IA32_TSX_CTRL, HLE is implicitly disabled, so why > would the HLE bit have been set in CPUID in the first place? > > [1] https://software.intel.com/security-software-guidance/insights/deep-dive-intel-transactional-synchronization-extensions-intel-tsx-asynchronous-abort IIRC some VMM folks asked to not make gratuitous to CPUID feature enumeration because it complicates setting up pools of systems. -Tony