Multi-nucleus processor sharing code segment patching method and apparatus

A multi-core processor and shared code technology is applied in the field of multi-core processor shared code segment patching, which can solve the problems of limited patching range, reduced system design flexibility, and inability to use multi-tasking environments, so as to avoid limitations, The effect of enhancing reliability

Inactive Publication Date: 2008-05-14
SHANGHAI HUAWEI TECH CO LTD
View PDF0 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Although the above two methods can solve the problem of patching to a certain extent, they need to be guaranteed during system design, which reduces the flexibility of system design; the multi-tasking environment cannot be used or the scope of patching is limited
[0010] Since the multi-core processor itself is a parallel processing method of multiple vCPUs, in the case of multi-core processors and shared code segments, since there are multiple vCPUs to jointly execute the same code, but each vCPU uses independent private data (including task context ), it is difficult to ensure the completion of the patch operation when patching, and due to the independence of each vCPU, it is difficult for the vCPU patching the shared code to view the current execution status of other vCPUs
[0011] Therefore, although the patch operation in the single-CPU multitasking environment is realized in the above technology, it still cannot solve the patch operation when the multi-core processors share code segments.

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
  • Multi-nucleus processor sharing code segment patching method and apparatus
  • Multi-nucleus processor sharing code segment patching method and apparatus
  • Multi-nucleus processor sharing code segment patching method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] Embodiment 1, the embodiment of the present invention is applied to multi-core processors, i.e. vCPU (Virtual CPU, virtual CPU) runs vxWorks (VxWorks operating system is a kind of embedded real-time operating system designed and developed by Wind River Company of the United States in 1983) as a control vCPU manages the public resources of the system and manages and monitors other business vCPUs; other business vCPUs run a single-task OS (Operations System, operating system) to complete efficient user data processing, and we will refer to it as business vCPU. Other vCPUs except vCPU0 adopt the shared code segment mode, that is, all business vCPUs use the same code on the physical memory through TLB (Translation Lookaside Buffers, translation lookaside buffer) mapping, but each vCPU uses an independent The data segment ensures the independence of the business processing of each business vCPU. That is to say, the virtual address of the shared code area, the actual physical...

Embodiment 2

[0064] Embodiment 2, corresponding to the method of Embodiment 1, the embodiment of the present invention also provides a multi-core processor shared code segment patching device, referring to FIG. 4, the device includes:

[0065] Authority control unit 401, used for code patch area and shared code segment;

[0066] A sending unit 402, configured to send a patch synchronization message to the service vCPU;

[0067] The control unit 403 is used to check whether all the service vCPUs are synchronized; if all are completed, perform a patch operation.

[0068] The sending unit 402 may be further configured to notify the service vCPU that the patching operation is completed.

[0069] The device may further include a receiving unit 404, configured to receive the Cache refresh completion notification sent by the service vCPU;

[0070] The authority control unit 401 is further configured to cancel the access authority of the service vCPU to the shared patch area and the shared code ...

Embodiment 3

[0073] Embodiment 3, corresponding to the method of Embodiment 1, the embodiment of the present invention also provides a multi-core processor shared code segment patching device, referring to FIG. 5, the device includes:

[0074] The receiving unit 501 is configured to receive a patch synchronization message; receive a patch operation completion notification issued by the control vCPU0;

[0075] The operation unit 502 is used to set the flag variable to be in a synchronous state; refresh the Cache of L1 in the CORE, and notify the control vCPU0 that the refresh is completed, and start normal business processing.

[0076] The above-mentioned operation unit notifies the control vCPU0 that the refresh is completed, specifically setting the flag variable as the completion state for the service vCPU.

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 embodiment discloses a method of polycaryon processor sharing code segment mend, which is more particularly that: the visiting right for the prearranged code mend area and the sharing code segment is opened and mend synchronization information is sent to the operation vCPU; whether all the operation vCPU finishes synchronization is checked, and mend operation is conducted if all synchronizations are finished. The invention also discloses a polycaryon processor sharing code segment mend device, which comprise a right control unit, a transmission unit and a control unit. Owning to the method of synchronization multi business vCPU, the invention resolves the reliability of polycaryon CPU mend operation and realizes the mend technology under the condition of polycaryon processor sharing code segment.

Description

technical field [0001] The invention relates to the field of computers, in particular to a patch method and device for sharing code segments of multi-core processors. Background technique [0002] A patching operation is often required during the operation of a computer system. The main purpose of the patch function is to maintain and modify its code online during system operation without affecting the normal business operation, so as to realize the dynamic upgrade of the host system code. [0003] The following takes the MIPS (Microcumputer without interlocked pipeline stages, a typical instruction system) processor as an example to introduce the specific working principle of patching. As shown in Figure 1, in order to replace the original function with a new function, that is, to perform patching To operate, you need to modify the initial instruction of the original function to make it jump to the new function in the patch area. After the execution of the new function is ...

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): G06F11/00
Inventor 侯德强
Owner SHANGHAI 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