Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for patching code-sharing section

A technology of sharing code and applying patches, applied in program control devices, software deployment, instruments, etc., can solve problems such as affecting the normal processing of business VCPUs and long patch validity time.

Inactive Publication Date: 2010-08-04
HUAWEI DIGITAL TECH (CHENGDU) CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a method and device for patching a shared code segment to solve the problem that the patch takes effect in the existing method for patching a shared code segment The defect of affecting the normal business processing of the business VCPU over a long period of time realizes the patch operation on the shared code segment and makes the patch take effect quickly without affecting the normal business processing of the business VCPU

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 patching code-sharing section
  • Method and device for patching code-sharing section
  • Method and device for patching code-sharing section

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0069] The VCPU running on the embedded operating system is called the main VPCU, which is used to manage the public resources of the system and manage and monitor the service VCPU. The business VCPU runs a single-task operating system to complete efficient user data processing. This technical solution is applicable to an asymmetric processor AMP...

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 invention provides a method and a device for patching a code-sharing section. The method for patching the code-sharing section comprises the following steps: before a primitive function is patched, modifying a first instruction of the primitive function into an instruction of jumping to an anomaly processing in a shared memory, wherein the primitive function is a sharing function needing patching; transmitting a first interruption message to each service VCPU, wherein the first interruption message is used for instructing each service VCPU to interrupt current services and instantly refresh fast instruction buffer areas per se; modifying the first instruction and a second instruction of the primitive function into the instructions of jumping to a patching function; and transmitting a second interruption message to each service VCPU for instructing each service VCPU to interrupt the current services and instantly refresh the fast instruction buffer areas per se. The embodiment of the invention realizes patching operation on the code-sharing section and makes patches quickly come into effect under the condition of not influencing the normal service processing of the service VCPUs.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a method and device for patching a shared code segment. Background technique [0002] As a means of upgrading, the patching technology is getting more and more attention. During the operation of the computer system, some errors in the software often cause the system to appear abnormal or crash. In order to make up for such errors, patch technology can be used to upgrade the problematic software. During this process, normal business processing will not be affected. [0003] Errors in software often exist in one or more functions, and these original functions with errors will be called by other functions. Although it is difficult to find these calling functions, it is easy to find the original function that is wrong. Therefore, the key operation of patching should focus on these original functions that have errors. The process of patching is: whe...

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): G06F15/167G06F9/445
CPCG06F8/65
Inventor 陈福军
Owner HUAWEI DIGITAL TECH (CHENGDU) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products