From nobody Wed Nov 27 02:38:55 2024 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5102A1ABEAD; Mon, 14 Oct 2024 15:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921386; cv=none; b=fVws7v9pyrHm2FzXlPn7Q0As672r5gHOzYYgEjDA5I7C5wz6wsOBntEDSLBieaJg/yUxDo2PpGoxZaijJnmgrn1+yMTBQ4PFhGyJiE+mDvf174fpjFHCKDnrp9bL1v8dIAykWmzRr88dCUoqUBs8nC3kA0zKrr3ziprc+hb6XDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921386; c=relaxed/simple; bh=SHSZVuK2D0wgER5KHUOGvKJhB9VH/naA3sZyvXYId+M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ES3v9oag67ni1U6Woyvw6uzB0MvyljPBK6Rvalt0t59SCOFLkqG8zQIYZeLtXnjlgias8YEqHOHokc6thAUjzYvQi5tYN42usUI6J7HphlnQHOpndygyPVFTd9rwnN+2BOZ4Q5R+CQNVxROe5Pklt5zYWgjlqR9kY3RWZNbsjpw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SuSX6edQ; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SuSX6edQ" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-20b533c6865so1788515ad.2; Mon, 14 Oct 2024 08:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728921383; x=1729526183; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0G12opKarmpQeUlZcm10MykbzE5ET64avCoJbJLFBOs=; b=SuSX6edQeeVb6BBw6w/8L+AhwUxV6sp7jHkOqYO9Hfgnc6hjWsmuCnIIEWidXk+ZWn cK66d/usXI9zyG4ucDfjSXscWTV7pH+A+Zx1JAqvyq9bJ0tbh3mBJ/55hOujJhk6vqzQ pGK0qwWam/4uhco72DRwJppSnODZt/8+j3U+cjsW+wwsRE3YLgug9rUk/dTRuy649mqe CIJOjoFivHBKHo0B8eUZTwKYu2ZYPI+E3y761vtO+/Y2gW/6iGp5bZDnhLhDaJdWQBZF Vuz5v9cRwFzxtTUK3YeWmaJadR+MR7m/Z/hc2ln2iVqriHfCKvpTcj4Iy8i6moPH9DHW i8Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728921383; x=1729526183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0G12opKarmpQeUlZcm10MykbzE5ET64avCoJbJLFBOs=; b=f6M0BPi+APPv7+hbGGerFevuiaLnzYlL9Qp9bku86yKhZcQJ3CrcL4w8eoI9uWw2Zk 4Z43isI9+68anDxJT1UEKXjJQvlQEQKfFS25uFjFlGD9+eD8lHp6sKF2WdZxV7Q4B8Gt gHotqCqyQZYbENGwkFQ7qgeP577RMdIvZp+E9Cgp/0yZZBi4GbPqXA5ztzgL3QjSLIEC 3Ae++pYWmTSzX7S1JR1V0xaiHuxRu7OTwmX0fcHP7dbbYYc6Tip5pZe4y9nIyiJRci4x N+jYQERyszDQsUWoSOaLpnERs18KB5OTxrzbJ6qsWE1qb1oPy6pp0IyzYE+aceNh0jw1 MUyA== X-Forwarded-Encrypted: i=1; AJvYcCVUtSfqNP08Ovp50Ni1TlZJnWM+sqFaY3hoaf9zpiX+hhqfQq0AoW05gzh/UYorrvEQ2qP+ukL4rHRvMfs=@vger.kernel.org X-Gm-Message-State: AOJu0YyXO+ZMvFqFPOaPYx3Rhy95+efQ75Xllr7xyvAvZ8KBQcuXsRPx zx7cWl0mCcYdtGVc8+rntaXVK1fQdJegHOJJ7PdjKQuYeCQNMmq9 X-Google-Smtp-Source: AGHT+IGJhsk4Pidi5EALG4zCBdYTun401md+C5vq2mCB1tUj0/9Ouq0sWSg3PienmB0jej3XVQ8qmA== X-Received: by 2002:a17:902:f54d:b0:20c:d04f:94ad with SMTP id d9443c01a7336-20cd04f971bmr40056575ad.4.1728921383338; Mon, 14 Oct 2024 08:56:23 -0700 (PDT) Received: from aizome.localdomain ([117.172.223.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20d00363205sm11168485ad.53.2024.10.14.08.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 08:56:22 -0700 (PDT) From: Pengyu Zhang To: alexs@kernel.org, siyanteng@loongson.cn, corbet@lwn.net, seakeel@gmail.com, si.yanteng@linux.dev Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, zpenya1314@gmail.com, yaxin_wang_uestc@163.com, zenghui.yu@linux.dev Subject: [PATCH v5 1/3] Docs/zh_CN: Translate page_tables.rst to Simplified Chinese Date: Mon, 14 Oct 2024 23:55:24 +0800 Message-Id: <20241014155526.17065-2-zpenya1314@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241014155526.17065-1-zpenya1314@gmail.com> References: <20241014155526.17065-1-zpenya1314@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This patch provides a Simplified Chinese translation of the "page_tables.rst" document, aimed at improving accessibility for Chinese-speaking developers and users. The translation prioritizes technical accuracy and readability, ensuring that the content remains clear and informative for its intended audience. Update to commit d83d5cdfa125 ("Documentation/page_tables: Add info about MMU/TLB and Page Faults") Reviewed-by: Alex Shi Signed-off-by: Pengyu Zhang --- v4->v5:add commit tag and Reviewed-by tag pointed by Yanteng, and restore the pfn value to 0x3fffff. v3->v4:fix comments from Zenghui v2->v3:fix issues mentioned by Alex v1->v2:fix issues mentioned by Alex, Dongliang Documentation/translations/zh_CN/mm/index.rst | 1 + .../translations/zh_CN/mm/page_tables.rst | 221 ++++++++++++++++++ 2 files changed, 222 insertions(+) create mode 100644 Documentation/translations/zh_CN/mm/page_tables.rst diff --git a/Documentation/translations/zh_CN/mm/index.rst b/Documentation/= translations/zh_CN/mm/index.rst index b950dd118be7..960b6d2f3d18 100644 --- a/Documentation/translations/zh_CN/mm/index.rst +++ b/Documentation/translations/zh_CN/mm/index.rst @@ -53,6 +53,7 @@ Linux=E5=86=85=E5=AD=98=E7=AE=A1=E7=90=86=E6=96=87=E6=A1= =A3 page_migration page_owner page_table_check + page_tables remap_file_pages split_page_table_lock vmalloced-kernel-stacks diff --git a/Documentation/translations/zh_CN/mm/page_tables.rst b/Document= ation/translations/zh_CN/mm/page_tables.rst new file mode 100644 index 000000000000..544381c348b1 --- /dev/null +++ b/Documentation/translations/zh_CN/mm/page_tables.rst @@ -0,0 +1,221 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: ../disclaimer-zh_CN.rst + +:Original: Documentation/mm/page_tables.rst + +:=E7=BF=BB=E8=AF=91: + + =E5=BC=A0=E9=B9=8F=E5=AE=87 Pengyu Zhang + +:=E6=A0=A1=E8=AF=91: + +=3D=3D=3D=3D +=E9=A1=B5=E8=A1=A8 +=3D=3D=3D=3D + +=E5=88=86=E9=A1=B5=E8=99=9A=E6=8B=9F=E5=86=85=E5=AD=98=E6=98=AF=E9=9A=8F= =E8=99=9A=E6=8B=9F=E5=86=85=E5=AD=98=E7=9A=84=E6=A6=82=E5=BF=B5=E4=B8=80=E8= =B5=B7=E4=BA=8E 1962 =E5=B9=B4=E5=9C=A8 Ferranti Atlas =E8=AE=A1=E7=AE=97= =E6=9C=BA=E4=B8=8A=E8=A2=AB=E6=8F=90=E5=87=BA=E7=9A=84=EF=BC=8C +=E8=BF=99=E6=98=AF=E7=AC=AC=E4=B8=80=E5=8F=B0=E6=9C=89=E5=88=86=E9=A1=B5= =E8=99=9A=E6=8B=9F=E5=86=85=E5=AD=98=E7=9A=84=E8=AE=A1=E7=AE=97=E6=9C=BA=E3= =80=82=E9=9A=8F=E7=9D=80=E6=97=B6=E9=97=B4=E6=8E=A8=E7=A7=BB=EF=BC=8C=E8=BF= =99=E4=B8=AA=E7=89=B9=E6=80=A7=E8=A2=AB=E8=BF=81=E7=A7=BB=E5=88=B0=E6=9B=B4= =E6=96=B0=E7=9A=84=E8=AE=A1=E7=AE=97=E6=9C=BA=E4=B8=8A=EF=BC=8C +=E5=B9=B6=E4=B8=94=E6=88=90=E4=B8=BA=E6=89=80=E6=9C=89=E7=B1=BB Unix =E7= =B3=BB=E7=BB=9F=E5=AE=9E=E9=99=85=E7=9A=84=E7=89=B9=E6=80=A7=E3=80=82=E5=9C= =A8 1985 =E5=B9=B4=EF=BC=8C=E8=BF=99=E4=B8=AA=E7=89=B9=E6=80=A7=E8=A2=AB=E5= =8C=85=E5=90=AB=E5=9C=A8=E4=BA=86=E8=8B=B1=E7=89=B9=E5=B0=94 80386 +=E4=B8=AD=EF=BC=8C=E4=B9=9F=E5=B0=B1=E6=98=AF Linux 1.0 =E5=9F=BA=E4=BA=8E= =E7=9A=84 CPU=E3=80=82 + +=E9=A1=B5=E8=A1=A8=E5=B0=86 CPU =E7=9C=8B=E5=88=B0=E7=9A=84=E8=99=9A=E6=8B= =9F=E5=9C=B0=E5=9D=80=E6=98=A0=E5=B0=84=E5=88=B0=E5=A4=96=E9=83=A8=E5=86=85= =E5=AD=98=E6=80=BB=E7=BA=BF=E4=B8=8A=E7=9C=8B=E5=88=B0=E7=9A=84=E7=89=A9=E7= =90=86=E5=9C=B0=E5=9D=80=E3=80=82 + +Linux =E5=B0=86=E9=A1=B5=E8=A1=A8=E5=AE=9A=E4=B9=89=E4=B8=BA=E4=B8=80=E4= =B8=AA=E5=88=86=E7=BA=A7=E7=BB=93=E6=9E=84=EF=BC=8C=E7=9B=AE=E5=89=8D=E6=9C= =89=E4=BA=94=E7=BA=A7=E3=80=82=E5=AF=B9=E4=BA=8E=E6=94=AF=E6=8C=81=E7=9A=84= =E6=AF=8F=E7=A7=8D=E6=9E=B6=E6=9E=84=EF=BC=8C=E5=85=B6=E4=BB=A3=E7=A0=81=E4= =BC=9A=E6=A0=B9=E6=8D=AE=E7=A1=AC=E4=BB=B6 +=E9=99=90=E5=88=B6=E5=AF=B9=E8=BF=99=E4=B8=AA=E5=B1=82=E7=BA=A7=E7=BB=93= =E6=9E=84=E8=BF=9B=E8=A1=8C=E6=98=A0=E5=B0=84=E3=80=82 + +=E8=99=9A=E6=8B=9F=E5=9C=B0=E5=9D=80=E5=AF=B9=E5=BA=94=E7=9A=84=E7=89=A9= =E7=90=86=E5=9C=B0=E5=9D=80=E9=80=9A=E5=B8=B8=E7=94=B1=E5=BA=95=E5=B1=82=E7= =89=A9=E7=90=86=E9=A1=B5=E5=B8=A7=E5=BC=95=E7=94=A8=E3=80=82 **=E9=A1=B5=E5= =B8=A7=E5=8F=B7(page frame number,pfn)** +=E6=98=AF=E9=A1=B5=E7=9A=84=E7=89=A9=E7=90=86=E5=9C=B0=E5=9D=80=EF=BC=88= =E5=9C=A8=E5=A4=96=E9=83=A8=E5=86=85=E5=AD=98=E6=80=BB=E7=BA=BF=E7=9C=8B=E5= =88=B0=E7=9A=84=E5=9C=B0=E5=9D=80=EF=BC=89=E9=99=A4=E4=BB=A5 `PAGE_SIZE` = =E5=BE=97=E5=88=B0=E7=9A=84=E5=80=BC=E3=80=82 + +=E7=89=A9=E7=90=86=E5=86=85=E5=AD=98=E5=9C=B0=E5=9D=80 0 =E5=AF=B9=E5=BA= =94 *pfn 0*=EF=BC=8C=E8=80=8C=E6=9C=80=E5=A4=A7=E7=9A=84 pfn =E5=AF=B9=E5= =BA=94=E5=A4=84=E7=90=86=E5=99=A8=E5=A4=96=E9=83=A8=E5=9C=B0=E5=9D=80=E6=80= =BB=E7=BA=BF=E6=89=80=E8=83=BD=E5=AF=BB=E5=9D=80=E7=89=A9=E7=90=86=E5=9C=B0= =E5=9D=80 +=E7=9A=84=E6=9C=80=E5=90=8E=E4=B8=80=E9=A1=B5=E3=80=82 + +=E5=9C=A8=E9=A1=B5=E7=B2=92=E5=BA=A6=E4=B8=BA 4KB =E4=B8=94=E5=9C=B0=E5=9D= =80=E8=8C=83=E5=9B=B4=E4=B8=BA32=E4=BD=8D=E7=9A=84=E6=83=85=E5=86=B5=E4=B8= =8B=EF=BC=8Cpfn 0 =E5=AF=B9=E5=BA=94=E5=9C=B0=E5=9D=800x00000000=EF=BC=8Cpf= n 1 =E5=AF=B9=E5=BA=94 +=E5=9C=B0=E5=9D=800x00001000=EF=BC=8Cpfn 2 =E5=AF=B9=E5=BA=94=E5=9C=B0=E5= =9D=80 0x00002000=EF=BC=8C=E4=BB=A5=E6=AD=A4=E7=B1=BB=E6=8E=A8=EF=BC=8C=E7= =9B=B4=E5=88=B0 pfn 0xfffff =E5=AF=B9=E5=BA=94 +0xfffff000=E3=80=82=E5=A6=82=E6=9E=9C=E9=A1=B5=E7=B2=92=E5=BA=A6=E4=B8=BA = 16KB=EF=BC=8C=E5=88=99 pfn =E5=88=86=E5=88=AB=E5=AF=B9=E5=BA=94=E5=9C=B0=E5= =9D=80 0x00004000=E3=80=810x00008000 +... 0xffffc000=EF=BC=8Cpfn =E7=9A=84=E8=8C=83=E5=9B=B4=E4=BB=8E 0 =E5=88= =B0 0x3fffff=E3=80=82 + +=E5=A6=82=E4=BD=A0=E6=89=80=E8=A7=81=EF=BC=8C=E5=AF=B9=E4=BA=8E 4KB =E9=A1= =B5=E9=9D=A2=E7=B2=92=E5=BA=A6=EF=BC=8C=E9=A1=B5=E5=9F=BA=E5=9D=80=E4=BD=BF= =E7=94=A8=E5=9C=B0=E5=9D=80=E7=9A=84 12-31 =E4=BD=8D=EF=BC=8C=E8=BF=99=E5= =B0=B1=E6=98=AF=E4=B8=BA=E4=BB=80=E4=B9=88=E5=9C=A8=E8=BF=99=E7=A7=8D=E6=83= =85=E5=86=B5=E4=B8=8B +`PAGE_SHIFT` =E8=A2=AB=E5=AE=9A=E4=B9=89=E4=B8=BA 12=EF=BC=8C=E5=B9=B6=E4= =B8=94 `PAGE_SIZE` =E9=80=9A=E5=B8=B8=E7=94=B1=E9=A1=B5=E5=81=8F=E7=A7=BB= =E5=AE=9A=E4=B9=89=EF=BC=8C=E4=B8=BA `(1 << PAGE_SHIFT)`=E3=80=82 + +=E9=9A=8F=E7=9D=80=E5=86=85=E5=AD=98=E5=AE=B9=E9=87=8F=E7=9A=84=E5=A2=9E= =E5=8A=A0=EF=BC=8C=E4=B9=85=E8=80=8C=E4=B9=85=E4=B9=8B=E5=B1=82=E7=BA=A7=E7= =BB=93=E6=9E=84=E9=80=90=E6=B8=90=E5=8A=A0=E6=B7=B1=E3=80=82Linux =E6=9C=80= =E5=88=9D=E4=BD=BF=E7=94=A8 4KB =E9=A1=B5=E9=9D=A2=E5=92=8C=E4=B8=80=E4=B8= =AA=E5=90=8D=E4=B8=BA +`swapper_pg_dir` =E7=9A=84=E9=A1=B5=E8=A1=A8=EF=BC=8C=E8=AF=A5=E9=A1=B5=E8= =A1=A8=E6=8B=A5=E6=9C=89 1024 =E4=B8=AA=E6=9D=A1=E7=9B=AE(entries)=EF=BC=8C= =E8=A6=86=E7=9B=96 4MB =E7=9A=84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F=AF=E4=BB=A5=E7=9B=B4=E6=8E=A5=E6=8C=87=E5=90=91=E4=B8=80=E4=B8= =AA=E7=89=A9=E7=90=86=E5=9C=B0=E5=9D=80=E8=8C=83=E5=9B=B4=EF=BC=8C=E8=BF=99= =E4=BD=BF=E5=BE=97=E5=8D=95=E4=B8=AA=E4=B8=8A=E5=B1=82 +=E9=A1=B5=E8=A1=A8=E6=9D=A1=E7=9B=AE=E5=8F=AF=E4=BB=A5=E8=BF=9E=E7=BB=AD= =E6=98=A0=E5=B0=84=E5=87=A0=E5=85=86=E5=AD=97=E8=8A=82=E7=94=9A=E8=87=B3=E5= =87=A0=E5=8D=83=E5=85=86=E5=AD=97=E8=8A=82=E7=9A=84=E5=86=85=E5=AD=98=E8=8C= =83=E5=9B=B4=EF=BC=8C=E4=BB=8E=E8=80=8C=E5=BF=AB=E6=8D=B7=E5=9C=B0=E5=AE=9E= =E7=8E=B0=E8=99=9A=E6=8B=9F=E5=9C=B0=E5=9D=80=E5=88=B0 +=E7=89=A9=E7=90=86=E5=9C=B0=E5=9D=80=E7=9A=84=E6=98=A0=E5=B0=84=EF=BC=9A= =E5=BD=93=E4=BD=A0=E6=89=BE=E5=88=B0=E4=B8=80=E4=B8=AA=E5=83=8F=E8=BF=99=E6= =A0=B7=E7=9A=84=E5=A4=A7=E5=9E=8B=E6=98=A0=E5=B0=84=E8=8C=83=E5=9B=B4=E6=97= =B6=EF=BC=8C=E6=97=A0=E9=9C=80=E5=9C=A8=E5=B1=82=E7=BA=A7=E7=BB=93=E6=9E=84= =E4=B8=AD=E8=BF=9B=E4=B8=80=E6=AD=A5=E9=81=8D=E5=8E=86=E3=80=82 + +=E9=A1=B5=E8=A1=A8=E7=9A=84=E5=B1=82=E7=BA=A7=E7=BB=93=E6=9E=84=E7=9B=AE= =E5=89=8D=E5=8F=91=E5=B1=95=E4=B8=BA=E5=A6=82=E4=B8=8B=E6=89=80=E7=A4=BA:: + + +-----+ + | PGD | + +-----+ + | + | +-----+ + +-->| P4D | + +-----+ + | + | +-----+ + +-->| PUD | + +-----+ + | + | +-----+ + +-->| PMD | + +-----+ + | + | +-----+ + +-->| PTE | + +-----+ + + +=E4=B8=8D=E5=90=8C=E9=A1=B5=E8=A1=A8=E5=B1=82=E7=BA=A7=E7=9A=84=E7=AC=A6= =E5=8F=B7=E5=90=AB=E4=B9=89=E4=BB=8E=E6=9C=80=E5=BA=95=E5=B1=82=E5=BC=80=E5= =A7=8B=E5=A6=82=E4=B8=8B=EF=BC=9A + +- **pte**, `pte_t`, `pteval_t` =3D **=E9=A1=B5=E8=A1=A8=E6=9D=A1=E7=9B=AE*= * - =E5=89=8D=E9=9D=A2=E6=8F=90=E5=88=B0=E8=BF=87=E3=80=82*pte* =E6=98=AF= =E4=B8=80=E4=B8=AA=E7=94=B1 + `PTRS_PER_PTE` =E4=B8=AA `pteval_t` =E7=B1=BB=E5=9E=8B=E5=85=83=E7=B4=A0= =E7=BB=84=E6=88=90=E7=9A=84=E6=95=B0=E7=BB=84=EF=BC=8C=E6=AF=8F=E4=B8=AA=E5= =85=83=E7=B4=A0=E5=B0=86=E4=B8=80=E4=B8=AA=E8=99=9A=E6=8B=9F=E5=86=85=E5=AD= =98=E9=A1=B5 + =E6=98=A0=E5=B0=84=E5=88=B0=E4=B8=80=E4=B8=AA=E7=89=A9=E7=90=86=E5=86=85= =E5=AD=98=E9=A1=B5=E3=80=82=E4=BD=93=E7=B3=BB=E7=BB=93=E6=9E=84=E5=AE=9A=E4= =B9=89=E4=BA=86 `pteval_t` =E7=9A=84=E5=A4=A7=E5=B0=8F=E5=92=8C=E5=86=85=E5= =AE=B9=E3=80=82 + + =E4=B8=80=E4=B8=AA=E5=85=B8=E5=9E=8B=E7=9A=84=E4=BE=8B=E5=AD=90=E6=98=AF= `pteval_t` =E6=98=AF=E4=B8=80=E4=B8=AA 32 =E6=88=96=E8=80=85 64 =E4=BD=8D= =E7=9A=84=E5=80=BC=EF=BC=8C=E5=85=B6=E4=B8=AD=E9=AB=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pmd**, `pmd_t`, `pmdval_t` =3D **=E9=A1=B5=E4=B8=AD=E9=97=B4=E7=9B=AE= =E5=BD=95(Page Middle Directory)**, + =E4=BD=8D=E4=BA=8E *pte* =E4=B9=8B=E4=B8=8A=E7=9A=84=E5=B1=82=E7=BA=A7= =E7=BB=93=E6=9E=84=EF=BC=8C=E5=8C=85=E5=90=AB `PTRS_PER_PMD` =E4=B8=AA=E6= =8C=87=E5=90=91 *pte* =E7=9A=84=E5=BC=95=E7=94=A8=E3=80=82 + +- **pud**, `pud_t`, `pudval_t` =3D **=E9=A1=B5=E4=B8=8A=E7=BA=A7=E7=9B=AE= =E5=BD=95(Page Upper Directory)** + =E6=98=AF=E5=9C=A8=E5=85=B6=E4=BB=96=E5=B1=82=E7=BA=A7=E4=B9=8B=E5=90=8E= =E5=BC=95=E5=85=A5=E7=9A=84=EF=BC=8C=E7=94=A8=E4=BA=8E=E5=A4=84=E7=90=86=E5= =9B=9B=E7=BA=A7=E9=A1=B5=E8=A1=A8=E3=80=82=E5=AE=83=E5=8F=AF=E8=83=BD=E6=9C= =AA=E8=A2=AB=E4=BD=BF=E7=94=A8=EF=BC=8C=E6=88=96=E8=80=85=E5=83=8F=E6=88=91= =E4=BB=AC=E7=A8=8D=E5=90=8E + =E8=AE=A8=E8=AE=BA=E7=9A=84=E9=82=A3=E6=A0=B7=E8=A2=AB=E2=80=9C=E6=8A=98= =E5=8F=A0=E2=80=9D=E3=80=82 + +- **p4d**, `p4d_t`, `p4dval_t` =3D **=E9=A1=B5=E5=9B=9B=E7=BA=A7=E7=9B=AE= =E5=BD=95(Page Level 4 Directory)** + =E6=98=AF=E5=9C=A8 *pud* =E4=B9=8B=E5=90=8E=E7=94=A8=E4=BA=8E=E5=A4=84= =E7=90=86=E4=BA=94=E7=BA=A7=E9=A1=B5=E8=A1=A8=E5=BC=95=E5=85=A5=E7=9A=84=E3= =80=82=E8=87=B3=E6=AD=A4=EF=BC=8C=E6=98=BE=E7=84=B6=E9=9C=80=E8=A6=81=E7=94= =A8=E6=95=B0=E5=AD=97=E6=9D=A5=E6=9B=BF=E4=BB=A3 *pgd*=E3=80=81 + *pmd*=E3=80=81*pud* =E7=AD=89=E7=9B=AE=E5=BD=95=E5=B1=82=E7=BA=A7=E7=9A= =84=E5=90=8D=E7=A7=B0=EF=BC=8C=E4=B8=8D=E8=83=BD=E5=86=8D=E7=BB=A7=E7=BB=AD= =E4=BD=BF=E7=94=A8=E4=B8=B4=E6=97=B6=E7=9A=84=E5=91=BD=E5=90=8D=E6=96=B9=E5= =BC=8F=E3=80=82=E8=BF=99=E4=B8=AA=E7=9B=AE=E5=BD=95=E5=B1=82=E7=BA=A7 + =E5=8F=AA=E5=9C=A8=E5=AE=9E=E9=99=85=E6=8B=A5=E6=9C=89=E4=BA=94=E7=BA=A7= =E9=A1=B5=E8=A1=A8=E7=9A=84=E7=B3=BB=E7=BB=9F=E4=B8=8A=E4=BD=BF=E7=94=A8=EF= =BC=8C=E5=90=A6=E5=88=99=E5=AE=83=E4=BC=9A=E8=A2=AB=E6=8A=98=E5=8F=A0=E3=80= =82 + +- **pgd**, `pgd_t`, `pgdval_t` =3D **=E9=A1=B5=E5=85=A8=E5=B1=80=E7=9B=AE= =E5=BD=95(Page Global Directory)** - + Linux =E5=86=85=E6=A0=B8=E7=94=A8=E4=BA=8E=E5=A4=84=E7=90=86=E5=86=85=E6= =A0=B8=E5=86=85=E5=AD=98=E7=9A=84 *PGD* =E4=B8=BB=E9=A1=B5=E8=A1=A8=E4=BB= =8D=E7=84=B6=E4=BD=8D=E4=BA=8E `swapper_pg_dir`=E3=80=82 + =E4=BD=86=E7=B3=BB=E7=BB=9F=E4=B8=AD=E7=9A=84=E6=AF=8F=E4=B8=AA=E7=94=A8= =E6=88=B7=E7=A9=BA=E9=97=B4=E8=BF=9B=E7=A8=8B=E4=B9=9F=E6=9C=89=E8=87=AA=E5= =B7=B1=E7=9A=84=E5=86=85=E5=AD=98=E4=B8=8A=E4=B8=8B=E6=96=87=EF=BC=8C=E5=9B= =A0=E6=AD=A4=E4=B9=9F=E6=9C=89=E8=87=AA=E5=B7=B1=E7=9A=84 *pgd*=EF=BC=8C + =E5=AE=83=E4=BD=8D=E4=BA=8E `struct mm_struct` =E4=B8=AD=EF=BC=8C=E8=80= =8C `struct mm_struct` =E5=8F=88=E5=9C=A8=E6=AF=8F=E4=B8=AA `struct task_st= ruct` + =E4=B8=AD=E6=9C=89=E5=BC=95=E7=94=A8=E3=80=82=E6=89=80=E4=BB=A5=EF=BC=8C= =E4=BB=BB=E5=8A=A1=EF=BC=88=E8=BF=9B=E7=A8=8B=EF=BC=89=E5=AD=98=E5=9C=A8=E4= =B8=80=E4=B8=AA=E5=BD=A2=E5=BC=8F=E4=B8=BA `struct mm_struct` =E7=9A=84=E5= =86=85=E5=AD=98=E4=B8=8A=E4=B8=8B=E6=96=87=EF=BC=8C + =E8=80=8C=E8=BF=99=E4=B8=AA=E7=BB=93=E6=9E=84=E4=BD=93=E4=B8=AD=E6=9C=89= =E4=B8=80=E4=B8=AA=E6=8C=87=E5=90=91=E6=8C=87=E5=90=91=E7=9B=B8=E5=BA=94=E7= =9A=84=E9=A1=B5=E5=85=A8=E5=B1=80=E7=9B=AE=E5=BD=95 `struct pgt_t *pgd` =E6= =8C=87=E9=92=88=E3=80=82 + +=E9=87=8D=E7=94=B3=E4=B8=80=E4=B8=8B=EF=BC=9A=E9=A1=B5=E8=A1=A8=E5=B1=82= =E7=BA=A7=E7=BB=93=E6=9E=84=E4=B8=AD=E7=9A=84=E6=AF=8F=E4=B8=80=E5=B1=82=E9= =83=BD=E6=98=AF=E4=B8=80=E4=B8=AA *=E6=8C=87=E9=92=88=E6=95=B0=E7=BB=84*=EF= =BC=8C=E6=89=80=E4=BB=A5 *pgd* =E5=8C=85=E5=90=AB `PTRS_PER_PGD` +=E4=B8=AA=E6=8C=87=E5=90=91=E4=B8=8B=E4=B8=80=E5=B1=82=E7=9A=84=E6=8C=87= =E9=92=88=EF=BC=8C*p4d* =E5=8C=85=E5=90=AB `PTRS_PER_P4D` =E4=B8=AA=E6=8C= =87=E5=90=91 *pud* =E9=A1=B9=E7=9A=84=E6=8C=87=E9=92=88=EF=BC=8C=E4=BE=9D= =E6=AD=A4=E7=B1=BB=E6=8E=A8=E3=80=82 +=E6=AF=8F=E4=B8=80=E5=B1=82=E7=9A=84=E6=8C=87=E9=92=88=E6=95=B0=E9=87=8F= =E7=94=B1=E4=BD=93=E7=B3=BB=E7=BB=93=E6=9E=84=E5=AE=9A=E4=B9=89=E3=80=82:: + + PMD + --> +-----+ PTE + | ptr |-------> +-----+ + | ptr |- | ptr |-------> PAGE + | ptr | \ | ptr | + | ptr | \ ... + | ... | \ + | ptr | \ PTE + +-----+ +----> +-----+ + | ptr |-------> PAGE + | ptr | + ... + +=E9=A1=B5=E8=A1=A8=E6=8A=98=E5=8F=A0 +=3D=3D=3D=3D=3D=3D=3D=3D + +=E5=A6=82=E6=9E=9C=E6=9E=B6=E6=9E=84=E4=B8=8D=E4=BD=BF=E7=94=A8=E6=89=80= =E6=9C=89=E7=9A=84=E9=A1=B5=E8=A1=A8=E5=B1=82=E7=BA=A7=EF=BC=8C=E9=82=A3=E4= =B9=88=E8=BF=99=E4=BA=9B=E5=B1=82=E7=BA=A7=E5=8F=AF=E4=BB=A5=E8=A2=AB *=E6= =8A=98=E5=8F=A0*=EF=BC=8C=E4=B9=9F=E5=B0=B1=E6=98=AF=E8=AF=B4=E8=A2=AB=E8= =B7=B3=E8=BF=87=E3=80=82=E5=9C=A8 +=E8=AE=BF=E9=97=AE=E4=B8=8B=E4=B8=80=E5=B1=82=E6=97=B6=EF=BC=8C=E6=89=80= =E6=9C=89=E5=9C=A8=E9=A1=B5=E8=A1=A8=E4=B8=8A=E6=89=A7=E8=A1=8C=E7=9A=84=E6= =93=8D=E4=BD=9C=E9=83=BD=E4=BC=9A=E5=9C=A8=E7=BC=96=E8=AF=91=E6=97=B6=E5=A2= =9E=E5=BC=BA=EF=BC=8C=E4=BB=A5=E8=B7=B3=E8=BF=87=E8=BF=99=E4=B8=80=E5=B1=82= =E3=80=82 + +=E4=B8=8E=E6=9E=B6=E6=9E=84=E6=97=A0=E5=85=B3=E7=9A=84=E9=A1=B5=E8=A1=A8= =E5=A4=84=E7=90=86=E4=BB=A3=E7=A0=81=EF=BC=88=E4=BE=8B=E5=A6=82=E8=99=9A=E6= =8B=9F=E5=86=85=E5=AD=98=E7=AE=A1=E7=90=86=E5=99=A8=EF=BC=89=E9=9C=80=E8=A6= =81=E7=BC=96=E5=86=99=E5=BE=97=E8=83=BD=E5=A4=9F=E9=81=8D=E5=8E=86=E5=BD=93= =E5=89=8D=E7=9A=84=E6=89=80=E6=9C=89=E4=BA=94=E4=B8=AA +=E5=B1=82=E7=BA=A7=E3=80=82=E5=AF=B9=E4=BA=8E=E7=89=B9=E5=AE=9A=E6=9E=B6= =E6=9E=84=E7=9A=84=E4=BB=A3=E7=A0=81=EF=BC=8C=E4=B9=9F=E5=BA=94=E4=BC=98=E5= =85=88=E9=87=87=E7=94=A8=E8=BF=99=E7=A7=8D=E9=A3=8E=E6=A0=BC=EF=BC=8C=E4=BB= =A5=E4=BE=BF=E5=AF=B9=E6=9C=AA=E6=9D=A5=E7=9A=84=E5=8F=98=E5=8C=96=E5=85=B7= =E6=9C=89=E6=9B=B4=E5=A5=BD=E7=9A=84=E9=80=82=E5=BA=94=E6=80=A7=E3=80=82 + +MMU=EF=BC=8CTLB =E5=92=8C=E7=BC=BA=E9=A1=B5=E5=BC=82=E5=B8=B8 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +`=E5=86=85=E5=AD=98=E7=AE=A1=E7=90=86=E5=8D=95=E5=85=83(MMU)` =E6=98=AF=E5= =A4=84=E7=90=86=E8=99=9A=E6=8B=9F=E5=9C=B0=E5=9D=80=E5=88=B0=E7=89=A9=E7=90= =86=E5=9C=B0=E5=9D=80=E8=BD=AC=E6=8D=A2=E7=9A=84=E7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BB=E4=BD=8D=E7=BD=AE +=E7=9A=84=E6=8C=87=E4=BB=A4=E3=80=82 + +=E5=A6=82=E6=9E=9C=E4=B8=8A=E8=BF=B0=E6=83=85=E5=86=B5=E5=8F=91=E7=94=9F= =E5=9C=A8=E7=94=A8=E6=88=B7=E6=80=81=EF=BC=8C=E5=86=85=E6=A0=B8=E4=BC=9A=E5= =90=91=E5=BD=93=E5=89=8D=E7=BA=BF=E7=A8=8B=E5=8F=91=E9=80=81 `=E6=AE=B5=E9= =94=99=E8=AF=AF` (SIGSEGV)=E4=BF=A1=E5=8F=B7=E3=80=82=E8=AF=A5=E4=BF=A1=E5= =8F=B7 +=E9=80=9A=E5=B8=B8=E5=AF=BC=E8=87=B4=E7=BA=BF=E7=A8=8B=E5=8F=8A=E5=85=B6= =E6=89=80=E5=B1=9E=E7=9A=84=E8=BF=9B=E7=A8=8B=E7=BB=88=E6=AD=A2=E3=80=82 + +=E6=9C=AC=E6=96=87=E5=B0=86=E7=AE=80=E5=8C=96=E5=B9=B6=E6=A6=82=E8=BF=B0 L= inux =E5=86=85=E6=A0=B8=E5=A6=82=E4=BD=95=E5=A4=84=E7=90=86=E8=BF=99=E4=BA= =9B=E7=BC=BA=E9=A1=B5=E4=B8=AD=E6=96=AD=E3=80=81=E5=88=9B=E5=BB=BA=E8=A1=A8= =E5=92=8C=E8=A1=A8=E9=A1=B9=E3=80=81=E6=A3=80=E6=9F=A5=E5=86=85=E5=AD=98=E6= =98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=EF=BC=8C +=E4=BB=A5=E5=8F=8A=E5=BD=93=E5=86=85=E5=AD=98=E4=B8=8D=E5=AD=98=E5=9C=A8= =E6=97=B6=EF=BC=8C=E5=A6=82=E4=BD=95=E8=AF=B7=E6=B1=82=E4=BB=8E=E6=8C=81=E4= =B9=85=E5=AD=98=E5=82=A8=E6=88=96=E5=85=B6=E4=BB=96=E8=AE=BE=E5=A4=87=E5=8A= =A0=E8=BD=BD=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=B9=B6=E6=9B=B4=E6=96=B0 MMU =E5= =8F=8A=E5=85=B6=E7=BC=93=E5=AD=98=E3=80=82 + +=E6=9C=80=E5=88=9D=E7=9A=84=E6=AD=A5=E9=AA=A4=E4=BE=9D=E8=B5=96=E4=BA=8E= =E6=9E=B6=E6=9E=84=E3=80=82=E5=A4=A7=E5=A4=9A=E6=98=AF=E6=9E=B6=E6=9E=84=E8= =B7=B3=E8=BD=AC=E5=88=B0 `do_page_fault()`=EF=BC=8C=E8=80=8C x86 =E4=B8=AD= =E6=96=AD=E5=A4=84=E7=90=86=E7=A8=8B=E5=BA=8F=E6=98=AF=E7=94=B1 +`DEFINE_IDTENTRY_RAW_ERRORCODE()` =E5=AE=8F=E5=AE=9A=E4=B9=89=E7=9A=84=EF= =BC=8C=E8=AF=A5=E5=AE=8F=E8=B0=83=E7=94=A8 `handle_page_fault()`=E3=80=82 + +=E6=97=A0=E8=AE=BA=E8=B0=83=E7=94=A8=E8=B7=AF=E5=BE=84=E5=A6=82=E4=BD=95= =EF=BC=8C=E6=89=80=E6=9C=89=E6=9E=B6=E6=9E=84=E6=9C=80=E7=BB=88=E9=83=BD=E4= =BC=9A=E8=B0=83=E7=94=A8 `handle_mm_fault()`=EF=BC=8C=E8=AF=A5=E5=87=BD=E6= =95=B0=E9=80=9A=E5=B8=B8=E4=BC=9A=E8=B0=83=E7=94=A8 +`__handle_mm_fault()` =E6=9D=A5=E6=89=A7=E8=A1=8C=E5=AE=9E=E9=99=85=E5=88= =86=E9=85=8D=E9=A1=B5=E8=A1=A8=E7=9A=84=E4=BB=BB=E5=8A=A1=E3=80=82 + +=E5=A6=82=E6=9E=9C=E4=B8=8D=E5=B9=B8=E6=97=A0=E6=B3=95=E8=B0=83=E7=94=A8 `= __handle_mm_fault()` =E5=88=99=E6=84=8F=E5=91=B3=E7=9D=80=E8=99=9A=E6=8B=9F= =E5=9C=B0=E5=9D=80=E6=8C=87=E5=90=91=E4=BA=86=E6=97=A0=E6=9D=83=E8=AE=BF=E9= =97=AE=E7=9A=84=E7=89=A9=E7=90=86 +=E5=86=85=E5=AD=98=E5=8C=BA=E5=9F=9F=EF=BC=88=E8=87=B3=E5=B0=91=E5=AF=B9= =E4=BA=8E=E5=BD=93=E5=89=8D=E4=B8=8A=E4=B8=8B=E6=96=87=E5=A6=82=E6=AD=A4=EF= =BC=89=E3=80=82=E8=BF=99=E7=A7=8D=E6=83=85=E5=86=B5=E4=BC=9A=E5=AF=BC=E8=87= =B4=E5=86=85=E6=A0=B8=E5=90=91=E8=AF=A5=E8=BF=9B=E7=A8=8B=E5=8F=91=E9=80=81= =E4=B8=8A=E8=BF=B0=E7=9A=84 SIGSEGV +=E4=BF=A1=E5=8F=B7=EF=BC=8C=E5=B9=B6=E5=BC=95=E5=8F=91=E5=89=8D=E9=9D=A2= =E6=8F=90=E5=88=B0=E7=9A=84=E5=90=8E=E6=9E=9C=E3=80=82 + +=E8=BF=99=E4=BA=9B=E7=94=A8=E4=BA=8E=E6=9F=A5=E6=89=BE=E5=81=8F=E7=A7=BB= =E9=87=8F=E7=9A=84=E5=87=BD=E6=95=B0=E5=90=8D=E7=A7=B0=E9=80=9A=E5=B8=B8=E4= =BB=A5 `*_offset()` =E7=BB=93=E5=B0=BE=EF=BC=8C=E5=85=B6=E4=B8=AD=E2=80=9C\= *=E2=80=9D=E5=8F=AF=E4=BB=A5=E6=98=AF pgd=EF=BC=8Cp4d=EF=BC=8C +pud=EF=BC=8Cpmd =E6=88=96=E8=80=85 pte=EF=BC=9B=E8=80=8C=E5=88=86=E9=85=8D= =E7=9B=B8=E5=BA=94=E5=B1=82=E7=BA=A7=E9=A1=B5=E8=A1=A8=E7=9A=84=E5=87=BD=E6= =95=B0=E5=90=8D=E7=A7=B0=E6=98=AF `*_alloc`=EF=BC=8C=E5=AE=83=E4=BB=AC=E6= =8C=89=E7=85=A7=E4=B8=8A=E8=BF=B0=E5=91=BD=E5=90=8D +=E7=BA=A6=E5=AE=9A=E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5=8E=8B=E5=8A=9B=EF=BC=8C=E5=87= =8F=E5=B0=91=E9=A1=B5=E8=A1=A8=E5=BC=80=E9=94=80=EF=BC=8C=E6=8F=90=E9=AB=98= =E5=86=85=E5=AD=98=E5=88=86=E9=85=8D=E6=95=88=E7=8E=87=EF=BC=8C=E4=BB=A5=E5= =8F=8A=E6=94=B9=E5=96=84 +=E7=89=B9=E5=AE=9A=E5=B7=A5=E4=BD=9C=E8=B4=9F=E8=BD=BD=E7=9A=84=E6=80=A7= =E8=83=BD=E3=80=82=E7=84=B6=E8=80=8C=EF=BC=8C=E8=BF=99=E4=BA=9B=E5=A5=BD=E5= =A4=84=E4=B9=9F=E4=BC=B4=E9=9A=8F=E7=9D=80=E6=9D=83=E8=A1=A1=EF=BC=8C=E5=A6= =82=E5=86=85=E5=AD=98=E6=B5=AA=E8=B4=B9=E5=92=8C=E5=88=86=E9=85=8D=E9=9A=BE= =E5=BA=A6=E5=A2=9E=E5=8A=A0=E3=80=82 + +=E5=9C=A8=E9=81=8D=E5=8E=86=E5=92=8C=E5=88=86=E9=85=8D=E7=9A=84=E6=9C=80= =E5=90=8E=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B2=A1=E6=9C=89=E8=BF=94=E5=9B=9E=E9= =94=99=E8=AF=AF=EF=BC=8C`__handle_mm_fault()` =E6=9C=80=E7=BB=88=E8=B0=83= =E7=94=A8 `handle_pte_fault()` +=E9=80=9A=E8=BF=87 `do_fault()` =E6=89=A7=E8=A1=8C `do_read_fault()`=E3=80= =81 `do_cow_fault()` =E5=92=8C `do_shared_fault()`=E3=80=82 +=E2=80=9Cread=E2=80=9D=EF=BC=8C=E2=80=9Ccow=E2=80=9D=E5=92=8C=E2=80=9Cshar= ed=E2=80=9D=E5=88=86=E5=88=AB=E6=9A=97=E7=A4=BA=E4=BA=86=E5=AE=83=E5=A4=84= =E7=90=86=E9=94=99=E8=AF=AF=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=92=8C=E5=8E=9F=E5= =9B=A0=E3=80=82 + +=E5=AE=9E=E9=99=85=E7=9A=84=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B=E5=AE=9E= =E7=8E=B0=E6=98=AF=E9=9D=9E=E5=B8=B8=E5=A4=8D=E6=9D=82=E7=9A=84=E3=80=82=E5= =85=B6=E8=AE=BE=E8=AE=A1=E5=85=81=E8=AE=B8 Linux =E6=A0=B9=E6=8D=AE=E6=AF= =8F=E7=A7=8D=E6=9E=B6=E6=9E=84=E7=9A=84=E7=89=B9=E5=AE=9A=E7=89=B9=E6=80=A7= =E5=A4=84=E7=90=86=E7=BC=BA=E9=A1=B5 +=E5=BC=82=E5=B8=B8=EF=BC=8C=E5=90=8C=E6=97=B6=E4=BB=8D=E7=84=B6=E5=85=B1= =E4=BA=AB=E4=B8=80=E4=B8=AA=E9=80=9A=E7=94=A8=E7=9A=84=E6=95=B4=E4=BD=93=E7= =BB=93=E6=9E=84=E3=80=82 + +=E4=B8=BA=E4=BA=86=E6=80=BB=E7=BB=93 Linux =E5=A6=82=E4=BD=95=E5=A4=84=E7= =90=86=E7=BC=BA=E9=A1=B5=E4=B8=AD=E6=96=AD=E7=9A=84=E6=A6=82=E8=BF=B0=EF=BC= =8C=E9=9C=80=E8=A6=81=E8=A1=A5=E5=85=85=E7=9A=84=E6=98=AF=EF=BC=8C=E7=BC=BA= =E9=A1=B5=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E7=A8=8B=E5=BA=8F=E5=8F=AF=E4= =BB=A5=E9=80=9A=E8=BF=87 +`pagefault_disable()` =E5=92=8C `pagefault_enable()` =E5=88=86=E5=88=AB=E7= =A6=81=E7=94=A8=E5=92=8C=E5=90=AF=E7=94=A8=E3=80=82 + +=E8=AE=B8=E5=A4=9A=E4=BB=A3=E7=A0=81=E8=B7=AF=E5=BE=84=E4=BD=BF=E7=94=A8= =E4=BA=86=E8=BF=99=E4=B8=A4=E4=B8=AA=E5=87=BD=E6=95=B0=EF=BC=8C=E5=9B=A0=E4= =B8=BA=E5=AE=83=E4=BB=AC=E9=9C=80=E8=A6=81=E7=A6=81=E6=AD=A2=E9=99=B7=E5=85= =A5=E7=BC=BA=E9=A1=B5=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86=E7=A8=8B=E5=BA=8F= =EF=BC=8C=E4=B8=BB=E8=A6=81=E6=98=AF=E4=B8=BA=E4=BA=86 +=E9=98=B2=E6=AD=A2=E6=AD=BB=E9=94=81=E3=80=82 --=20 2.25.1 From nobody Wed Nov 27 02:38:55 2024 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A2E91BF81B; Mon, 14 Oct 2024 15:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921392; cv=none; b=CKRlRKoLNu8O6WdXdXhQBYab8PfZ2WJnGlXoCzlKtV83V4IK2rJP9NKKjZmJGOO6S7pK/ZCCDY3YrwiqlaAyAllvNvDSMYZgI22l0xaCNdDVsi8OOG/XESQ/mfO1QDRXaExrma43LJcSzO49qlLbUa7FDz7kuOClYieV4S1+22s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921392; c=relaxed/simple; bh=vBiVR5RWvydOo3uoWV5/L0Dxd0mDdOOkmDf86g7wkXU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h+alXM1eh2tTiOobeVsaOAQdqjNKjyVkdog/voyQ1bSY8F08RQ55BXjsm0LVxdCgtIVlP0IxoCzfpTCS3pyzosb7nlsWK8S52DeumytcaWOuLoO7RVNIJZW1lcF+cBAchm6L45hbOzedzSAU1tA3sIbJlxBqvFFjIaMeZkEStsg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=C+xWKeOS; arc=none smtp.client-ip=209.85.214.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C+xWKeOS" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-20c7b9087c4so1687075ad.1; Mon, 14 Oct 2024 08:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728921391; x=1729526191; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8BH5HGN/lxU0eugjYDBTylsmIM0AthElLci7xGONaZ4=; b=C+xWKeOSed0w13Xo/rD6zSwqyhlXbzCOtbyFJ9JpY3fXOgG3n9u7OsgkC7yTQwtUT5 8hi8ywrXt8HWShnp2d38cOOcilTnl8dvuuP5Mv+cbg0P7N6mG0nYspVe3AZqChQ+DubX 1nh5EMDxR+qJ4Dm1e0/MHaH1Nwk1oVfON4ewCGSw0Gr3OoKf8GsbSGTzClnmbpXbKWJN xjOipwC29TnRskTRI8kKzqIZm+cfCSReGkT0TZbmgJ56R7H+6580VA0RP8oq/JtNWGJe uRqvAdDgEwlOXp3B0z20ZSxambine4n3CVjYFUOgnKSLdtmGipuGx2VcEtCFomQvnkRP JZ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728921391; x=1729526191; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8BH5HGN/lxU0eugjYDBTylsmIM0AthElLci7xGONaZ4=; b=dzxJ3WoIjgM/iTYtwe3kyhRxETSa8YLo2rKKEh4tnd2Qik3bcIqKcc0yaQi5sV0+Iy hdQB7TRwbWI/Ui/c2ful4wqRoB8r5qkjYDO/QB2M2ndSjBazXN8SRr8qj6W5AIJj4EP3 2oXcE4k+7PUlF6Un7iY+34aiNJ1OVbVC3J3MVYcnnb0T96P1mvcBa0vX9cKcXmMfkUoP GrFpI/mB63zU6Ch8kJ1oE+q98Vzb8S25gAtfLlo5sk73ZI0JnzW0N3SBha3/5gk/UeQZ 9ljBr/P2hv+uBGu9ztgbo9lB4Wgg4OYyZMKR06zshZyZ5t4jDcPC/hsR42/UWb0g8eqn DqIQ== X-Forwarded-Encrypted: i=1; AJvYcCUsY/AfvjoaPSN9YL3TLji2cRS0wmBeLItYKIQuds0cMzQUb7UfOtYaMCkPFILTEns2O+RReWyHi3Uk0ME=@vger.kernel.org X-Gm-Message-State: AOJu0YyLMK5jiXDeFJXFgFdEbsw8eWeHWQ/PPXH4/2R/gd+iIk8UnVE/ JPve+MmpVg2Yw/D619C75oU4ULD6hZaoLkNGIjS+7sgIoLAsvkOa X-Google-Smtp-Source: AGHT+IE+5ZUoNEfcv+vKrBuhgMuHJrjusFdF3vLKAxjNfqfnJl0D8AJ+7awUaBLphbufZ2eDjzkRPg== X-Received: by 2002:a17:902:e741:b0:20c:bb35:dae5 with SMTP id d9443c01a7336-20cbb35dd69mr49548155ad.11.1728921390696; Mon, 14 Oct 2024 08:56:30 -0700 (PDT) Received: from aizome.localdomain ([117.172.223.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20d00363205sm11168485ad.53.2024.10.14.08.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 08:56:30 -0700 (PDT) From: Pengyu Zhang To: alexs@kernel.org, siyanteng@loongson.cn, corbet@lwn.net, seakeel@gmail.com, si.yanteng@linux.dev Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, zpenya1314@gmail.com, yaxin_wang_uestc@163.com, zenghui.yu@linux.dev, Mike Rapoport , Linus Walleij Subject: [PATCH v5 2/3] Docs/mm: Fix a mistake for pfn in page_tables.rst Date: Mon, 14 Oct 2024 23:55:25 +0800 Message-Id: <20241014155526.17065-3-zpenya1314@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241014155526.17065-1-zpenya1314@gmail.com> References: <20241014155526.17065-1-zpenya1314@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The documentation incorrectly calculate the pfn value as 0x3fffff, which should be 0x3ffff instead. It is obtained by right-shifting 0xffffc000 by 14 bits. This patch corrects the value to prevent any potential confusion for developers referencing this document. Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Linus Walleij Reviewed-by: Zenghui Yu Signed-off-by: Pengyu Zhang Reviewed-by: Yanteng Si --- Documentation/mm/page_tables.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/mm/page_tables.rst b/Documentation/mm/page_table= s.rst index be47b192a596..e7c69cc32493 100644 --- a/Documentation/mm/page_tables.rst +++ b/Documentation/mm/page_tables.rst @@ -29,7 +29,7 @@ address. With a page granularity of 4KB and a address range of 32 bits, pfn 0 is at address 0x00000000, pfn 1 is at address 0x00001000, pfn 2 is at 0x00002000 and so on until we reach pfn 0xfffff at 0xfffff000. With 16KB pages pfs are -at 0x00004000, 0x00008000 ... 0xffffc000 and pfn goes from 0 to 0x3fffff. +at 0x00004000, 0x00008000 ... 0xffffc000 and pfn goes from 0 to 0x3ffff. =20 As you can see, with 4KB pages the page base address uses bits 12-31 of the address, and this is why `PAGE_SHIFT` in this case is defined as 12 and --=20 2.25.1 From nobody Wed Nov 27 02:38:55 2024 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27C271AE003; Mon, 14 Oct 2024 15:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921407; cv=none; b=nng13ycmDroxwsZWPhYQPbx05AHukAe4q3DZidzNjg9Q8rNV3Gxg/Reu43Z1C+mL/vjYMpJ16/+P69BMS94AhEgChqwjKD9T0UUH2TcycP6kdbo6tXZ48fdYAY4Nwb62AI+JjpopVVGiMcEp90gvmCpF7X4izzOKSPTKFzsXK+I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728921407; c=relaxed/simple; bh=rqXc6fyOltvPCgLCFD6B5dtBrlvYiHlGPOFu9tW9ZZU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=uj9AbhKGwma6PRll0uoSI/cYf5f/66/fg6eembuAivp5W5bd2ngZfIIEnI+yrsVQNcuwaUiZqRZr+eQDvBc1O4UTMMLBj350PXIMwh7eoEzHmLqM/uozUrZISb7WoizdKdvHCLZNgYKuaXtPT8k7gtLqJT9USUENvg+9DaTzM1k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=imnPdGY2; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="imnPdGY2" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-20c83c2e967so3902395ad.1; Mon, 14 Oct 2024 08:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728921405; x=1729526205; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XYoVIABn4CfMVzC05ot9VPzHnU0uWzbqn86J+fpUo00=; b=imnPdGY2xVE5mNLLtb/EGl6hUqpjBSuP8Ewl1Z4jOJ8Q6Zwo8AdNRLRpahVqEg7Ar9 LfFUHW9E6ZSjTZTZESx9lD3mPS1r+vJ1jojDSKh/yWm1eMFKf9phTjJbWSK7ddn18Idj Hy01qSg2rttucjV1IELWFwV6pT1uDhYZUKwuekvEWkShJsU5tMRP+PbKRjtUaIz+mnE1 uf2wykzweSDeMem+Z7eNWSJpFdOZnW980H6c54O96KC4pMfvbLK0xI/SAKicEpuJWGTX rxV3cwCSWxOoWcCeoibUb+0ac+joRjiaUgdOjUsJR0+dZj3c9gImMxru2MeBAVzCv1rv so0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728921405; x=1729526205; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XYoVIABn4CfMVzC05ot9VPzHnU0uWzbqn86J+fpUo00=; b=VUiWkAZ6LHDz/bt0uiXnwcISWht1/Gd5eXZ2rvWc886FqCDBKAa43kgnUYd31mQLxJ 2OQZvybHYzZRoHNOYDKNmWFdV0AY4DDkI0DQ5Qnkey/xrIOwYUaLj0AGYYnciXqh9V5Y +nshdLyykAjp5MJOCDIJ/RTOFnIk4NVeiqceXzPo8zwGHUnpH+bLCIHxcs35bmg+IdEx Pm1ULRWDEMgFO5dT3uKz8QUfwygH89+AmzLhsfQQ4ZKQ/u2Y9USExXLDrLYqygO3OTRR 4knXNouWEbCcUfB7lw2iAVdWNV2JYuFprADhlH51SHGePfojLh+jK5tL0YmvrpIYAhEa +hcw== X-Forwarded-Encrypted: i=1; AJvYcCVa6eTKP+jn2evb5UA2QnN6/rE/2kaMl3FzP5slvXM3Ar7qRt/5bLqGvnTgZbwLCpSLzuPveGYkm3g9+4I=@vger.kernel.org X-Gm-Message-State: AOJu0YxYcS/FRXUMXCsvsj1iWEXS2QA/Sb6WhNImqH5znIdhA0oS3dfz MJhzNcMTO8+4J0pN33tLyDf4eeladeVfp43gfv1X7Ip4O0W5otwE X-Google-Smtp-Source: AGHT+IFskhEcFR/PxY+4n2w18ADFWgBXv18TFgk4jdEKLKDlaTmrZfTpcmWqJ7BmvI+ZPYVSUqHlAw== X-Received: by 2002:a17:902:d4c8:b0:20c:d8d8:226f with SMTP id d9443c01a7336-20cd8d823ffmr33061835ad.12.1728921405329; Mon, 14 Oct 2024 08:56:45 -0700 (PDT) Received: from aizome.localdomain ([117.172.223.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20d00363205sm11168485ad.53.2024.10.14.08.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 08:56:44 -0700 (PDT) From: Pengyu Zhang To: alexs@kernel.org, siyanteng@loongson.cn, corbet@lwn.net, seakeel@gmail.com, si.yanteng@linux.dev Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, zpenya1314@gmail.com, yaxin_wang_uestc@163.com, zenghui.yu@linux.dev Subject: [PATCH v5 3/3] Docs/zh_CN: Fix the pfn calculation error in page_tables.rst Date: Mon, 14 Oct 2024 23:55:26 +0800 Message-Id: <20241014155526.17065-4-zpenya1314@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241014155526.17065-1-zpenya1314@gmail.com> References: <20241014155526.17065-1-zpenya1314@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Synchronize the changes of origin document to fix the pfn value. Signed-off-by: Pengyu Zhang Reviewed-by: Yanteng Si --- Documentation/translations/zh_CN/mm/page_tables.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/translations/zh_CN/mm/page_tables.rst b/Document= ation/translations/zh_CN/mm/page_tables.rst index 544381c348b1..b0700a5a8bf1 100644 --- a/Documentation/translations/zh_CN/mm/page_tables.rst +++ b/Documentation/translations/zh_CN/mm/page_tables.rst @@ -32,7 +32,7 @@ Linux =E5=B0=86=E9=A1=B5=E8=A1=A8=E5=AE=9A=E4=B9=89=E4=B8= =BA=E4=B8=80=E4=B8=AA=E5=88=86=E7=BA=A7=E7=BB=93=E6=9E=84=EF=BC=8C=E7=9B=AE= =E5=89=8D=E6=9C=89=E4=BA=94=E7=BA=A7=E3=80=82=E5=AF=B9=E4=BA=8E=E6=94=AF=E6= =8C=81=E7=9A=84 =E5=9C=A8=E9=A1=B5=E7=B2=92=E5=BA=A6=E4=B8=BA 4KB =E4=B8=94=E5=9C=B0=E5=9D= =80=E8=8C=83=E5=9B=B4=E4=B8=BA32=E4=BD=8D=E7=9A=84=E6=83=85=E5=86=B5=E4=B8= =8B=EF=BC=8Cpfn 0 =E5=AF=B9=E5=BA=94=E5=9C=B0=E5=9D=800x00000000=EF=BC=8Cpf= n 1 =E5=AF=B9=E5=BA=94 =E5=9C=B0=E5=9D=800x00001000=EF=BC=8Cpfn 2 =E5=AF=B9=E5=BA=94=E5=9C=B0=E5= =9D=80 0x00002000=EF=BC=8C=E4=BB=A5=E6=AD=A4=E7=B1=BB=E6=8E=A8=EF=BC=8C=E7= =9B=B4=E5=88=B0 pfn 0xfffff =E5=AF=B9=E5=BA=94 0xfffff000=E3=80=82=E5=A6=82=E6=9E=9C=E9=A1=B5=E7=B2=92=E5=BA=A6=E4=B8=BA = 16KB=EF=BC=8C=E5=88=99 pfn =E5=88=86=E5=88=AB=E5=AF=B9=E5=BA=94=E5=9C=B0=E5= =9D=80 0x00004000=E3=80=810x00008000 -... 0xffffc000=EF=BC=8Cpfn =E7=9A=84=E8=8C=83=E5=9B=B4=E4=BB=8E 0 =E5=88= =B0 0x3fffff=E3=80=82 +... 0xffffc000=EF=BC=8Cpfn =E7=9A=84=E8=8C=83=E5=9B=B4=E4=BB=8E 0 =E5=88= =B0 0x3ffff=E3=80=82 =20 =E5=A6=82=E4=BD=A0=E6=89=80=E8=A7=81=EF=BC=8C=E5=AF=B9=E4=BA=8E 4KB =E9=A1= =B5=E9=9D=A2=E7=B2=92=E5=BA=A6=EF=BC=8C=E9=A1=B5=E5=9F=BA=E5=9D=80=E4=BD=BF= =E7=94=A8=E5=9C=B0=E5=9D=80=E7=9A=84 12-31 =E4=BD=8D=EF=BC=8C=E8=BF=99=E5= =B0=B1=E6=98=AF=E4=B8=BA=E4=BB=80=E4=B9=88=E5=9C=A8=E8=BF=99=E7=A7=8D=E6=83= =85=E5=86=B5=E4=B8=8B `PAGE_SHIFT` =E8=A2=AB=E5=AE=9A=E4=B9=89=E4=B8=BA 12=EF=BC=8C=E5=B9=B6=E4= =B8=94 `PAGE_SIZE` =E9=80=9A=E5=B8=B8=E7=94=B1=E9=A1=B5=E5=81=8F=E7=A7=BB= =E5=AE=9A=E4=B9=89=EF=BC=8C=E4=B8=BA `(1 << PAGE_SHIFT)`=E3=80=82 --=20 2.25.1