Check patentability & draft patents in minutes with Patsnap Eureka AI!

Atomic instruction simulation method of parallel multi-nuclear virtual machine and virtual machine device

A technology of atomic instructions and simulation methods, applied in the direction of concurrent instruction execution, machine execution device, program control device, etc., can solve problems such as versatility limitations, and achieve the effects of good versatility, high execution efficiency, and high portability

Active Publication Date: 2012-09-12
LOONGSON TECH CORP
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The algorithm has various restrictions on the use environment, such as the need to provide additional storage space to save the descriptor (descriptor), must use special functions to read and write memory, etc., the versatility is limited

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
  • Atomic instruction simulation method of parallel multi-nuclear virtual machine and virtual machine device
  • Atomic instruction simulation method of parallel multi-nuclear virtual machine and virtual machine device
  • Atomic instruction simulation method of parallel multi-nuclear virtual machine and virtual machine device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0018] figure 1 It is a flowchart of an atomic instruction simulation method for a parallel multi-core virtual machine according to an embodiment of the present invention. The virtual machine applicable to this method creates multiple CPU threads equal to the number of CPU cores according to the number of cores of the target CPU. Such as figure 1 As shown, the method includes steps 101-105.

[0019] In step 101, a first CPU thread among multiple CPU threads sends a request waiting signal to other CPU threads.

[0020] Specifically, when the virtual machine simulates the execution of the atomic memory access instruction, first a CPU thread requesting the execution of the atomic memory access instruction among the multiple CPU threads, such as the first CPU thread, sends a request waiting signal to other CPU threads.

[0021] In ste...

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 discloses an atomic instruction simulation method of a parallel multi-nuclear virtual machine and a virtual machine device. The virtual machine establishes a plurality of CPU threads with the number equal to the number of central processing unit (CPU) cores according to the number of the cores of a target CPU. The atomic instruction simulation method includes that a first CUP thread in the plurality of CUP threads sends request waiting signals to other CPU threads; the other CUP threads receiving the request waiting signals are suspended at original executive addresses and return back to confirm signals; the first CPU thread receives confirmation signals of all the other CPU threads and then executes atomic memory accessing instructions; waiting canceling signals are sent to the suspended CUP threads located at the original executive addresses; and the CPU threads receiving the waiting canceling signals continue execution from the original executive addresses. The atomic instruction simulation method of the parallel multi-nuclear virtual machine and the virtual machine device has high generality and execution efficiency.

Description

technical field [0001] The invention relates to the technical field of virtual machines, in particular to an atomic instruction simulation method of a parallel multi-core virtual machine and a virtual machine device. Background technique [0002] A virtual machine (Virtual Machine) is a software system that simulates a hardware device. With the popularity of multi-core CPUs in recent years, virtual machines have also begun to increase the simulation function for multi-core CPUs. In the early days, the serial method was mainly used to simulate the operation of multi-core CPUs, that is, the virtual machine is a single process, which polls and schedules multiple CPUs in a time-sliced ​​manner at the micro level, and simulates the parallel behavior of multiple CPUs at the macro level. In open source virtual machine systems (such as Bochs, QEMU, Simple-scalar, etc.), multiple CPUs in the target system are simulated and executed in a serial method. This method is simple to imple...

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
IPC IPC(8): G06F9/455G06F9/38
Inventor 靳国杰高翔
Owner LOONGSON TECH CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More