Unlock instant, AI-driven research and patent intelligence for your innovation.

Real-time virtualization system and execution method thereof

A virtualization system and virtual machine technology, applied in the field of virtualization, can solve the problems of wasting processor time, system unresponsiveness, and reducing hypercall efficiency, etc., to achieve the effect of improving average efficiency, improving real-time performance, and preventing meaningless execution

Active Publication Date: 2020-01-21
北京直客通科技有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006](1) Since the number of hypercalls to be executed may be large, the virtual machine will be trapped in the virtual machine monitor for too long, destroying the real-time performance of the system, and possibly make the whole system unresponsive
[0007] (2) Once one of the hypercalls fails, subsequent hypercalls that depend on it may also fail, but these subsequent hypercalls will still be attempted to execute, waste of processor time
[0008] (3) Some super calls are suitable for batch execution due to their short time consumption, while others are not suitable for batch execution due to their long time consumption. The current Xen implementation Allow batch execution of arbitrary hypercalls, which may cause the system to become unresponsive
[0009](4) The hypercall can only be processed on the physical CPU corresponding to the virtual CPU, and cannot be processed by a separate physical CPU core, which will cause A large number of processor state switches and greatly reduces the efficiency of hypercall execution

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] A real-time virtualization system comprising:

[0043] A virtual machine monitor, configured to provide virtualization services for the virtual machine;

[0044] a number of virtual machine modules connected to the virtual machine monitor for supporting virtualized applications;

[0045] A processor on which the virtual machine monitor runs to execute algorithms in batches using real-time hypercalls or asynchronously execute algorithms using cross-core hypercalls.

[0046] In this embodiment, the processor is a single-core processor or a multi-core processor, wherein the virtual machine monitor runs on the processor and uses a real-time hypercall batch execution algorithm; the virtual machine monitor runs The algorithm is executed asynchronously on the processor using cross-core hypercalls.

[0047] In this embodiment, the processor is also provided with a ring buffer created by using shared memory and capable of having multiple writers and one reader. The ring buffer...

Embodiment 2

[0063] In this embodiment, taking a PLC industrial control system as an application scenario, the virtual machine module (that is, a PLC industrial control system) includes an electromechanical control module and a communication module. Wherein, the priority of the electromechanical control module is higher than that of the communication module, and the electromechanical control module will not execute the hypercalls in batches; the communication module will execute the hypercalls in batches to facilitate the data packet A large number of sending and receiving.

[0064] After the system is powered on, the virtual machine monitor loads the electromechanical control module and the communication module from the processor;

[0065] The communication module makes a request to the virtual machine monitor to execute the hypercall in batches to receive the engineering data sent by the host computer, fill in the form in the memory and choose to execute in stages without ignoring errors...

Embodiment 3

[0072] In this embodiment, the machine tool control system is used as an application scenario, and the virtual machine module (that is, the machine tool control system) includes a motion control module, a communication control module and a graphical interface module. Among the three modules, the motion control module has the highest priority, and the amount of calculation is small, and the communication control module and the graphical interface module have low requirements on efficiency, and their priority is lower than that of the motion control module. , the communication control module needs a large amount of calculation data, and these calculations must be completed by a DSP instruction set that can only be accessed in a privileged state, so the hypercall needs to be used.

[0073] After the system is powered on, the virtual machine monitor module loads the motion control module, the communication control module and the graphical interface module from the processor;

[00...

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 a real-time virtualization system and an execution method thereof, and the system comprises a virtual machine monitor used for providing a virtualization service for a virtualmachine; a plurality of virtual machine modules connected to the virtual machine monitor and used for supporting virtual application programs; a processor on which the virtual machine monitor runs touse a real-time hyper-call batch execution algorithm or a cross-core hyper-call asynchronous execution algorithm; wherein the execution method comprises real-time super call batch execution and real-time super call cross-core asynchronous execution. According to the virtualization system and the execution method thereof, the average efficiency of super calling can be improved; the real-time performance of the system can be improved.

Description

technical field [0001] The invention relates to the technical field of virtualization, in particular to a real-time virtualization system and an execution method thereof. Background technique [0002] At present, the functions of embedded systems are becoming more and more diversified, and the number of software modules used is increasing day by day, which makes the difficulty and complexity of system construction rise rapidly. Therefore, people have introduced virtualization technology to deal with this problem. [0003] However, there are many problems in using virtualization solutions in real-time systems, and one of the more important problems is the performance of virtualization. [0004] Since the performance loss of the real-time virtualization solution is mainly caused by the hypercall initiated by the virtual machine, people think of performing multiple hypercalls together. [0005] However, according to the current prior art such as the implementation of Xen, simp...

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): G06F9/455
CPCG06F9/45558G06F2009/45591
Inventor 王云飞
Owner 北京直客通科技有限公司