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

Virtual machine establishing method, virtual machine monitor and virtual machine system

A virtual machine monitor and virtual machine technology, which is applied in the directions of instruments, program control design, program control devices, etc., can solve the problems of reducing the density of virtual machines, limiting the number of virtual machines, and not considering the memory usage of virtual machines. Memory usage, effect of increasing virtual machine density

Active Publication Date: 2014-06-11
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The above technologies do not consider the memory usage during the process of starting the GOS after the virtual machine is created, but first allocate all the memory required by the virtual machine to the virtual machine, and then reclaim part of the memory, which enables the physical machine to start the virtual machine concurrently. The number is limited by the amount of physical memory, reducing virtual machine density

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
  • Virtual machine establishing method, virtual machine monitor and virtual machine system
  • Virtual machine establishing method, virtual machine monitor and virtual machine system
  • Virtual machine establishing method, virtual machine monitor and virtual machine system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 2 It is a schematic diagram of the architecture of the virtual machine system in the embodiment of the present invention. like figure 2 As shown, the system includes: a virtual machine monitor and a virtual machine; wherein,

[0024] The virtual machine monitor is configured to map the client machine page frame number GFN corresponding to the pseudo-physical memory of the virtual machine to a shared zero page, where the shared zero page is a page whose page content is all zero in the physical memory; when the When the virtual machine writes the GFN, if a page exception occurs, a physical memory page is allocated to release the mapping relationship between the guest machine page frame number GFN and the shared zero page, and establish the guest machine page frame number GFN and the The mapping relationship of the machine page frame number MFN of the physical memory page.

[0025] Further, the virtual machine monitor can also be used to update the memory usage...

Embodiment 2

[0034] Embodiment 2 of the present invention provides a virtual machine monitor VMM. read on figure 2 , the virtual machine monitor includes:

[0035] Initialize the virtual memory unit 210, which is used to map the client page frame number GFN corresponding to the pseudo-physical memory of the virtual machine to a shared zero page, which is a page whose page content in the physical memory is all zero;

[0036] The copy-on-write unit 220 is configured to allocate a physical memory page to release the mapping relationship between the client page frame number GFN and the shared zero page if a page exception occurs when the above-mentioned virtual machine writes the GFN, and establishes the Describe the mapping relationship between the client page frame number GFN and the machine page frame number MFN of the physical memory page.

[0037] Specifically, initialize the virtual memory unit 210, specifically for indexing all GFNs corresponding to the pseudo-physical memory of the ...

Embodiment 3

[0047] Embodiment 3 of the present invention provides a method for creating a virtual machine, image 3 It is an overall flow chart of a method for creating a virtual machine in Embodiment 3 of the present invention, such as image 3 As shown, the method includes:

[0048] Step 310, mapping the client page frame number GFN corresponding to the pseudo-physical memory of the virtual machine to a shared zero page, where the shared zero page is a page whose page content is all zeros in the physical memory;

[0049] Step 320, when the virtual machine writes the GFN, if a page exception occurs, allocate a physical memory page to release the mapping relationship between the guest page frame number GFN and the shared zero page, and establish the guest page The mapping relationship between the frame number GFN and the machine page frame number MFN of the physical memory page.

[0050] Specifically, in step 310, mapping the guest page frame number GFN corresponding to the pseudo-physi...

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

A method for creating virtual machine, a virtual machine monitor and a virtual machine system are provided in the embodiments of this invention. The method comprises: mapping guest frame number (GFN) corresponding to a pseudo-physical memory of a virtual machine to a shared zero page, the shared zero page being a page having content of all zeros in physical memory; when the GFN is written by the virtual machine and if a page exception occurs, allocating a physical memory page to relieve the mapping relation between the guest frame number (GFN) and the shared zero page, and establishing a mapping relation between the guest frame number (GFN) and a machine frame number (MFN) of the physical memory page. The method can reduce the amount of memory used in virtual machine startup, improve virtual machine density, and support the concurrent startup of a memory overcommitted number of virtual machine.

Description

technical field [0001] The invention relates to virtual machine technology, in particular to a method for creating a virtual machine, a virtual machine monitor and a virtual machine system. Background technique [0002] Virtualization technology is a decoupling method that separates underlying hardware devices from upper-level operating systems and applications. It introduces a virtual machine monitor (Virtual Machine Monitor, VMM) layer to directly manage underlying hardware resources, and creates an environment independent of the underlying hardware. A virtual machine (Virtual Machine, VM) is used by the upper-layer operating system and application programs. Virtualization technology, as one of the underlying important supporting technologies of the current popular cloud computing (Cloud Computing) platform, can greatly improve the resource utilization efficiency of physical devices. like figure 1 As shown, after system virtualization, a physical machine can run multiple...

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/455G06F12/08
CPCG06F2009/45583G06F9/45558
Inventor 邱军叶川
Owner HUAWEI TECH CO LTD