Method and device for access to memory of virtual machine and finders
A memory access and finder technology, applied in the communication field, can solve the problems of pure software TLB extra performance overhead, etc., to achieve the effect of reducing overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] This embodiment provides a memory access method in a virtual machine, specifically, as figure 2 As shown, the method includes:
[0034] S202, according to the virtual address in the access instruction from the virtual machine, search the physical address corresponding to the virtual address in the first finder, wherein the first finder is composed of a content index fully associative memory CAM and a physical address lookup logic Software and hardware cooperative physical address finder;
[0035] S204. If the physical address corresponding to the virtual address is found in the first finder, access the physical memory indicated by the found physical address.
[0036] In the implementation of the above-mentioned preferred embodiment, in the conversion process from the virtual address of the target machine to the physical address of the host machine in the virtual machine, firstly, the software and hardware cooperative physical address search composed of the content ind...
Embodiment 2
[0042] On the basis of the above-mentioned embodiment 1, this preferred embodiment provides a finder, which is a software-hardware cooperative physical address finder composed of CAM and physical address lookup logic. Preferably, the above-mentioned CAM includes An index field and a data field corresponding to the index field. Specifically, as image 3 As shown, the finder includes: a first search unit 302, configured to search for a physical address corresponding to a virtual address according to a virtual address in an access instruction from a virtual machine; When the physical address corresponding to the virtual address is found, the physical memory indicated by the found physical address is accessed.
[0043] In the implementation of the above-mentioned preferred embodiment, in the conversion process from the virtual address of the target machine to the physical address of the host machine in the virtual machine, firstly, the software and hardware cooperative physical a...
Embodiment 3
[0046] On the basis of the above-mentioned embodiment 1 and embodiment 2, this embodiment provides a memory access device in a virtual machine, specifically, as Figure 5 As shown, the device includes: a second search unit 502, configured to search the physical address corresponding to the virtual address in the first finder according to the virtual address in the access instruction from the virtual machine, wherein the first finder is a CAM A software and hardware cooperative physical address finder composed of physical address lookup logic; the second access unit 504 is used to access the physical memory indicated by the found physical address when the physical address corresponding to the virtual address is found in the first finder .
[0047] In the conversion process from the virtual address of the target machine to the physical address of the host machine in the virtual machine, firstly, in the software-hardware cooperative physical address finder (the first finder) comp...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 