-
公开(公告)号:US20160103768A1
公开(公告)日:2016-04-14
申请号:US14975597
申请日:2015-12-18
Applicant: Huawei Technologies Co., Ltd.
Inventor: Tao Jiang , Rui Hou , Lele Zhang , Yi Zhang , Lixin Zhang
CPC classification number: G06F12/1027 , G06F12/1009 , G06F12/121 , G06F2212/657 , G06F2212/68
Abstract: A TLB management method and computer are provided. The method includes querying a TLB storage directory table using a VPID of a first VCPU as an index, to obtain an address of a TLB storage table corresponding to the first VCPU; then accessing, according to the address of the TLB storage table corresponding to the first VCPU, the TLB storage table corresponding to the first VCPU, and reading a valid TLB entry in the TLB storage table corresponding to the first VCPU into a physical TLB.
Abstract translation: 提供TLB管理方法和计算机。 该方法包括使用第一VCPU的VPID作为索引查询TLB存储目录表,以获得对应于第一VCPU的TLB存储表的地址; 然后根据对应于第一VCPU的TLB存储表的地址,访问与第一VCPU相对应的TLB存储表,并将与第一VCPU相对应的TLB存储表中的有效TLB条目读入物理TLB。
-
2.
公开(公告)号:US20160098357A1
公开(公告)日:2016-04-07
申请号:US14951608
申请日:2015-11-25
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Lixin ZHANG , Ke Zhang , Yi Zhang , Lele Zhang
IPC: G06F12/10
CPC classification number: G06F12/1027 , G06F2212/681 , Y02D10/13
Abstract: A method and an apparatus for determining a physical address are disclosed. According to the present disclosure, a page size is obtained according to the higher-order N bits of a linear address, where N is greater than 0 and less than a quantity of bits of the linear address; an index number of a translation lookaside buffer TLB is obtained according to the page size; a mask is obtained according to the page size and a supported minimum page size; a label of the TLB is obtained according to the mask; the higher-order MAC1 bits of a physical address corresponding to the linear address are obtained by searching the TLB according to the index number and the label; and the physical address is obtained according to the mask, the supported minimum page, and the higher-order MAC1 bits of the physical address.
Abstract translation: 公开了一种用于确定物理地址的方法和装置。 根据本公开,根据线性地址的高阶N位获得页大小,其中N大于0且小于线性地址的位数; 根据页面大小获得翻译后备缓冲器TLB的索引号; 根据页面大小和支持的最小页面大小获得掩码; 根据掩模获得TLB的标签; 通过根据索引号和标签搜索TLB,获得对应于线性地址的物理地址的高阶MAC1比特; 并且根据掩码,所支持的最小页面和物理地址的高阶MAC1比特来获得物理地址。
-
公开(公告)号:US10303619B2
公开(公告)日:2019-05-28
申请号:US14951608
申请日:2015-11-25
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Lixin Zhang , Ke Zhang , Yi Zhang , Lele Zhang
IPC: G06F12/10 , G06F12/1027
Abstract: A method and an apparatus for determining a physical address are disclosed. According to the present disclosure, a page size is obtained according to the higher-order N bits of a linear address, where N is greater than 0 and less than a quantity of bits of the linear address; an index number of a translation lookaside buffer TLB is obtained according to the page size; a mask is obtained according to the page size and a supported minimum page size; a label of the TLB is obtained according to the mask; the higher-order MAC1 bits of a physical address corresponding to the linear address are obtained by searching the TLB according to the index number and the label; and the physical address is obtained according to the mask, the supported minimum page, and the higher-order MAC1 bits of the physical address.
-
-