Method, device and system for restoring deadlock of virtual machine

A recovery method and virtual machine technology, applied in the computer field, can solve problems such as long time consumption, out-of-sync storage data, business interruption, etc., and achieve the effect of avoiding business disasters for too long

Inactive Publication Date: 2012-07-25
HUAWEI TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the method of restarting the entire server in the prior art has caused phenomena such as out-of-synchronization of stored data, and the restart process takes a long time, resulting in long-term business interruption

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, device and system for restoring deadlock of virtual machine
  • Method, device and system for restoring deadlock of virtual machine
  • Method, device and system for restoring deadlock of virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 As shown, the embodiment of the present invention provides a computing node 100, including:

[0058] The hardware layer 110 , the virtual machine monitor VMM50 running on the hardware layer 110 , and the virtual machine VM running on the VMM, the virtual machine VM includes a privileged virtual machine 701 and at least one service virtual machine 702 .

[0059] The hardware layer 110 includes a processor, a hard disk, a network card, a memory, and the like. Wherein, the processor may be a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processing), a field programmable gate array (FPGA, Field Programmable Gate Array) and the like.

[0060] Such as figure 2 As shown, the virtual machine mainly includes: virtual hardware 21, a guest operating system 22 running on the virtual hardware 21; the virtual hardware 21 includes: at least one virtual processor 23; virtual memory (VMEM) 24; virtual hard dis...

Embodiment 2

[0074] As shown in Figure 3 (a), the embodiment of the present invention provides a recovery method after a virtual machine deadlock, the execution subject of the method may be a virtual machine monitor, specifically, it may be a Xen Hypervisor, including:

[0075] 301. When a deadlock occurs in a virtual machine, send a non-maskable interrupt to the virtual machine and configure virtual processor resources of the virtual machine.

[0076]302. After the virtual machine responds to the non-maskable interrupt and collects the last words, schedule the first virtual processor from one or more virtual processors included in the configured virtual processor resources and execute the Load the kernel boot program of the virtual machine on the first virtual processor, so that the virtual machine resumes the business process according to the collected last words; the last words include the stacks of each virtual processor corresponding to the virtual machine at the time of deadlock info...

Embodiment 3

[0093] As shown in Figure 4(a), the embodiment of the present invention provides another recovery method after a virtual machine deadlock, including:

[0094] 401. The virtual machine monitor VMM initializes a monitoring timer.

[0095] 402. The virtual machine VM generates heartbeat information according to a predetermined first time interval. The virtual machine VM here may be a privileged virtual machine or a business virtual machine.

[0096] 403. In the calling mode provided by the VMM, the VM sends the heartbeat information to the VMM at a predetermined second time interval. Preferably, the call mode is a hyper call.

[0097] 404. The VMM receives heartbeat information sent by the VM at a predetermined second time interval; the VMM updates a monitoring timer according to the heartbeat information.

[0098] It should be noted that the first time interval and the second time interval involved in steps 402, 403, and 404 may be the same time interval, or may be different ...

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

An embodiment of the invention provides a method, a device and a system for restoring deadlock of a virtual machine, which solve the problem of restarting an integral server to some extent. The method for restoring deadlock of the virtual machine includes: transmitting non-maskable interrupt to the virtual machine and configuring virtual processor resources of the virtual machine in case of deadlock of the virtual machine; dispatching a first virtual processor from the configured virtual processor resources comprising at least one virtual processor and loading an inner core guiding program of the virtual machine to the first virtual processor after the virtual machine makes response to the non-maskable interrupt and collects last words, so that the virtual machine can restore service progress according to the collected last words. The method, the device and the system for restoring deadlock of the virtual machine in the embodiment are applicable to cases of deadlock of the virtual machine.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a recovery method, device and system for a virtual machine after a deadlock. Background technique [0002] In a cloud computing system, a large number of computing nodes adopt virtualization solutions. In a virtualized environment, generally only one special virtual machine (also called a privileged virtual machine) among all virtual machines undertakes management functions and controls real physical resources. access. [0003] When a deadlock occurs in a privileged virtual machine, the network card or disk device driver cannot work normally, and cannot meet the IO request of the guest operating system, resulting in the failure of all virtual machine services on the entire computing node. In order to solve this problem, in the prior art, the normal operation of the privileged virtual machine is restored by restarting the entire computing node such as a server. (Intelligent Pl...

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): G06F11/07
CPCG06F11/0712G06F11/0793G06F11/07
Inventor 范良
Owner HUAWEI TECH CO LTD
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