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 23:06:32 -0000 Received: from esa1.hc3370-68.iphmx.com ([216.71.145.142]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMgkv-0003eX-Av for speck@linutronix.de; Tue, 22 Oct 2019 01:06:30 +0200 Subject: [MODERATED] Re: [PATCH v7 00/10] TAAv7 0 References: From: Andrew Cooper Message-ID: Date: Tue, 22 Oct 2019 00:06:18 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="8G3iqptiaP6np1iG2ATHygi23Juu9pkcH"; protected-headers="v1" To: speck@linutronix.de List-ID: --8G3iqptiaP6np1iG2ATHygi23Juu9pkcH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-GB On 21/10/2019 22:32, speck for Andy Lutomirski wrote: > On 10/21/19 1:22 PM, speck for Pawan Gupta wrote: >> From: Pawan Gupta >> Subject: [PATCH v7 00/10] TAAv7 >> >> 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. >> >> 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 stil= l > present -- XBEGIN doesn't give #UD. So, there is some history here. The first microcode version had XBEGIN giving #UD, and a fair chunk of ancillary behaviour revolved around that. However, that is rather catastrophic for late-loading the microcode and securing the system in place, so the behaviour was relaxed from #UD to abort. That way, folk who late-load the microcode can secure their systems by setting the RTM_ABORT bit, and folk booting "fresh" with the new microcode can set both the RTM_ABORT and CPUID bits, to cause userspace to believe there is no RTM at all, and avoid their unconditional abort. ~Andrew P.S. I did ask if we could have both #UD and abort, and got a firm no based on patch space. --8G3iqptiaP6np1iG2ATHygi23Juu9pkcH--