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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap