Re: [PATCH 04/16] x86/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32
From: Joerg Roedel
Date: Wed Jan 17 2018 - 04:27:07 EST
On Tue, Jan 16, 2018 at 02:46:16PM -0800, Andy Lutomirski wrote:
> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel <joro@xxxxxxxxxx> wrote:
> > From: Joerg Roedel <jroedel@xxxxxxx>
> >
> > 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