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

Method, device and system for recovering virtual machine after deadlock

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: 2015-11-25
HUAWEI TECH CO LTD
View PDF4 Cites 0 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 recovering virtual machine after deadlock
  • Method, device and system for recovering virtual machine after deadlock
  • Method, device and system for recovering virtual machine after deadlock

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] like 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] like 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 disk ( V...

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 XenHypervisor, 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 resource 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 informa...

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

Provided in an embodiment of the present invention are a virtual machine deadlock restore method, device and system, used to avoid reactivating the whole server to a certain extent. The method comprises: in case of a virtual machine deadlock, transmitting a non-maskable interrupt to the virtual machine and configuring the virtual processor resources of the virtual machine; after the virtual machine responds to the non-maskable interrupt and finishes the last words collection, dispatching a first virtual processor from one or more virtual processors comprised in the configured virtual processor resources, and loading the kernel bootstrap program of the virtual machine onto the first virtual processor, so that the virtual machine can restore a service process according to the collected last words. The embodiment of the present invention is suitable for the cases of a virtual machine deadlock.

Description

technical field [0001] The invention relates to the field of computer technology, and in particular, to a recovery method, device and system after a virtual machine is deadlocked. Background technique [0002] In cloud computing systems, a large number of computing nodes use virtualization solutions. In a virtualized environment, generally only a special virtual machine (also called a privileged virtual machine) among all virtual machines undertakes management functions and controls real physical resources. access. [0003] When the privileged virtual machine is deadlocked, 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. For example, a timer p...

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