Invention Grant
- Patent Title: Methods and apparatuses for managing TLB cache in virtualization platform
-
Application No.: US18353018Application Date: 2023-07-14
-
Publication No.: US11947992B2Publication Date: 2024-04-02
- Inventor: Jian Feng Tan , Ti Wei Bie , An Qi Shen , Yong He , Xin Chen
- Applicant: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicant Address: CN Zhejiang
- Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
- Current Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
- Current Assignee Address: CN Hangzhou
- Agency: Seed IP Law Group LLP
- Priority: CN 2210496390.0 2022.05.09
- Main IPC: G06F9/455
- IPC: G06F9/455 ; G06F12/1027

Abstract:
Implementations of the present specification provide a method and an apparatus for managing a TLB cache in a virtualization platform, where the virtualization platform runs a plurality of virtual machines, each virtual machine is allocated with a unique VPID, and all virtual logical processors in the virtual machine share the VPID; and a guest process running in the virtual machine is allocated with a PCID. An identifier field of a TLB entry in the TLB cache includes a VPID and a PCID. The method includes: in response to detecting a target guest process involving an invalid address mapping relationship, obtaining a current VPID and a current PCID corresponding to the target guest process; classifying the current PCID into an invalid PCID set corresponding to the current VPID, and selecting a PCID from an available PCID set of a target virtual machine as an updated PCID; and allocating the updated PCID to the target guest process, so an updated entry for the target guest process is recorded in a TLB cache, where an identifier field of the updated entry includes the updated PCID.
Public/Granted literature
- US20230359481A1 METHODS AND APPARATUSES FOR MANAGING TLB CACHE IN VIRTUALIZATION PLATFORM Public/Granted day:2023-11-09
Information query