TLB Management Method and Computer
OwnerTao Jiang, Rui Hou +3inventors
InventorsTao Jiang, Rui Hou, Lele Zhang, Yi Zhang, Lixin Zhang
Life of this patent
Estimating the term…
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.
Claims19
A translation lookaside buffer management method, comprising:
- querying a translation lookaside buffer (TLB) storage directory table using a virtual processor identifier (VPID) of a first virtual CPU (VCPU), to obtain a memory address of a TLB storage table of the first VCPU, wherein one entry in the TLB storage directory table corresponds to one VCPU, each entry comprises a VPID of each VCPU and corresponding memory address of a TLB storage table of each VCPU;
- accessing, according to the memory address of the TLB storage table of the first VCPU, the TLB storage table of the first VCPU;
- and
- reading a valid TLB entry in the TLB storage table of the first VCPU into a physical TLB, wherein the TLB storage table stores a TLB entry and a validity flag corresponding to the TLB entry, and the validity flag is used to describe whether the TLB entry is valid.
A computer, comprising:
- a processor;
- and
- a memory coupled to the processor and storing a set of programming instructions for execution by the processor, wherein the programming instructions instruct the processor to:
- query a translation lookaside buffer (TLB) storage directory table using a virtual processor identifier (VPID) of a first virtual CPU (VCPU), to obtain an address, in a memory area, of a TLB storage table corresponding to the first VCPU, wherein a quantity of entries in the TLB storage directory table is equal to a quantity of VCPUs, and the TLB storage directory table stores a VPID of each VCPU, and an address, in the memory area, of a TLB storage table corresponding to each VPID;
- and
- access, according to the address that is of the TLB storage table corresponding to the first VCPU, the TLB storage table corresponding to the first VCPU, and read a valid TLB entry in the TLB storage table corresponding to the first VCPU into a physical TLB, wherein each VCPU corresponds to one TLB storage table, and the TLB storage table stores a TLB entry and a validity flag corresponding to the TLB entry, and the validity flag is used to describe whether the TLB entry is valid.
Dependencies are inferred from the claim text.