lkml.org 
[lkml]   [2017]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 53/60] x86/mm: Use/Fix PCID to optimize user/kernel switches
From
Date
On 12/05/2017 02:05 PM, Peter Zijlstra wrote:
>> I haven't checked that hard which patch introduces this bug, but it
>> seems that, with this applied, nothing propagates
>> non-mm-switch-related flushes to usermode. Shouldn't
>> flush_tlb_func_common() contain a call to invalidate_user_asid() near
>> the bottom? Alternatively, it could be in local_flush_tlb() and
>> __flush_tlb_single() (or whatever the hell the flush-one-usermode-TLB
>> function ends up being called).
> __native_flush_tlb_single() has the invalidate_user_asid()
> __native_flush_tlb() has the invalidate_user_asid().
>
> Which should be exactly that last option you mention.

I can also see INVPCIDs in profiles, so it's definitely getting used.

\
 
 \ /
  Last update: 2017-12-05 23:12    [W:0.077 / U:39.052 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site