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

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

Active Publication Date: 2012-09-12
LOONGSON TECH CORP
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The present invention provides a memory access method and device and a finder in a virtual machine, to at least solve the problem in the related art that the virtual machine technology uses a pure software TLB for memory access to bring additional performance overhead

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
  • Method and device for access to memory of virtual machine and finders
  • Method and device for access to memory of virtual machine and finders
  • Method and device for access to memory of virtual machine and finders

Examples

Experimental program
Comparison scheme
Effect test

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...

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 provides a method and a device for access to a memory of a virtual machine, and finders. The method includes: using the first finder to find a physical address corresponding to a virtual address in an access request from the virtual machine; and accessing physical memory indicated in the physical address when the physical address corresponding to the virtual address is found in the first finder. The first finder is a software-hardware combined physical address finder and is composed of a CAM (central address memory) and a physical address finding logic. By the method and the device, the problem that using a pure-software TLB (translation lookaside buffer) in the virtual machine technique in related technologies to access memory causes extra performance cost is solved, and operational cost of the virtual machine can be reduced.

Description

technical field [0001] The present invention relates to the communication field, in particular, to a method and device for accessing memory in a virtual machine and a finder. Background technique [0002] With the development of computer hardware design technology, computer hardware platforms are increasingly diversified, which not only brings about a significant increase in computing performance, but also aggravates the problem of software compatibility. Heterogeneous virtual machine technology is an important means to solve software compatibility problems. Heterogeneous virtual machines can run binary executable programs written for another hardware platform on one hardware platform. The principle is to virtualize the instruction system and Associated hardware components that enable software designed for a target hardware platform to run on it. [0003] In a heterogeneous virtual machine system, the simulation efficiency of a TLB (Translation Lookaside Buffer, translatio...

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 Applications(China)
IPC IPC(8): G06F12/10G06F9/455G06F12/1036
Inventor 姜海涛靳国杰高翔胡伟武
Owner LOONGSON TECH CORP