From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Oct 2019 21:32:41 -0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1iMfI8-0002eK-QN for speck@linutronix.de; Mon, 21 Oct 2019 23:32:41 +0200 Received: by mail-pf1-x432.google.com with SMTP id h195so9224183pfe.5 for ; Mon, 21 Oct 2019 14:32:40 -0700 (PDT) Received: from ?IPv6:2601:646:c200:1ef2:3602:86ff:fef6:e86b? ([2601:646:c200:1ef2:3602:86ff:fef6:e86b]) by smtp.googlemail.com with ESMTPSA id r19sm15723444pgj.43.2019.10.21.14.32.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Oct 2019 14:32:32 -0700 (PDT) Subject: [MODERATED] Re: [PATCH v7 00/10] TAAv7 0 References: From: Andy Lutomirski Message-ID: Date: Mon, 21 Oct 2019 14:32:31 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="YLFPWstrfY6nvreEfdh2wrORn7ZBH9OXO" To: speck@linutronix.de List-ID: This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) --YLFPWstrfY6nvreEfdh2wrORn7ZBH9OXO Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 10/21/19 1:22 PM, speck for Pawan Gupta wrote: > From: Pawan Gupta > Subject: [PATCH v7 00/10] TAAv7 >=20 > Changes since v6: > - Add Michal's patch to allow tsx=3Don|off|auto via CONFIG > - Rebase to v5.4-rc4 > - Changelog, comments and documentation update. >=20 > Changes since v5: > - Remove unsafe X86_FEATURE_RTM toggles. I'm wondering if maybe these patches shouldn't touch the cpu capabilities at all. After all, even with TSX toggled off, TSX is still present -- XBEGIN doesn't give #UD. By making this change, we avoid needing to even consider what happens when a cpu capability bit changes after boot. I think it would be nice to expose whether TSX is enabled somewhere in sysfs, but I'm not convinced that "features" is the place for it. --YLFPWstrfY6nvreEfdh2wrORn7ZBH9OXO--