CPC G06F 9/45558 (2013.01) [G06F 12/1027 (2013.01); G06F 2009/45583 (2013.01)] | 20 Claims |
1. A method for managing a translation lookaside buffer (TLB) cache in a virtualization platform, wherein the virtualization platform runs a plurality of virtual machines, the method comprising: configuring the PLB, 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 (PCID) 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 a 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; updating the combination corresponding to the target guest process by one or more of selecting an updated PCD from an available PCID set of the target virtual machine or allocating an updated VPID to the target virtual machine; and updating the PLB cache by recording in the TLB cache an updated entry for the target guest process, an identifier field of the updated entry including the updated combination.
|