Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp29297pxb; Wed, 18 Aug 2021 15:05:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaIard/KF5ePUu3apNW4/QcCHl+8YtF2GWUD47bBfAC62oEC3H26zVoh3hTmtEdATo0ZA8 X-Received: by 2002:a17:906:1d41:: with SMTP id o1mr12414860ejh.232.1629324323571; Wed, 18 Aug 2021 15:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629324323; cv=none; d=google.com; s=arc-20160816; b=tk43mW4yPM0h9lHLk4o69l96p8WaBhuN+PDcObJc5NBCcmeGTsEyGKEQMIbHpXVZ6y MuRcHN4YwkZzuo2e61eE8muy5rYeinFesHhsVFAuTu7H2ttIVakAQWGlgg5g2jYNaqTi sOgeiQdSpG4+qM+KA8192GCItMJ+b0RwsKwqsQ7phwUTTwpp8g5yLlBPgJqIBYg27JVk 1iGu8vN4HjyfktW6ILb7HLMheT/h5NdntnAAF2hJmVvT/rD56Z/6CVU84uNe4HJDxaUV w6H6NBRpZEy8TAVEC0EbvMG95buJLtOmOrWG32mqI7jNLat2dGQhUBZ1ZHt/5vO/03zF 9ZPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yOX0l/fl4xpz60byGyTMxCTy5AkyJhMnJ4UUh6rzZho=; b=boH/MKPCt35OIW9M5Xj11HiFtQbY0MY2C5xBCcRN+8vQLMnXDJ3A9P5050GlJqvY7t 5EZPhQAcwUcOuwjKkBrZe1rJjH01HrRlbZ/n14lFtXzmScYgn0TOcMbVKZXrHaKmn7lQ YmR8B0qdjzDJnD7C5A/T6Y7sZNG4vLf+NckuEIxAaaKanSaN8itdgGkkilo1AhbrTPbf YmNYTDoGeAZqf9oQITJBTm1EdeXgm0DxZwxbylt9CWQArcR54ZVi4wQtU4EqxtrAgxyK TgcyQm5FwIg09flXgUngayAef1O0lfQjd3O7/sdYeSet/1lzseZqa+ypwjJu7mKJgyVb unlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bHeS2KPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me4si1144793ejb.648.2021.08.18.15.04.45; Wed, 18 Aug 2021 15:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bHeS2KPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234366AbhHRWCg (ORCPT + 99 others); Wed, 18 Aug 2021 18:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234106AbhHRWCf (ORCPT ); Wed, 18 Aug 2021 18:02:35 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E32EEC061764; Wed, 18 Aug 2021 15:01:59 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id e14so4875635qkg.3; Wed, 18 Aug 2021 15:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yOX0l/fl4xpz60byGyTMxCTy5AkyJhMnJ4UUh6rzZho=; b=bHeS2KPUXJxWBRyADUT/fW9YbgQNW8oGSMVKiI872ERL/9c7bdtduU3Gl/mQd1PTl7 AQDwngtA+ZBRQx/wEdriwdk6PgZkSOB/KbU6AGe/k9ZhX+UBDZMbt4sPeOUjF1bMtVOy pN5o3SpZxbpvLh6BLRbudWPLltlJDM4HMD2gVUKe3/fA3vXPDj0z89EKuWI6m73aubaE kXoqZ2TxG/Tijk1sGNXBcNN4HAH5luXWGf/iy3w5VxDMS6xl0AW/0PkprUVyoMeW6Fq3 BH+zzzCqsvBNNhWlF7enE9MZU4q5/uTJSMjGW+6/7CSHar3QVHLggVaIX2FluVrClOoZ Rg6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yOX0l/fl4xpz60byGyTMxCTy5AkyJhMnJ4UUh6rzZho=; b=caMXGdGfdhivMbncS4fQvDMSUISeSYjUVVTD9WH3UEclfsYRxQCwsPPAofEXcv3u2Z tshaGisGdOs22XF0cwR46BefWNpsm+FZWoOmHQzNoDPfgQtbocy3R43elvu3j8CeNCHl hql9ErhBJB83sCrLgwX7O15RhxmVRL5xAnjj8T2xcNorakI0DmE5y0Z2j6t69ldc1KxS aa8QUjyGq56kgNZxXJQX0RSBvzKvmsqOyqRoElO1wO5DN6UO8JSbl7ItDR8Ztp636mKz 0DZFp25TCFwcFnawSP9+1eDYbXgxKiy2+dLuJozfLCGhvvZZjLdYi7rLl9ZRF6kCbFVx 2DjQ== X-Gm-Message-State: AOAM532pyl+uxJ3cD1e9WI4/QvMCqLGFnkcYqjCzFVECAFYpP7h3iiA+ PLrE9a4x49+2aGMlBkDB1Q== X-Received: by 2002:a37:84c:: with SMTP id 73mr494625qki.208.1629324118450; Wed, 18 Aug 2021 15:01:58 -0700 (PDT) Received: from bytedance.tiktokd.org (104-9-124-193.lightspeed.sntcca.sbcglobal.net. [104.9.124.193]) by smtp.gmail.com with ESMTPSA id i18sm602099qkk.115.2021.08.18.15.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 15:01:57 -0700 (PDT) From: Peilin Ye To: Andrew Morton , x86@kernel.org, Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Joerg Roedel , Muchun Song , Cong Wang , Peilin Ye , Peilin Ye Subject: [PATCH RESEND v2] docs: x86: Remove obsolete information about x86_64 vmalloc() faulting Date: Wed, 18 Aug 2021 15:01:23 -0700 Message-Id: <20210818220123.2623-1-yepeilin.cs@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peilin Ye 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 Signed-off-by: Peilin Ye --- Hi all, Resending this with Muchun's Reviewed-by:. Thanks, Peilin Ye Changes in v2: - More information for x86_32 in commit message (Joerg Roedel ) - Use my new email address for work Documentation/x86/x86_64/mm.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/x86/x86_64/mm.rst b/Documentation/x86/x86_64/mm.rst index ede1875719fb..9798676bb0bf 100644 --- a/Documentation/x86/x86_64/mm.rst +++ b/Documentation/x86/x86_64/mm.rst @@ -140,10 +140,6 @@ The direct mapping covers all memory in the system up to the highest memory address (this means in some cases it can also include PCI memory holes). -vmalloc space is lazily synchronized into the different PML4/PML5 pages of -the processes using the page fault handler, with init_top_pgt as -reference. - We map EFI runtime services in the 'efi_pgd' PGD in a 64Gb large virtual memory window (this size is arbitrary, it can be raised later if needed). The mappings are not part of any other kernel PGD and are only available -- 2.20.1