A kind of tlb management method and device
A management method and physical technology, applied in the computer field, can solve problems such as high TLB miss rate and achieve the effect of reducing the miss rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] The embodiment of the present invention provides a TLB management method, such as figure 1 As shown, the method includes the following steps:
[0053] 101. Using the VPID of the first VCPU as an index, query the TLB storage directory table to obtain the address of the TLB storage table corresponding to the first VCPU in the memory area.
[0054] Wherein, the number of entries in the TLB storage directory table is equal to the number of VCPUs, and the TLB storage directory table stores the VPID of each VCPU in the computer and the address of the TLB storage table corresponding to each VPID in the memory area.
[0055] 102. Access the TLB storage table corresponding to the first VCPU according to the address of the TLB storage table corresponding to the first VCPU in the memory area, and sequentially read valid TLB entries in the TLB storage table corresponding to the first VCPU into the physical TLB.
[0056] Wherein, each VCPU corresponds to a TLB storage table, and t...
Embodiment 2
[0060] The embodiment of the present invention provides a TLB management method, such as figure 2 As shown, the method includes the following steps:
[0061] 201. Using the VPID of the first VCPU as an index, query the TLB storage directory table to obtain an address in the memory area of the TLB storage table corresponding to the first VCPU.
[0062] Wherein, the address of the TLB storage table of contents may be stored in a newly added register in the CPU; or, the address of the TLB storage table of contents may also be stored in a global variable of the computer operating system kernel. In this way, when the computer performs VCPU scheduling, it can access the TLB storage directory according to the address of the TLB storage directory, and then use the VPID of the first VCPU as an index to query the TLB storage directory.
[0063] Optionally, the TLB storage directory table further stores an identifier used to indicate the number of entries in the TLB storage table cor...
Embodiment 3
[0089] Embodiments of the present invention further provide device embodiments for implementing the steps in the above method embodiments. Embodiments of the present invention can be applied to various computers, such as Figure 4 As shown, the device includes: a query obtaining unit 401 and a entry reading unit 402 .
[0090] The query obtaining unit 401 is configured to use the VPID of the first VCPU as an index to query the TLB storage directory table to obtain the address of the TLB storage table corresponding to the first VCPU in the memory area.
[0091] The address of the TLB storage table of contents is stored in a newly added register in the CPU; or, the address of the TLB storage table of contents is stored in a global variable of the computer operating system kernel; then, the query obtaining unit 401 specifically uses The TLB storage directory is accessed according to the address of the TLB storage directory, and then the TLB storage directory is queried by using t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


