Received: by 10.223.176.5 with SMTP id f5csp1137531wra; Fri, 9 Feb 2018 13:10:14 -0800 (PST) X-Google-Smtp-Source: AH8x226sIhslOp5BD9i2iMKNzfDqCFGwjTRpERy2JxTd5Bh8HnbXKYoSmxS1mRSSgs6NnevjFcKH X-Received: by 10.99.179.8 with SMTP id i8mr351039pgf.337.1518210614509; Fri, 09 Feb 2018 13:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518210614; cv=none; d=google.com; s=arc-20160816; b=DNeDSJhz/uZe6/o0AaoLV1hUU+Uz4FCxF8k4NmIZe673on5uj6hxXO4Rn9NQxh/Q0g W9THhQsE3WAgNN+BFvgNvpK7f9RdMl+gZKAQ8ErLE6KjFRHGdePZiL4X++4df3/FzsJE kqsR4lzXqvPzPWdupjFA2qRDm/UYAc9DufRqhTU3/4jETjD4XVXXKj6I0f1raKGzhl3Q 1EVS7aL5MeJ2JofNWlo/ux1a3322ppHCO3EdV/DJ3/agmWJXxJEdjbbVpNFCYR2GbKQ/ j77T1i6OItAS3rSSZZ1BcFOg5tzZIo3y/P+D1uF55UP7ISIYyo22ulKagfgNfrrWBRnO 1kdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VkfdadkEGZs3WnISVAlFGkfnSB24HdgcHUlJm4PIOts=; b=P/pRVeOOQ/bUkrXBFh1lOvQsNBHk839SWh+erReqtKWz81Ed2Jj+OISt6EZ0svcMrz mlyAnm6QNKZaPfnrk83wmYZgwqbSiVOy0WSnBJydy8rOd/fByDqZCU4UsCuOC1qHvKgQ Nqyxmde5Er9xLmPKw7oFMiuuSborqSksKtyBaLYa0PvYoZhdYQEu/RKhNkxzTI9+KJT2 GHzKbHXZ78Lflw5l96Crky8ixdLAhozMxCbimcLC1BkBqo4ZlER1QNNareSM1KmD5vyW A0n8kYjXqg3p9E06s9JjxSvJwGviOG+FRaXFCEl8x2Zjo8HU9jJLKck8LAk3RtS0s4we tfrg== 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 f4si1828569pgn.334.2018.02.09.13.10.00; Fri, 09 Feb 2018 13:10:14 -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 S1752819AbeBIVJU (ORCPT + 99 others); Fri, 9 Feb 2018 16:09:20 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50275 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbeBIVJT (ORCPT ); Fri, 9 Feb 2018 16:09:19 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 8C0408015E; Fri, 9 Feb 2018 22:09:17 +0100 (CET) Date: Fri, 9 Feb 2018 22:09:18 +0100 From: Pavel Machek To: Andy Lutomirski Cc: Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , LKML , Linux-MM , Linus Torvalds , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Joerg Roedel Subject: Re: [PATCH 00/31 v2] PTI support for x86_32 Message-ID: <20180209210918.GA7333@amd> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2018-02-09 17:47:43, Andy Lutomirski wrote: > On Fri, Feb 9, 2018 at 9:25 AM, Joerg Roedel wrote: > > Hi, > > > > here is the second version of my PTI implementation for > > x86_32, based on tip/x86-pti-for-linus. It took a lot longer > > than I had hoped, but there have been a number of obstacles > > on the way. It also isn't the small patch-set anymore that v1 > > was, but compared to it this one actually works :) >=20 > One thing worth noting is that performance of this whole series is > going to be abysmal due to the complete lack of 32-bit PCID. Maybe > any kernel built with this option set that runs on a CPU that has >the What kind of slowdown are we talking about here? > PCID bit set in CPUID should print a big fat warning like "WARNING: > you are using 32-bit PTI on a 64-bit PCID-capable CPU. Your > performance will increase dramatically if you switch to a 64-bit > kernel." Hardware supports PCID even on 32-bit kernels, no? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlp+Df0ACgkQMOfwapXb+vLUOQCgsuGLg/bps5hW4emf9c2c6MEJ DcAAn1C0vweSUfM1H+KV6WqM9hqO0T5s =CfYt -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--