[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f232ce18-3122-b045-be92-76fd61b195b5@linux.intel.com>
Date: Thu, 25 Jan 2018 15:07:11 -0800
From: Tim Chen <tim.c.chen@...ux.intel.com>
To: Andy Lutomirski <luto@...nel.org>, Andi Kleen <ak@...ux.intel.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Arjan van de Ven <arjan@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>,
KarimAllah Ahmed <karahmed@...zon.de>,
Andrea Arcangeli <aarcange@...hat.com>,
Ashok Raj <ashok.raj@...el.com>,
Asit Mallick <asit.k.mallick@...el.com>,
Borislav Petkov <bp@...e.de>,
Dan Williams <dan.j.williams@...el.com>,
Dave Hansen <dave.hansen@...el.com>,
David Woodhouse <dwmw@...zon.co.uk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"H . Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...hat.com>,
Janakarajan Natarajan <Janakarajan.Natarajan@....com>,
Joerg Roedel <joro@...tes.org>,
Jun Nakajima <jun.nakajima@...el.com>
Subject: Re: [RFC PATCH 1/2] x86/ibpb: Skip IBPB when we switch back to same
user process
On 01/25/2018 02:01 PM, Andy Lutomirski wrote:
> On Thu, Jan 25, 2018 at 1:57 PM, Andi Kleen <ak@...ux.intel.com> wrote:
>> Andy Lutomirski <luto@...nel.org> writes:
>>>
>>> That being said, just stashing last_user_mm without any refcounting
>>> should be fine.
>>
>> If last_user_mm is freed and reallocated by a different process,
>> then that would miss the IPBP incorrectly.
>>
>
> Hmm, right. So ctx_id it is.
>
> --Andy
>
Thanks. Using ctx_id is a pretty clean approach. I will refresh
this patch and drop the second patch.
Tim
Powered by blists - more mailing lists