Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752650AbeAQJ1B (ORCPT + 1 other); Wed, 17 Jan 2018 04:27:01 -0500 Received: from 8bytes.org ([81.169.241.247]:54678 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209AbeAQJ07 (ORCPT ); Wed, 17 Jan 2018 04:26:59 -0500 Date: Wed, 17 Jan 2018 10:26:57 +0100 From: Joerg Roedel To: Andy Lutomirski Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , LKML , linux-mm@kvack.org, 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 04/16] x86/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32 Message-ID: <20180117092657.GK28161@8bytes.org> References: <1516120619-1159-1-git-send-email-joro@8bytes.org> <1516120619-1159-5-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 16, 2018 at 02:46:16PM -0800, Andy Lutomirski wrote: > On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Move it out of the X86_64 specific processor defines so > > that its visible for 32bit too. > > Hmm. This is okay, I guess, but any code that actually uses this > definition is inherently wrong, since 32-bit implies !PCID. Yes, I tried another approach first which just #ifdef'ed out the relevant parts in tlbflush.h which use this bit. But that seemed to be the wrong path, as there is more PCID code that is compiled in for 32 bit. So defining the bit for 32 bit seemed to be the cleaner solution for now. Joerg