CN114556881A - 一种地址翻译方法及装置 - Google Patents

一种地址翻译方法及装置 Download PDF

Info

Publication number
CN114556881A
CN114556881A CN201980101414.4A CN201980101414A CN114556881A CN 114556881 A CN114556881 A CN 114556881A CN 201980101414 A CN201980101414 A CN 201980101414A CN 114556881 A CN114556881 A CN 114556881A
Authority
CN
China
Prior art keywords
address
virtual
page table
sub
page tables
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201980101414.4A
Other languages
English (en)
Other versions
CN114556881B (zh
Inventor
刘君龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN114556881A publication Critical patent/CN114556881A/zh
Application granted granted Critical
Publication of CN114556881B publication Critical patent/CN114556881B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1009Address translation using page tables, e.g. page table structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/109Address translation for multiple virtual address spaces, e.g. segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1072Decentralised address translation, e.g. in distributed shared memory systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/10Address translation
    • G06F12/1081Address translation for peripheral access to main memory, e.g. direct memory access [DMA]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • G06F2212/1024Latency reduction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/15Use in a specific computing environment
    • G06F2212/154Networked environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/65Details of virtual memory and virtual address translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/65Details of virtual memory and virtual address translation
    • G06F2212/657Virtual address space management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

公开了地址翻译方法及装置,涉及计算机领域,解决了PCIe设备获取页表的时延较大的问题。该地址翻译装置包括:接口,用于从PCIe设备接收一个地址翻译请求报文,该地址翻译请求报文包括第一虚拟地址和第一虚拟存储空间的大小,该第一虚拟地址为第一虚拟存储空间的虚拟起始地址;地址翻译单元,用于根据第一虚拟存储空间确定P个大小相同的子页表,每个子页表用于指示虚拟地址到物理地址的映射关系,该P个子页表的大小之和等于第一虚拟存储空间的大小,P为整数,P≥1;该接口,还用于发送一个地址翻译响应报文给该PCIe设备,该地址翻译响应报文包括该P个子页表的物理起始地址和该P个子页表的大小。

Description

PCT国内申请,说明书已公开。

Claims (14)

  1. PCT国内申请,权利要求书已公开。
CN201980101414.4A 2019-10-17 2019-10-17 一种地址翻译方法及装置 Active CN114556881B (zh)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/111777 WO2021072721A1 (zh) 2019-10-17 2019-10-17 一种地址翻译方法及装置

Publications (2)

Publication Number Publication Date
CN114556881A true CN114556881A (zh) 2022-05-27
CN114556881B CN114556881B (zh) 2022-12-13

Family

ID=75537341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980101414.4A Active CN114556881B (zh) 2019-10-17 2019-10-17 一种地址翻译方法及装置

Country Status (4)

Country Link
US (1) US20220245067A1 (zh)
EP (1) EP4036741A4 (zh)
CN (1) CN114556881B (zh)
WO (1) WO2021072721A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780466A (zh) * 2022-06-24 2022-07-22 沐曦科技(北京)有限公司 一种基于dma的数据复制延时的优化方法
CN116107935A (zh) * 2022-12-30 2023-05-12 芯动微电子科技(武汉)有限公司 一种基于PCIe地址转换服务机制的ATC实现方法
CN116680202A (zh) * 2023-08-03 2023-09-01 深流微智能科技(深圳)有限公司 一种调试处理内存区的管理方法、系统及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811509A (zh) * 2021-09-14 2023-03-17 华为技术有限公司 一种总线通信方法及相关设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168643A1 (en) * 2006-01-17 2007-07-19 Hummel Mark D DMA Address Translation in an IOMMU
CN101080701A (zh) * 2004-12-14 2007-11-28 索尼计算机娱乐公司 用于从外部设备到处理器的存储器的地址翻译的方法和装置
US20150058594A1 (en) * 2013-08-22 2015-02-26 International Business Machines Corporation Splitting direct memory access windows
CN105989758A (zh) * 2015-02-05 2016-10-05 龙芯中科技术有限公司 地址翻译方法和装置
US20180011651A1 (en) * 2016-07-11 2018-01-11 Intel Corporation Restricted address translation to protect against device-tlb vulnerabilities

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050283602A1 (en) * 2004-06-21 2005-12-22 Balaji Vembu Apparatus and method for protected execution of graphics applications
JP2008098813A (ja) * 2006-10-10 2008-04-24 Matsushita Electric Ind Co Ltd 情報通信装置、情報通信方法、及びプログラム
CN103116555B (zh) * 2013-03-05 2014-03-05 中国人民解放军国防科学技术大学 基于多体并行缓存结构的数据访问方法
US10997083B2 (en) * 2018-09-04 2021-05-04 Arm Limited Parallel page table entry access when performing address translations
GB2582362B (en) * 2019-03-21 2021-08-04 Advanced Risc Mach Ltd Page table structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080701A (zh) * 2004-12-14 2007-11-28 索尼计算机娱乐公司 用于从外部设备到处理器的存储器的地址翻译的方法和装置
US20070168643A1 (en) * 2006-01-17 2007-07-19 Hummel Mark D DMA Address Translation in an IOMMU
US20150058594A1 (en) * 2013-08-22 2015-02-26 International Business Machines Corporation Splitting direct memory access windows
CN105989758A (zh) * 2015-02-05 2016-10-05 龙芯中科技术有限公司 地址翻译方法和装置
US20180011651A1 (en) * 2016-07-11 2018-01-11 Intel Corporation Restricted address translation to protect against device-tlb vulnerabilities

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780466A (zh) * 2022-06-24 2022-07-22 沐曦科技(北京)有限公司 一种基于dma的数据复制延时的优化方法
CN114780466B (zh) * 2022-06-24 2022-09-02 沐曦科技(北京)有限公司 一种基于dma的数据复制延时的优化方法
CN116107935A (zh) * 2022-12-30 2023-05-12 芯动微电子科技(武汉)有限公司 一种基于PCIe地址转换服务机制的ATC实现方法
CN116107935B (zh) * 2022-12-30 2023-08-22 芯动微电子科技(武汉)有限公司 一种基于PCIe地址转换服务机制的ATC实现方法
CN116680202A (zh) * 2023-08-03 2023-09-01 深流微智能科技(深圳)有限公司 一种调试处理内存区的管理方法、系统及存储介质
CN116680202B (zh) * 2023-08-03 2024-01-02 深流微智能科技(深圳)有限公司 一种调试处理内存区的管理方法、系统及存储介质

Also Published As

Publication number Publication date
US20220245067A1 (en) 2022-08-04
EP4036741A1 (en) 2022-08-03
CN114556881B (zh) 2022-12-13
EP4036741A4 (en) 2022-08-03
WO2021072721A1 (zh) 2021-04-22

Similar Documents

Publication Publication Date Title
CN114556881B (zh) 一种地址翻译方法及装置
US9092365B2 (en) Splitting direct memory access windows
US8904045B2 (en) Opportunistic improvement of MMIO request handling based on target reporting of space requirements
KR20150091663A (ko) 멀티 채널 메모리를 포함하는 시스템 및 그 동작 방법
CN110119304B (zh) 一种中断处理方法、装置及服务器
US9063860B2 (en) Method and system for optimizing prefetching of cache memory lines
CN111708717A (zh) 数据拷贝方法、直接内存访问控制器及计算机系统
US9104600B2 (en) Merging direct memory access windows
CN115964319A (zh) 远程直接内存访问的数据处理方法及相关产品
US20110246667A1 (en) Processing unit, chip, computing device and method for accelerating data transmission
WO2019140885A1 (zh) 一种目录处理方法、装置及存储系统
CN115114042A (zh) 存储数据访问方法、装置、电子设备和存储介质
CN116483259A (zh) 一种数据处理方法以及相关装置
CN114238156A (zh) 处理系统以及操作处理系统的方法
CN110928682B (zh) 外部设备访问计算机内存的方法
US20040193830A1 (en) Method and apparatus for address translation pre-fetch
CN117632820B (zh) 请求处理方法、装置、总线桥、电子设备及可读存储介质
CN116166575B (zh) 访存段长度的配置方法、装置、设备、介质和程序产品
US20220138131A1 (en) Input/output device operational modes for a system with memory pools
CN116745754A (zh) 一种访问远端资源的系统及方法
KR101948163B1 (ko) Pci 익스프레스 기반의 연결통신망에서 배리어 구현 방법
CN117632820A (zh) 请求处理方法、装置、总线桥、电子设备及可读存储介质
KR100215572B1 (ko) 인터페이스 버퍼 제어 방법 및 장치
CN117992379A (zh) 一种主机与设备的跨域访问方法及装置
CN116089344A (zh) 串口接入装置、方法及可读存储介质

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant