Wu X.C. <bobwxc@xxxxxxxx> 于2022年6月9日周四 00:45写道: > > On Wed, Jun 08, 2022 at 07:08:21PM +0800, Binbin Zhou wrote: > > Synchronous translation from upstream commit 9d19f2b5256e > > ("Documentation: riscv: Add sv48 description to VM layout") > > > > Signed-off-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx> > > Reviewed-by: Wu XiangCheng <bobwxc@xxxxxxxx> Reviewed-by: Yanteng Si <siyanteng@xxxxxxxxxxx> Thanks, Yanteng > > Thanks :) > > > --- > > .../translations/zh_CN/riscv/vm-layout.rst | 37 +++++++++++++++++++ > > 1 file changed, 37 insertions(+) > > > > diff --git a/Documentation/translations/zh_CN/riscv/vm-layout.rst b/Documentation/translations/zh_CN/riscv/vm-layout.rst > > index 585cb89317a3..91884e2dfff8 100644 > > --- a/Documentation/translations/zh_CN/riscv/vm-layout.rst > > +++ b/Documentation/translations/zh_CN/riscv/vm-layout.rst > > @@ -6,6 +6,7 @@ > > :翻译: > > > > 司延腾 Yanteng Si <siyanteng@xxxxxxxxxxx> > > + Binbin Zhou <zhoubinbin@xxxxxxxxxxx> > > > > ============================ > > RISC-V Linux上的虚拟内存布局 > > @@ -65,3 +66,39 @@ RISC-V Linux Kernel SV39 > > ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | modules, BPF > > ffffffff80000000 | -2 GB | ffffffffffffffff | 2 GB | kernel > > __________________|____________|__________________|_________|____________________________________________________________ > > + > > + > > +RISC-V Linux Kernel SV48 > > +------------------------ > > + > > +:: > > + > > + ======================================================================================================================== > > + 开始地址 | 偏移 | 结束地址 | 大小 | 虚拟内存区域描述 > > + ======================================================================================================================== > > + | | | | > > + 0000000000000000 | 0 | 00007fffffffffff | 128 TB | 用户空间虚拟内存,每个内存管理器不同 > > + __________________|____________|__________________|_________|___________________________________________________________ > > + | | | | > > + 0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | ... 巨大的、几乎64位宽的直到内核映射的-128TB地方 > > + | | | | 开始偏移的非经典虚拟内存地址空洞。 > > + | | | | > > + __________________|____________|__________________|_________|___________________________________________________________ > > + | > > + | 内核空间的虚拟内存,在所有进程之间共享: > > + ____________________________________________________________|___________________________________________________________ > > + | | | | > > + ffff8d7ffee00000 | -114.5 TB | ffff8d7ffeffffff | 2 MB | fixmap > > + ffff8d7fff000000 | -114.5 TB | ffff8d7fffffffff | 16 MB | PCI io > > + ffff8d8000000000 | -114.5 TB | ffff8f7fffffffff | 2 TB | vmemmap > > + ffff8f8000000000 | -112.5 TB | ffffaf7fffffffff | 32 TB | vmalloc/ioremap space > > + ffffaf8000000000 | -80.5 TB | ffffef7fffffffff | 64 TB | 直接映射所有物理内存 > > + ffffef8000000000 | -16.5 TB | fffffffeffffffff | 16.5 TB | kasan > > + __________________|____________|__________________|_________|____________________________________________________________ > > + | > > + | 从此处开始,与39-bit布局相同: > > + ____________________________________________________________|____________________________________________________________ > > + | | | | > > + ffffffff00000000 | -4 GB | ffffffff7fffffff | 2 GB | modules, BPF > > + ffffffff80000000 | -2 GB | ffffffffffffffff | 2 GB | kernel > > + __________________|____________|__________________|_________|____________________________________________________________ > > -- > > 2.20.1