[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a20d9668aeb48e385fa6e6daf18d356bd087f11b.camel@amazon.com>
Date: Wed, 8 Apr 2020 00:14:04 +0000
From: "Singh, Balbir" <sblbir@...zon.com>
To: "tglx@...utronix.de" <tglx@...utronix.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "keescook@...omium.org" <keescook@...omium.org>,
"tony.luck@...el.com" <tony.luck@...el.com>,
"benh@...nel.crashing.org" <benh@...nel.crashing.org>,
"jpoimboe@...hat.com" <jpoimboe@...hat.com>,
"x86@...nel.org" <x86@...nel.org>,
"dave.hansen@...el.com" <dave.hansen@...el.com>
Subject: Re: [PATCH v2 3/4] arch/x86: Optionally flush L1D on context switch
On Wed, 2020-04-08 at 01:52 +0200, Thomas Gleixner wrote:
>
> Balbir,
>
> Balbir Singh <sblbir@...zon.com> writes:
> > diff --git a/arch/x86/include/asm/tlbflush.h
> > b/arch/x86/include/asm/tlbflush.h
> > index 6f66d841262d..69e6ea20679c 100644
> > --- a/arch/x86/include/asm/tlbflush.h
> > +++ b/arch/x86/include/asm/tlbflush.h
> > @@ -172,7 +172,7 @@ struct tlb_state {
> > /* Last user mm for optimizing IBPB */
> > union {
> > struct mm_struct *last_user_mm;
> > - unsigned long last_user_mm_ibpb;
> > + unsigned long last_user_mm_spec;
> > -static inline unsigned long mm_mangle_tif_spec_ib(struct task_struct
> > *next)
> > +static inline unsigned long mm_mangle_tif_spec_bits(struct task_struct
> > *next)
> > -static void cond_ibpb(struct task_struct *next)
> > +static void cond_mitigation(struct task_struct *next)
> > {
> > + unsigned long prev_mm, next_mm;
> > +
> > if (!next || !next->mm)
> > return;
>
> can you please split out these preparatory changes into a separate
> patch?
>
Will do and repost a new iteration
Balbir Singh
Powered by blists - more mailing lists