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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


