Method and device for accessing memory

A device and memory technology, applied in the computer field, can solve problems such as hanging, no isolation and protection, system reset, etc.

Active Publication Date: 2014-11-26
HUAWEI TECH CO LTD
View PDF7 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The inventors have found that the prior art has at least the following defects: since there is no isolation and protection between the dedicated functional memory and the system memory, once an error occurs in accessing the address of the dedicated functional memory, it is possible to step on the system memory, which is likely to cause sy

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 accessing memory
  • Method and device for accessing memory
  • Method and device for accessing memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Embodiment 1 of the present invention provides a method for accessing memory, see figure 1 , the method can include:

[0077] 101. Acquire a data access request from a first device requesting access to a first memory area, wherein the data access request includes a physical memory address of the data that the first device requests to access; the first memory area corresponds to the first device dedicated physical memory area;

[0078] Wherein, the first device is a device that implements a specific function by accessing the physical memory of the computer. For example, in the CPU of the X86 system and the FPGA data packet forwarding system, the first device is an FPGA; or, the first device can be a virtualization platform. Peripherals of the virtual machine; the present invention does not specifically limit the type of the first device;

[0079] The first memory area is a dedicated physical memory area allocated in physical memory for the first device to implement cor...

Embodiment 2

[0125] Embodiment 2 of the present invention provides a method for accessing memory. In an X86 system, the CPU cooperates with the FPGA data packet forwarding system in the FPGA data packet forwarding system to store data in the memory as an example. figure 1 The method for accessing the memory shown in the following description is described in detail, and the specific process of the method for accessing the memory can be completed by the physical machine where the physical memory is located;

[0126] It should be noted that, see image 3 , in the CPU of the X86 system cooperates with the FPGA data packet forwarding system, the data exchanged between the FPGA and the physical memory includes storing and reading data from the FPGA to the physical memory, and the embodiment of the present invention only uses the FPGA as the first device to store data to the physical memory as an example The method of accessing memory is described. The method of accessing memory of other devices ...

Embodiment 3

[0175] Embodiment 3 of the present invention provides a method for accessing memory, taking reading data packets from physical memory as an example, for figure 1 The method for accessing the memory shown is described in detail, and the specific process of the method for accessing the memory can be completed by the physical machine where the physical memory is located.

[0176] The method for allocating the first memory area and the physical memory address mapping of the first memory area and the definition of the message queue is similar to the method described in step 401, step 402 and step 403 in the second embodiment, and this embodiment is no longer described here repeat;

[0177] In this embodiment, it is assumed that: the physical address in the first memory area is 2001H-2400H; the message queue depth is 10, and the reference address is 2001H; the physical address of the location where data packet X is stored is 2300H; the data information corresponding to data packet X...

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 embodiment of the present invention discloses a method and device for accessing memory, relating to the computer field, and enabling the safty of the memory of a system to be improved effectively. The method provided by the embodiment of the present invention comprises the steps of obtaining a data access request that a first device requires to access a first memory area, wherein the data access request comprises a physical memory address of the data that the first device requires to access, the first memory area is a special physical memory area corresponding to the first device; according to the physical memory address of the data that the first device requires to access, querying the physical memory address information in an I/O virtual controller device, wherein the physical memory address information contains a physical memory address corresponding to the physical memory address of the first memory area; if the physical memory address of the data that the first device requires to access is in the physical memory address information in the I/O virtual controller device, accessing the first memory area.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for accessing memory. Background technique [0002] In the physical memory of the computer system, there are both system memory for storing the computer operating system and special functional memory for storing data when the computer implements specific functions. The special functional memory and the system memory are not isolated and distributed in physical In-memory, for example, in a central processing unit (Central Processing Unit, referred to as CPU) in conjunction with a field-programmable gate array (Field-Programmable Gate Array, referred to as FPGA) to realize the data packet forwarding system, allocate a piece of memory from the physical memory Used as forwarding memory (dedicated functional memory), used to store message queue (Queue), data cache (Buffer), message pointer, forwarding memory and system memory are distributed in physical memory without isol...

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
IPC IPC(8): G06F12/06G06F13/16
CPCH04L63/10
Inventor 姚传群王俊杰彭伟林
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products