Patent ID: 11947992
Assignee: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A computing system for managing a translation lookaside buffer (TLB) cache in a virtualization platform, wherein the virtualization platform runs a plurality of virtual machines, the computing system comprising one or more storage devices and one or more processors, the one or more storage devices, individually or collectively, having computer executable instructions stored thereon, which when executed by the one or more processors enable the one or more processors to, individually or collectively, perform acts including: configuring the TLB, the configuring including: allocating each virtual machine with a virtual processor identifier (VPID), all virtual logical processors in the virtual machine sharing the VPID; allocating a process context identifier (PCTD) to a guest process running in a virtual machine; and controlling the TLB cache to store a plurality of TLB entries, an identifier field of each TLB entry including a combination of a VPID and a PCID; detecting a target guest process that includes an unmapped operation having invalid address mapping between a virtual address and @ physical address; in response to detecting the target guest process, obtaining a current VPID of a target virtual machine to which the target guest process belongs and a current PCID allocated to the target guest process; classifying the current PCID into an invalid PCID set corresponding to the current VPID; selecting a PCID from an available PCID set of the target virtual machine as an updated PCID of the target guest process; and recording in the TLB cache an updated entry for the target guest process, an identifier field of the updated entry including the updated PCID, wherein the selecting the PCED from the available PCTD set of the target virtual machine ag, the updated PCID includes, determining whether a first available PCTD set corresponding to the current VPID is empty, in response to that the first available PCT set corresponding to the current VPID is not empty, selecting the updated PCED from the first available PCID set; and in response to that the first available PCID set corresponding to the current VPID is empty, allocating an updated VPID to the target virtual machine, setting the invalid PCD set corresponding to the current VPID to a second available PCED set corresponding to the undated VPID and selecting the updated PCID from the second available PCTD set.