Unlock instant, AI-driven research and patent intelligence for your innovation.

Xen virtual machine fork mechanism establishment method

A method of establishing a virtual machine, which is applied in the field of computer virtualization, can solve problems such as violation, unavailability, and failure to meet automation requirements, and achieve the effect of saving service interruptions

Active Publication Date: 2019-09-06
NAT UNIV OF DEFENSE TECH
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing virtual machine cloning technology is static cloning. First, suspend or shut down the virtual machine to be cloned, then manually perform the cloning operation, and finally restore the original virtual machine and start a new virtual machine. This method does not conform to the virtual machine fork. The automatic requirement of cloning a sub-virtual machine scenario while the original virtual machine is running, this cloning method can be called dynamic cloning
Moreover, because static cloning suspends or shuts down the original virtual machine, there is a clear period of time when the service is unavailable, which violates the idea of ​​​​imitating the Linux process fork mechanism

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
  • Xen virtual machine fork mechanism establishment method
  • Xen virtual machine fork mechanism establishment method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be further described below in conjunction with drawings and embodiments.

[0022] Since both Dom0 and DomU are virtual machines on Xen, the virtual machine of Fork in the embodiment only includes DomU, but Dom0 is also an important role in the Fork process. "Machine" is referred to by "DomU".

[0023] The goal to be realized by the present invention is to make DomU Fork out of the child DomU to perform corresponding program functions during the running process. The main idea of ​​its realization is that when the parent DomU wants to fork, it informs Dom0 to start a configuration file that is the same as the parent DomU kernel. A different new DomU (that is, a child DomU), after the child DomU is started, copies the memory and register status of the parent DomU to the child DomU.

[0024] combined with figure 1 , the present invention mainly modifies the Libxl module of the Xen kernel, changes the DomU mirror image establishment and start-up ...

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 belongs to the field of computer virtual technologies, and in particular relates to a Xen virtual machine Fork mechanism building method. The method mainly comprises the steps of starting a xen system, and setting two progresses in a libxl module main function of an Xen core; building parent DomU and starting up the same, reading an is_parent zone bit under own DomU in an Xenstore, and if the zone bit is equal to 1, executing fork operation of the parent DomU; building a son DomU and starting up the same, reading the is_parent zone bit under own DomU in the Xenstore, and if the zone bit is equal to 0, executing fork operation of the son DomU; and reading an authorization list subscript and page offset in the Xenstore, a register state value, and a function name to be executed by using the son DomU, mapping an authorization page, restoring the state of the register, and then executing the function.

Description

technical field [0001] The invention belongs to the technical field of computer virtualization, and in particular relates to a method for establishing a Xen virtual machine Fork mechanism. Background technique [0002] Xen is an open source virtual machine monitor. The virtual machine running on Xen is called Domain (domain). Among the many Domains on Xen, there is a privileged domain to assist Xen in managing other Domains and provide corresponding virtual resources. Services, especially the access of other Domains to I / O devices, this privileged domain is called Domain0 (abbreviation: Dom0), while others are called DomainU (abbreviation: DomU). In this article, the virtual machines referred to by the Fork mechanism refer to DomU. Fork means fork and clone. The Xen system implements a shared memory mechanism for data sharing and transfer between Domains. It is based on the authorization mechanism between Domains, that is, access to shared memory needs to be pre-authorized...

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
Inventor 张一鸣章成飞喻凯李东升
Owner NAT UNIV OF DEFENSE TECH