Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

TLB exception handling method and device, electronic equipment and storage medium

An exception handling and exception technology, applied in the computer field, can solve problems such as high cost of exiting Guest, prolonged TLB exception handling process, and impossibility

Active Publication Date: 2020-04-10
LOONGSON TECH CORP
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in specific applications, in the class virtualization scenario based on the MIPS architecture, the relevant instructions of the TLB exception handling in the Guest (virtual machine) mode cannot be realized. Therefore, in the prior art, every time the Guest TLB exception handling occurs related instructions, an abnormal error will be reported in the Host (host), and then it is necessary to exit the Guest, and then simulate these instructions through the Host to realize the functions of these instructions
[0004] However, handling TLB exceptions requires exiting the Guest multiple times, and the overhead of exiting the Guest is relatively large
In addition, the Host needs to interrupt the TLB exception handling process of the Guest many times to simulate the TLB exception handling instructions, which will prolong the TLB exception handling process, making it very time-consuming to process TLB exceptions in Guest mode.

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
  • TLB exception handling method and device, electronic equipment and storage medium
  • TLB exception handling method and device, electronic equipment and storage medium
  • TLB exception handling method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0080] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0081] Before describing the embodiments of the present invention in detail, the current processing methods of TLB miss exception, TLB load exception, TLB store exception and TLB modify exception are firstly introduced.

[0082] 1. Existing TLB miss exception handling process:

[0083] refer to figure 1 , shows a flow chart of an existing TLB miss exception processing.

[0084] 1. Obtain the virtual address that triggers the TLB miss exception from the badvaddr register.

[0085] 2. Determine whether the virtual address is a user state address. If so, obtain pgd_current (page global directory of the current running process) from the PWBase register, and then search for PMD (page intermediate directory) from the page table of pg...

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 embodiments of the invention provide a TLB exception handling method and device, electronic equipment and a storage medium, belonging to the technical field of computers. The method comprises thesteps of acquiring a first parameter required for processing a TLB exception; modifying a second parameter in a preset universal register into the first parameter; taking the first parameter as a calling parameter of a super calling interface, and performing skipping from a virtual machine with the TLB exception to a host machine through the super calling interface; and carrying out TLB exceptionprocessing in the host machine according to the first parameter. According to the method and the device, when the TLB exception occurs in the virtual machine, the first parameter required for processing the TLB exception is transmitted to the host machine through the super calling interface, and at the moment, the virtual machine exits, so the host machine can process the TLB exception according to the first parameter. The TLB exception is processed by the host machine, so the exit frequency of the virtual machine can be reduced, the overhead of TLB exception processing is reduced, and the time for processing the TLB exception is shortened.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a TLB exception processing method, a data sharing device, an electronic device and a storage medium. Background technique [0002] The MIPS (Microprocessor without interlocked piped stages, microprocessor without internal interlocked pipeline stage) architecture is a concise, optimized, and highly scalable reduced instruction set (RISC) processor architecture. In the class virtualization (also known as paravirtualization) scenario based on the MIPS architecture, in order to improve data access efficiency and reduce repeated page table lookups, a TLB (Translation Lookaside Buffer, translation detection buffer) is introduced to cache the recently used Page table entries, that is, the mapping relationship between GVA (Guest Virtual Address, the virtual address of the virtual machine) to GPA (Guest PhysicalAddress, the physical address of the virtual machine) and the mapping relati...

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 Applications(China)
IPC IPC(8): G06F11/07G06F9/455
CPCG06F11/0793G06F9/45558G06F2009/45591Y02D10/00
Inventor 高翔李星毛碧波
Owner LOONGSON TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products