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

Method and device for online replacement of bottom block device driver of virtual operating system

A virtual operating system and device-driven technology, applied in the field of cloud computing products, can solve problems such as inability to switch, and achieve the effect of improving flexibility and maintainability

Active Publication Date: 2017-12-26
ALIBABA CLOUD COMPUTING LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method does not apply to other underlying block device types (such as: disks, distributed storage systems), so it does not have the ability to switch between multiple underlying block device types

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 online replacement of bottom block device driver of virtual operating system
  • Method and device for online replacement of bottom block device driver of virtual operating system
  • Method and device for online replacement of bottom block device driver of virtual operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0109] Such as Figure 5 As shown, the embodiment of the present invention takes the switching of the first BDS to the second BDS as an example to illustrate the steps of the method for online replacement of the underlying block device driver of the virtual operating system:

[0110] figure 1 The shown QEMU uses the underlying block device driver corresponding to the distributed back-end storage via the distributed network protocol interface as the first BDS; figure 2 The shown QEMU uses the underlying block device driver corresponding to the local high-speed block device file via the standard block device interface as the second BDS. Similar to the traditional BDS structure, the two BDS structures we constructed need to contain the corresponding block device names. For example, the block device name of the first BDS is: network: / / remote_uri / dev1, and the block device name of the second BDS It is: / dev / vrdev1; the difference from the traditional BDS structure is that the tw...

Embodiment 2

[0116] Such as Figure 5 As shown, the embodiment of the present invention takes the switching of the BDS corresponding to the high-speed block device file to the BDS corresponding to the distributed storage as an example to illustrate the steps of the method for online replacement of the underlying block device driver of the virtual operating system:

[0117] First, construct a suitable BDS structure corresponding to the distributed storage, which contains the most critical part, that is, the device name of the high-speed block device file on the fast path. QEMU creates an empty BDS structure, passes the device name to the new BDS structure, calls the open function corresponding to the block device file, and opens the BDS structure corresponding to the distributed storage, and completes the BDS corresponding to the distributed storage The structure of the structure.

[0118] Then, wait for the I / O that has occurred but has not ended, which includes two steps, first suspend t...

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 provides a method and a device for online replacement of a bottom block device driver of a virtual operating system and relates to the field of cloud computing products. The method comprises the steps that a second block device driver state structural body is constructed; whether input / output (I / O) of a backend device corresponding to a first block device driver state structural body is completed is determined; and member information of the first block device driver state structural body and member information of the second block device driver state structural body are exchanged. Through the method and the device, I / O data can switch from one type of bottom block device drivers to another type of bottom block device drivers, free switching between two types of devices can be realized without influencing the operating condition of a virtual machine, and therefore the flexibility and maintainability of a complete set of QEMU-KVM virtual product system are greatly improved.

Description

technical field [0001] The invention relates to the field of cloud computing products, in particular to a method and a device for online replacement of the underlying block device driver of a virtual operating system. Background technique [0002] The virtual operating system QEMU is an existing simulated processor product, which can use QEMU to simulate a complete set of computer hardware, and can run a complete operating system and various programs on the virtual hardware. Usually QEMU is used in conjunction with existing KVM (Kernel-based Virtual Machine, kernel-based virtual machine) virtualization products, which is called QEMU-KVM. [0003] A block device is a type of input / output device that stores information in fixed-size blocks, each with its own address. The size of the data block is usually between 512 bytes and 32768 bytes. The basic characteristic of a block device is that each block can be read and written independently of other blocks (that is, to allow ran...

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/45579
Inventor 张金利
Owner ALIBABA CLOUD COMPUTING 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