Methods and apparatuses for managing TLB cache in virtualization platform
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.
Information query
Patent Agency Ranking
0/0