Memory management method, device and equipment
A technology of memory management and memory management unit, which is applied in the field of devices and equipment, and memory management methods, and can solve problems such as device direct technology, inability to use virtual machine memory, and inability to use memory scaling technology in virtual machine memory, so as to shorten the data transmission path , to avoid the effect of interaction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0068] Embodiment 1: see figure 2 Shown is a flowchart of a memory management method, which may include:
[0069] Step 201, receiving a shrinking request for memory of a virtual machine.
[0070] Step 202, determine the physical memory address of the virtual machine that needs to be shrunk according to the shrinking request.
[0071] Step 203: Operate the virtual machine physical memory address in the access page table, so that when an external device accesses the virtual machine memory, access to the virtual machine physical memory address is prohibited according to the access page table.
[0072] In an example, an unmapped request for the virtual machine's physical memory address may be sent to the memory management unit, and the unmapped request may include the virtual machine's physical memory address, so that the memory management unit accesses the page table according to the unmapped request Operate on the physical memory address of the virtual machine.
[0073] In a...
Embodiment 2
[0076] Example 2: see image 3 Shown is a flowchart of a memory management method, which may include:
[0077] Step 301, receiving a memory expansion request for a virtual machine.
[0078] Step 302, determine the physical memory address of the virtual machine that needs to be expanded according to the capacity expansion request.
[0079] Step 303: Operate the virtual machine physical memory address in the access page table, so that when an external device accesses the virtual machine memory, access to the virtual machine physical memory address is allowed according to the access page table.
[0080] In an example, after step 302, the physical memory address of the host machine may also be determined according to the physical memory address of the virtual machine. Based on this, in step 303, the mapping relationship between the virtual machine physical memory address and the host physical memory address can be added in the access page table, so that when an external device a...
Embodiment 3
[0085] Embodiment 3: see Figure 4 Shown is a flowchart of a memory management method, which may include:
[0086] Step 401, receiving a scaling request for virtual machine memory.
[0087] Step 402: Determine the physical memory address of the virtual machine that needs to be scaled according to the scaling request.
[0088] Step 403, operate on the virtual machine physical memory address in the access page table, so that when an external device accesses the virtual machine memory, access to the virtual machine physical memory address is prohibited according to the access page table, or, according to the access page The table allows access to the physical memory address of the virtual machine.
[0089] In one example, if the scaling request is used to shrink the memory of the virtual machine, then in step 403, an operation may be performed on the physical memory address of the virtual machine in the access page table, so that the external device can shrink the memory of the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


