A memory virtualization method and system under the Shenwei architecture

A technology of memory virtualization and Shenwei, which is applied in memory systems, software simulation/interpretation/simulation, multi-programming devices, etc. It can solve the problem of introducing query overhead, inability to take advantage of the software flexibility of Shenwei architecture, and complex code implementation, etc. problems to achieve the effect of eliminating page fault processing overhead

Active Publication Date: 2022-07-22
PEKING UNIV +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These two solutions are implemented on mainstream processor architectures such as x86, but neither is suitable for Shenwei architecture processors.
As far as the extended page table model is concerned, it essentially uses hardware to efficiently complete two-layer address translation, but the Shenwei architecture lacks hardware support. If the model is implemented purely in software, the performance cannot meet the needs of production and life.
In addition, compared with the traditional shadow page table, the extended page table model reduces the processing overhead of page fault interrupts, but it introduces additional page table query overhead
[0007] As far as the traditional shadow page table model is concerned, on the one hand, due to the synchronization mechanism of write protection, the code implementation is extremely complex and inefficient; on the other hand, it cannot take advantage of the unique software flexibility of Shenwei architecture

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A memory virtualization method and system under the Shenwei architecture
  • A memory virtualization method and system under the Shenwei architecture
  • A memory virtualization method and system under the Shenwei architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be further described in detail below through specific embodiments and accompanying drawings.

[0044] The "software-managed TLB" mentioned in the present invention means that the architecture exposes the TLB software management interface for the operating system to refresh / fill TLB entries.

[0045] The "shadow page table" in the present invention refers to a page table used to directly cache the mapping relationship between the virtual address of the guest and the physical address of the host in a virtualized environment. This is an important method used to accelerate the efficiency of two-layer address translation.

[0046] The "page table synchronization" in the present invention means that in the shadow page table memory virtualization model, the shadow page table needs to maintain mapping consistency with the client process page t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a memory virtualization method and system under the Shenwei architecture. The method includes: establishing a buffer for storing the base address of the shadow page table; when a TLB miss occurs when the CPU queries the TLB, the CPU accesses the buffer to obtain the base address of the shadow page table of the current process, and loads the base address of the shadow page table into the memory The management unit starts the page table query; when the mapping is missing in the page table query, the CPU switches the client context to the host context for page fault interrupt processing; directly fill in the virtual and real address translation mapping obtained after the page fault interrupt processing The corresponding TLB implements TLB prefetching; the CPU queries the TLB again to complete the address translation from the virtual address of the guest to the physical address of the host. Based on the TLB feature managed by the Shenwei architecture software, the invention realizes the simultaneous refresh of the shadow page table and the TLB, thereby realizing the synchronization of the shadow page table and the client process page table.

Description

technical field [0001] The invention relates to the field of Shenwei architecture virtualization, in particular to a method and system for realizing efficient memory virtualization under the Shenwei architecture. Background technique [0002] As a typical representative of domestic processors, Shenwei family processors have attracted much attention. The great success of the supercomputer Sunway TaihuLight has established Shenwei's pivotal position in the field of domestic processors. Especially in the government and other parts with high security and independent controllability, Shenwei servers are very popular and are mainly used in desktop office systems. The first-generation Sunway architecture instruction set originated from the Alpha instruction set. After continuous improvement and development, it has developed into an independent Sunway instruction set. [0003] Compared with the international mainstream computer processor architecture (such as x86), the Shenwei arc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50G06F12/1009G06F9/455
CPCG06F9/5077G06F9/5016G06F12/1009G06F2009/45583
Inventor 沙赛罗英伟汪小林张毅
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products