A method and device for online replacement of the underlying block device driver of a virtual operating system

A virtual operating system, device-driven technology, applied in the field of cloud computing products, can solve the problem of not having the ability to switch, and achieve the effect of improving flexibility and maintainability

Active Publication Date: 2021-02-05
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
  • A method and device for online replacement of the underlying block device driver of a virtual operating system
  • A method and device for online replacement of the underlying block device driver of a virtual operating system
  • A method and device for online replacement of the underlying block device driver of a 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

This application proposes a method and device for online replacement of the underlying block device driver of a virtual operating system, which relates to the field of cloud computing products, including: constructing the second device driver state structure; determining the corresponding back-end device of the first device driver state structure The input / output I / O is completed; exchanging the member information of the first device driver state structure and the second device driver state structure. The present invention enables I / O data to be switched from one type of underlying block device driver to another type of underlying block device driver, freely switching between the two types of devices without affecting the running status of the virtual machine, and greatly improving the entire set of QEMU-KVM virtualization products System flexibility and maintainability.

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 Patents(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products