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

Virtual machine memory management method, physical host, pcie device and its configuration method, and migration management device

A physical host and memory management technology, applied in the directions of virtual memory details, memory architecture access/allocation, memory address/allocation/relocation, etc., can solve problems such as scattered registers and troubles

Active Publication Date: 2018-02-13
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the registers for saving the working information of the business are very scattered. If live migration is performed, the saving and restoring of the states of these registers need to be saved and restored independently one by one, which is very troublesome.

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 memory management method, physical host, pcie device and its configuration method, and migration management device
  • Virtual machine memory management method, physical host, pcie device and its configuration method, and migration management device
  • Virtual machine memory management method, physical host, pcie device and its configuration method, and migration management device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0123] An embodiment of the present invention provides a virtual machine memory management method, the method is executed by one of the aforementioned at least one virtual machine, see figure 2 , the method includes:

[0124] Step 101: The virtual machine allocates memory for at least one service carried by the PCIE device. The memory allocated to each service includes multiple memory blocks. The aforementioned multiple memory blocks are used to store the work information of the corresponding service. Each memory block is A segment of memory space where the physical addresses of the client are contiguous.

[0125] Step 102: The virtual machine generates a base address table (English: Base Address Table, abbreviated: BAT) and a chip logic address table (English: Chip Logic Address Table, abbreviated: CLAT) according to the memory allocated to each service. The base address of the CLAT entry corresponding to each service, and the CLAT includes the first address of each memory ...

Embodiment 2

[0130] The embodiment of the present invention provides a PCIE device configuration method, the method is executed by the aforementioned PCIE device, see image 3 , the method includes:

[0131] Step 201: The PCIE device receives the address of the BAT of each virtual machine and the corresponding function number of each virtual machine. Each of the above-mentioned virtual machines includes a base address table BAT, and the BAT is at least assigned to the PCIE device by the respective virtual machines. Generated by the memory of a business, the memory allocated to each business includes multiple memory blocks. The aforementioned multiple memory blocks are used to store the work information of the corresponding business. Each memory block is a piece of memory with continuous physical addresses of the client. space, the BAT includes the base address of the CLAT entry corresponding to each service, and the CLAT includes the first address of each memory block.

[0132] Step 202: ...

Embodiment 3

[0135] An embodiment of the present invention provides a virtual machine memory management method, the method is executed by the aforementioned migration management device, see Figure 4 , the method includes:

[0136] Step 301: During hot migration, the migration management device in the destination physical host obtains the address of the base address table BAT of the virtual machine in the source physical host, and the destination physical host and the source physical host are respectively connected to different shortcut peripheral components. PCIE device connection, the PCIE device is a hardware device that supports the single-root input and output virtualization SR-IOV standard, the PCIE device includes at least one physical function PF and at least one virtual function VF, where each PF and each VF are configured Has a unique function number.

[0137] In this embodiment, the migration management device may be a VMM.

[0138] Step 302: The migration management device ob...

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 discloses a virtual machine memory management method, a physical host, a PCIE device, a configuration method thereof, and a migration management device, belonging to the field of virtual machines. The method includes: the virtual machine allocates memory for at least one service carried by the PCIE device, and the memory allocated to each service includes a plurality of memory blocks, and the plurality of memory blocks are used to store the work information of the corresponding service, and each memory block It is a memory space with continuous physical addresses of the client; the virtual machine generates a base address table BAT and a chip logical address table CLAT according to the memory allocated to each service, and the BAT includes the base address of the CLAT entry corresponding to each service, CLAT includes the first address of each memory block; the virtual machine sends the address of BAT and the function number corresponding to the virtual machine to the PCIE device, and the PCIE device is used to record the correspondence between the address of BAT and the function number, and according to the address and function number of BAT The corresponding relationship between numbers, and the work information of the business is obtained from the virtual machine.

Description

technical field [0001] The invention relates to the field of virtual machines, in particular to a virtual machine memory management method, a physical host, a PCIE device, a configuration method thereof, and a migration management device. Background technique [0002] In a typical virtual machine application architecture, a virtual machine manager (English: Virtual Machine Manager, referred to as: VMM) with the function of managing virtual machines is installed on a physical host, and the VMM manages one or more virtual machines. An operating system (English: Operating System, OS for short) and various applications can run on the machine. The hardware of a general physical host mainly includes: a part of hardware related to running a virtual machine, such as a central processing unit (English: Central Processing Unit, referred to as: CPU), memory, hard disk, etc., and a part that is not directly used for running a virtual machine, but for Hardware that executes some specifi...

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/06
CPCG06F9/45558G06F12/0292G06F2009/4557G06F2009/45579G06F2009/45583G06F2212/151G06F2212/6042G06F13/105G06F12/1009G06F12/1027G06F13/4282G06F2212/65G06F2212/68G06F2213/0026
Inventor 卢胜文
Owner HUAWEI TECH CO LTD