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

Method and device for processing exception of virtual machine

A virtual machine and exception technology, applied in the field of communications, can solve the problems of increasing driver parsing and processing tasks, reducing virtual machine performance, and large overhead, and achieving the effects of reducing parsing and processing tasks, improving performance, and reducing system overhead.

Inactive Publication Date: 2016-04-06
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above method, if it is done by user mode alone, it will cause a large overhead, resulting in a decrease in the performance of the virtual machine; if it is done by kernel mode alone, it will increase the parsing and processing tasks of the driver

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
  • Method and device for processing exception of virtual machine
  • Method and device for processing exception of virtual machine
  • Method and device for processing exception of virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 It is a flow chart of a method for handling virtual machine exceptions provided by the present invention. Methods for handling virtual machine exceptions include:

[0049] S10: When the virtual machine is running in the client mode and abnormal information is detected, exit the current operation and switch to the kernel mode;

[0050] S11: Determine whether the abnormal information contains an I / O command; if yes, go to step S12, otherwise, go to step S13;

[0051] S12: processing exception information in user mode;

[0052] S13: Handle exception information in kernel mode.

[0053] When the virtual machine is running in the guest mode, if abnormal information is detected, it needs to exit the current running mode and switch to the kernel mode. Since exception information can be divided into two categories, one can be processed in user mode, and the other can be processed in kernel mode. Therefore, step S11 is executed in kernel mode. When the abnormal in...

Embodiment 2

[0071] image 3 It is a structural diagram of a device for handling virtual machine exceptions provided by the present invention. Devices for handling virtual machine exceptions include:

[0072] The client mode switching unit 10 is used to exit the current operation and switch to the kernel mode when the virtual machine runs in the client mode and detects abnormal information;

[0073] The kernel mode judging unit 11 is used to judge whether the abnormal information includes an I / O instruction, if so, triggers the user mode processing unit 12, otherwise triggers the kernel mode processing unit 13;

[0074] User mode processing unit 12, configured to process exception information in user mode;

[0075] The kernel mode processing unit 13 processes exception information in the kernel mode.

[0076] When the virtual machine is running in the guest mode, if the guest mode switching unit 10 detects abnormal information, it needs to exit the current running mode and switch to the...

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 method for processing exception of a virtual machine. The method comprises the following steps of exiting current running and switching to a kernel mode when the virtual machine runs in a client mode and an exception message is detected; and judging whether the exception message includes an I / O command, if yes, processing the exception message under a user mode, otherwise processing the exception message under the kernel mode. The method can directly process under the kernel mode according to the characteristics of the exception message, so that larger expenditure generated by user mode processing is avoided when switching to the user mode, and thus the performance of the virtual machine is improved to a certain extent; the method can also process under the user mode, so that drive analysis and processing tasks are reduced, and the system expenditure of the virtual machine is reduced. In addition, the invention also discloses a device for processing exception of the virtual machine.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for processing abnormality of a virtual machine. Background technique [0002] The exception of the virtual machine is not exactly the same as the trigger condition and processing idea of ​​the traditional operating system. Under the virtualization condition of the virtual machine, the abnormality of the guest operating system usually needs to be handled under the supervision of the virtual machine manager. In the implementation scheme of a virtual machine, there are usually three modes, namely kernel mode, user mode and client mode. According to different situations, switch among the above three modes. For example, in the implementation scheme of the virtual machine, when the interrupt and exception of the guest application program are triggered, switching operations will occur between the kernel mode, the user mode and the guest mode. [00...

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/455G06F11/07
CPCG06F9/45533G06F11/0712
Inventor 宋腾
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
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