lkml.org 
[lkml]   [2021]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH RESEND v2] docs: x86: Remove obsolete information about x86_64 vmalloc() faulting
Date
Joerg Roedel <jroedel@suse.de> writes:

> On Wed, Aug 18, 2021 at 03:01:23PM -0700, Peilin Ye wrote:
>> From: Peilin Ye <peilin.ye@bytedance.com>
>>
>> x86_64 vmalloc() mappings are no longer "synchronized" among page tables
>> via faulting since commit 6eb82f994026 ("x86/mm: Pre-allocate P4D/PUD
>> pages for vmalloc area"), since the corresponding P4D or PUD pages are
>> now preallocated at boot, by preallocate_vmalloc_pages(). Drop the
>> "lazily synchronized" description for less confusion.
>>
>> While this file is x86_64-specific, it is worth noting that things are
>> different for x86_32, where vmalloc()-related changes to `init_mm.pgd` are
>> synchronized to all page tables in the system during runtime, via
>> arch_sync_kernel_mappings(). Unfortunately, this synchronization is
>> subject to race condition, which is further handled via faulting, see
>> vmalloc_fault(). See commit 4819e15f740e ("x86/mm/32: Bring back vmalloc
>> faulting on x86_32") for more details.
>>
>> Reviewed-by: Muchun Song <songmuchun@bytedance.com>
>> Signed-off-by: Peilin Ye <peilin.ye@bytedance.com>
>
> Reviewed-by: Joerg Roedel <jroedel@suse.de>

Applied, thanks.

jon

\
 
 \ /
  Last update: 2021-08-20 19:15    [W:0.043 / U:1.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site