A software ecological migration method and system based on intelligent analysis

By adopting intelligent analysis methods in the ecological migration of high-security software, deploying compatibility evaluation databases, dynamically calling hardware acceleration units and generating virtualized device simulation parameters, the problems of data leakage risks and zero downtime during the migration process are solved, and resource optimization, hardware compatibility, and stability and real-time nature of cross-architecture network communication are achieved in the migration process.

CN119903048BActive Publication Date: 2025-06-06HUAQING WEIYANG (BEIJING) TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510396630.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-06-06
Estimated Expiration
2045-04-01

AI Technical Summary

Technical Problem

The existing technology has problems with high data leakage risks and whether the migration process is zero downtime in the ecological migration of high-security software.

Method used

Using a software ecological migration method based on intelligent analysis, the compatibility evaluation database is deployed in the target architecture environment, preset instruction mapping rules and combined with semantic equivalence verification to generate migration risk data; dynamically call the hardware acceleration unit to translate defect instructions and generate virtualized device simulation parameters; deploy protocol conversion middleware based on the source architecture physical equipment to dynamically analyze and reconstruct network protocol data packets; during the cross-architecture network transmission process, the instruction conversion defect information of instruction execution delayed data is injected into the transmission control logic, and the packet transmission timing error is corrected through clock offset compensation.

Benefits of technology

Through precise instruction mapping rules, dynamic hardware acceleration and virtualized device simulation, resource optimization and hardware compatibility of the migration process are achieved, stability and real-time communication of cross-architecture networks are ensured, data leakage risk is reduced, and zero downtime migration is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903048B_ABST
    Figure CN119903048B_ABST
Patent Text Reader

Abstract

The present application provides a software ecosystem migration method and system based on intelligent analysis. Among them, a compatibility assessment database is deployed in the target architecture, instruction set mapping rules are preset, and migration risk data is generated through semantic verification; resources are dynamically allocated through a heterogeneous virtualization scheduling engine, the hardware acceleration unit is called to translate defective instructions, and virtualization device simulation parameters are generated based on migration risk data; protocol conversion middleware is deployed, network protocol data packets are dynamically parsed and reconstructed, and the parsing granularity is adjusted in combination with instruction execution delay data; in cross-architecture transmission, instruction conversion defects are injected into the control logic, timing errors are corrected through clock offset compensation, and the corrected data is sent back to update the instruction mapping rules. The technical solution provided by the present application reduces the risk of data leakage and ensures zero downtime during the migration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of high-security-level software ecosystem migration, and in particular to a software ecosystem migration method and system based on intelligent analysis. Background Art

[0002] In high-security software ecosystem migration scenarios such as government affairs and finance, it is necessary to achieve migration across heterogeneous architectures. During the migration process, it is necessary to ensure the encrypted storage and access boundary control of sensitive data to avoid data leakage due to instruction set differences; it is necessary to support business continuity to avoid service interruption or performance degradation due to architecture switching; it is necessary to dynamically adapt to network protocol format differences (such as byte order, message structure) to ensure the stability and real-time performance of cross-platform communication.

[0003] The current mainstream solution adopts a migration framework based on virtualization layer instruction translation, which dynamically translates source architecture instructions into target architecture instructions through the virtualization layer and inserts compatibility verification logic during the translation process. The protocol mapping table is pre-defined to convert the source architecture network protocol fields into a format supported by the target architecture according to fixed rules. Static analysis tools are used to identify instruction compatibility issues before migration and generate risk reports.

[0004] The above solution has the following key defects: the instruction translation of the virtualization layer introduces additional overhead, resulting in increased memory access latency, making it difficult to meet the real-time requirements of high-throughput scenarios; the static protocol mapping table cannot dynamically adapt to the byte order changes or message format expansions of the target architecture, resulting in network packet loss or parsing errors; offline risk assessment cannot correlate runtime defects (such as instruction execution delays) in real time, and there is still a risk of side channel attacks caused by dynamic behavior differences after migration. Summary of the invention

[0005] The embodiments of the present application provide a software ecosystem migration method and system based on intelligent analysis, which are used to solve the problems in the prior art of high risk of data leakage and whether the migration process can be performed with zero downtime.

[0006] In a first aspect, an embodiment of the present application provides a software ecosystem migration method based on intelligent analysis, including:

[0007] Deploy a compatibility assessment database in the target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of the source architecture and extended instruction sets of the target architecture, generate migration risk data and mark instruction conversion defects in combination with semantic equivalence verification;

[0008] Dynamically allocate computing resources by running a heterogeneous virtualization scheduling engine, and when the instruction conversion defect is detected, call the hardware acceleration unit to perform the translation task of the defective instruction, and generate virtualization device simulation parameters according to the device feature missing items in the migration risk data, and dynamically simulate the source architecture physical device through the hardware abstract interface;

[0009] Deploy protocol conversion middleware based on the source architecture physical device, dynamically parse network protocol data packets and reconstruct the message format according to the target architecture byte order, receive instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity;

[0010] During the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, and the data packet transmission timing error is corrected through clock offset compensation. The corrected timing data is returned to the compatibility evaluation database to update the instruction mapping rules.

[0011] Optionally, computing resources are dynamically allocated during the operation of the heterogeneous virtualization scheduling engine. When the instruction conversion defect is detected, a hardware acceleration unit is called to perform the translation task of the defective instruction. At the same time, virtualization device simulation parameters are generated according to the device feature missing items in the migration risk data, and the source architecture physical device is dynamically simulated through the hardware abstract interface, including:

[0012] Monitor the instruction conversion defect marks in the compatibility assessment database, and if the source architecture vector processing unit instruction cannot match the target architecture extended instruction set through the instruction mapping rule, input the binary stream of the defective instruction into the hardware acceleration unit for segmented decoding, extract the operation code and register addressing mode, and generate the atomic instruction sequence of the target architecture based on the equivalent conversion logic;

[0013] According to the missing device feature items in the migration risk data, the hardware register bit width and interrupt response mechanism of the source architecture physical device are parsed, the hardware register bit width is aligned with the target architecture physical address space, and virtualization device simulation parameters are generated in combination with the time constraint of the interrupt response mechanism, a virtual register block is allocated in the target architecture memory through a hardware abstract interface, and the address mapping relationship is written into the execution context of the heterogeneous virtualization scheduling engine;

[0014] The address mapping relationship between the atomic instruction sequence and the virtual register block is bound into an executable code segment, the executable code segment is injected into the physical thread scheduling queue of the target architecture through the heterogeneous virtualization scheduling engine, and the instruction mapping rules of the compatibility assessment database are updated during the execution process.

[0015] Optionally, after aligning the hardware register bit width with the target architecture physical address space, virtualization device simulation parameters are generated in combination with the time constraint of the interrupt response mechanism, a virtual register block is allocated in the target architecture memory through a hardware abstraction interface, and the address mapping relationship is written into the execution context of the heterogeneous virtualization scheduling engine, including:

[0016] Splitting the hardware register bit width of the source architecture physical device into the minimum addressable unit of the target architecture physical address space, determining the address offset of each unit, associating the address offset with the interrupt delay tolerance time window of the interrupt response mechanism, and generating virtualized device simulation parameters including address step size and timing tolerance threshold;

[0017] Based on the address step, a virtual register block is divided in a secure isolation area of ​​the target architecture memory through a hardware abstraction interface, the start address of the virtual register block is consistent with the alignment boundary of the target architecture physical address space, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold;

[0018] Binding the starting address of the virtual register block to the interrupt vector number of the source architecture physical device, and adjusting the priority arbitration strategy of the target architecture interrupt controller based on the timing tolerance threshold, so that the interrupt response event of the virtual register block completes the context switch within the interrupt delay tolerance time window;

[0019] The address mapping relationship of the virtual register block is encapsulated into an execution context descriptor according to the memory permission rules of the security isolation area through a hardware abstract interface, and the execution context descriptor is injected into the real-time scheduling policy queue of the heterogeneous virtualization scheduling engine.

[0020] Optionally, based on the address step, a virtual register block is divided in a secure isolation area of ​​the target architecture memory through a hardware abstraction interface, the start address of the virtual register block is consistent with the alignment boundary of the target architecture physical address space, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold, including:

[0021] Discretize the address step length according to the memory page granularity of the secure isolation area, calculate the physical address interval span of each discrete unit, perform clock domain matching with the key synchronization period of the quantum key distribution network, and generate an address allocation request with a timestamp;

[0022] Based on the address allocation request, traverse the free address pool of the security isolation area through the hardware abstract interface, screen candidate areas that meet the physical address space alignment boundary of the target architecture and whose continuous address block length is greater than the span of the physical address interval, and bind the starting address of the candidate area to the interrupt vector number hash;

[0023] Based on the timing tolerance threshold, verify whether the address continuity of the candidate area meets the interrupt delay sensitivity requirement, if the adjacent address access interval is less than the interrupt delay tolerance time window, determine it as a valid virtual register block, otherwise regenerate an address allocation request;

[0024] The starting address of the valid virtual register block is encoded into an address descriptor including an executable tag and an isolation identifier according to memory access permission rules, written into the address mapping table of the heterogeneous virtualization scheduling engine through a hardware abstraction interface, and associated with the priority arbitration policy queue of the interrupt controller.

[0025] Optionally, during the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, the data packet transmission timing error is corrected by clock offset compensation, and the corrected timing data is returned to the compatibility evaluation database to update the instruction mapping rule, including:

[0026] Extracting instruction conversion defect information from the instruction execution delay data, encoding the instruction conversion defect information into a transmission control field according to the target architecture byte order, and inserting the transmission control field into an extended header of a network protocol data packet;

[0027] Calculating the clock offset of the network protocol data packet according to the delay timestamp in the instruction conversion defect information, aligning the clock offset with the key synchronization period of the quantum key distribution network, and generating a clock offset compensation parameter;

[0028] adjusting a transmission interval of a network protocol data packet based on the clock offset compensation parameter so that the transmission interval is synchronized with a memory access cycle of a physical address space of a target architecture, and injecting the transmission control field into a priority arbitration strategy of an interrupt controller of a target architecture;

[0029] After the data packet arrives at the target architecture, the transmission control field in the extended header is extracted, the clock offset compensation parameter and the instruction conversion defect information are combined into timing correction data, and the data is transmitted back to the compatibility assessment database through the hardware abstraction interface;

[0030] The equivalent conversion logic in the instruction mapping rule is updated according to the timing correction data, and the instruction conversion defect information is associated with the semantic features of the target architecture extended instruction set.

[0031] Optionally, according to the delay timestamp in the instruction conversion defect information, calculating the clock offset of the network protocol data packet, aligning the clock offset with the key synchronization period of the quantum key distribution network, and generating the clock offset compensation parameter, including:

[0032] Extracting the delay timestamp in the instruction conversion defect information, calculating the phase difference between the delay timestamp and the memory access cycle of the physical address space of the target architecture, and generating an initial clock offset;

[0033] Discretize the initial clock offset in sections according to the key synchronization period of the quantum key distribution network, calculate the clock offset cumulative error in each discrete section, and perform phase matching on the clock offset cumulative error and the key update pulse of the quantum key distribution network to generate a phase matching result;

[0034] According to the phase matching result, the segmented discretization granularity of the initial clock offset is adjusted so that the accumulated error of the clock offset in each discrete segment is less than the key synchronization period tolerance threshold of the quantum key distribution network, and a segmented clock offset compensation parameter is generated;

[0035] Reaggregating the segmented clock offset compensation parameters according to the memory access cycle of the physical address space of the target architecture to generate a global clock offset compensation parameter, and injecting the global clock offset compensation parameter into the transmission control field of the network protocol data packet;

[0036] The global clock offset compensation parameter is compared with the key synchronization period of the quantum key distribution network in real time through a hardware abstract interface. If the comparison result exceeds the key synchronization period tolerance threshold, the initial clock offset is recalculated and the clock offset compensation parameter is iteratively generated.

[0037] Optionally, the initial clock offset is discretized in sections according to the key synchronization period of the quantum key distribution network, the clock offset cumulative error in each discrete section is calculated, and the clock offset cumulative error is phase-matched with the key update pulse of the quantum key distribution network to generate a phase matching result, including:

[0038] Dividing the initial clock offset into a plurality of discrete segments according to the key synchronization period length of the quantum key distribution network, calculating the phase difference between the initial clock offset and the key synchronization period in each discrete segment, and generating a cumulative error of the clock offset within the segment;

[0039] Matching the accumulated error of the clock offset within the segment with the key update pulse of the quantum key distribution network in a time window, and if the accumulated error of the clock offset within the segment exceeds the key synchronization period tolerance threshold, dynamically adjusting the boundary position of the discrete segment according to the timestamp of the key update pulse;

[0040] The clock offset cumulative error in the adjusted discrete segment is recalculated according to the timestamp of the key update pulse, and the phase relationship between the clock offset cumulative error and the key update pulse is compared segment by segment to generate a phase matching result.

[0041] In a second aspect, the embodiment of the present application provides a software ecosystem migration system based on intelligent analysis, including:

[0042] An instruction mapping verification module is used to deploy a compatibility assessment database in a target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of a source architecture and an extended instruction set of a target architecture, generate migration risk data in combination with semantic equivalence verification, and mark instruction conversion defects;

[0043] A virtual scheduling acceleration module is used to dynamically allocate computing resources when the heterogeneous virtualization scheduling engine is running. When the instruction conversion defect is detected, the hardware acceleration unit is called to perform the translation task of the defective instruction. At the same time, virtualization device simulation parameters are generated according to the device feature missing items in the migration risk data, and the source architecture physical device is dynamically simulated through the hardware abstract interface.

[0044] A protocol dynamic reconstruction module is used to deploy protocol conversion middleware based on the source architecture physical device, dynamically parse network protocol data packets and reconstruct the message format according to the target architecture byte order, receive instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity;

[0045] The timing closed-loop correction module is used to inject the instruction conversion defect information of the instruction execution delay data into the transmission control logic during the cross-architecture network transmission process, correct the data packet transmission timing error through clock offset compensation, and return the corrected timing data to the compatibility evaluation database to update the instruction mapping rules.

[0046] In a third aspect, an embodiment of the present application provides a computing device, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement a software ecosystem migration method based on intelligent analysis as described in the first aspect above.

[0047] In a fourth aspect, an embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is executed by a computer, it implements a software ecological migration method based on intelligent analysis as described in the first aspect.

[0048] In an embodiment of the present application, a compatibility evaluation database is deployed in a target architecture environment, and instruction mapping rules between different instruction set architectures are preset. The instruction mapping rules include equivalent conversion logic between vector processing unit instructions of the source architecture and extended instruction sets of the target architecture, and migration risk data is generated in combination with semantic equivalence verification and instruction conversion defects are marked; computing resources are dynamically allocated during the operation of a heterogeneous virtualization scheduling engine, and when the instruction conversion defect is detected, a hardware acceleration unit is called to perform a translation task of the defective instruction, and virtualization device simulation parameters are generated according to the missing device feature items in the migration risk data, and the source architecture physical device is dynamically simulated through a hardware abstract interface; a protocol conversion middleware is deployed based on the source architecture physical device, network protocol data packets are dynamically parsed and the message format is reconstructed according to the target architecture byte order, instruction execution delay data fed back by the heterogeneous virtualization scheduling engine is received, and the protocol field parsing granularity is adjusted; during the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, and the data packet transmission timing error is corrected by clock offset compensation, and the corrected timing data is transmitted back to the compatibility evaluation database to update the instruction mapping rules.

[0049] The technical solution of the present application has the following beneficial effects: by presetting instruction mapping rules and semantic equivalence verification, migration risk data is generated and instruction conversion defects are marked, providing accurate defect location and risk assessment support for subsequent migration. Dynamically call the hardware acceleration unit to translate defective instructions, and generate virtualization device simulation parameters to achieve dynamic simulation of the source architecture physical devices, and ensure resource optimization and hardware compatibility during the migration process. Dynamically parse and reconstruct network protocol data packets, and adjust the protocol field parsing granularity in combination with instruction execution delay data to ensure the stability and real-time performance of cross-architecture network communications. Inject instruction conversion defect information into the transmission control logic, correct timing errors through clock offset compensation, and send the corrected data back to update the instruction mapping rules, forming a closed-loop optimization mechanism to improve system stability after migration.

[0050] Furthermore, the instruction conversion defect marks are monitored in real time through the heterogeneous virtualization scheduling engine, and the hardware acceleration unit is called to decode the defective instructions in segments and generate the atomic instruction sequence of the target architecture; the hardware register bit width and interrupt response mechanism of the source architecture device are analyzed based on the migration risk data, the virtualization device simulation parameters are generated and the virtual register blocks are allocated; the atomic instruction sequence and the virtual register block are bound to an executable code segment, injected into the physical thread scheduling queue of the target architecture, and the instruction mapping rules are updated during the execution process.

[0051] Through the combination of dynamic scheduling and hardware acceleration units, efficient translation of defective instructions and accurate simulation of virtual devices are achieved, ensuring the correctness of instruction execution and hardware compatibility during the migration process. At the same time, through real-time updating of instruction mapping rules, a dynamic optimization closed-loop mechanism is formed, which significantly improves migration efficiency and system stability.

[0052] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0054] Figure 1 A flowchart of a software ecosystem migration method based on intelligent analysis provided by the present application is shown;

[0055] Figure 2 A schematic diagram of the structure of a software ecological migration system based on intelligent analysis provided by the present application is shown;

[0056] Figure 3 A schematic diagram of the structure of a computing device provided by the present application is shown. DETAILED DESCRIPTION

[0057] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0058] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0059] The research and development idea of ​​this application is to deploy a compatibility assessment database in the target architecture and preset instruction mapping rules, combine semantic equivalence verification to generate migration risk data to mark instruction conversion defects; use a heterogeneous virtualization scheduling engine to dynamically allocate computing resources, call the hardware acceleration unit to translate defective instructions and generate virtualization device simulation parameters, and simulate the source architecture physical device through a hardware abstract interface; deploy a protocol conversion middleware based on the simulation device, dynamically parse and reconstruct network protocol data packets, and adjust the protocol parsing granularity based on instruction execution delay data; inject instruction conversion defect information into the transmission control logic in cross-architecture transmission, correct timing errors through clock offset compensation, and send the corrected data back to update the instruction mapping rules, forming a closed-loop optimization mechanism to achieve accurate, efficient and stable migration of high-security software ecosystems.

[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0061] Figure 1 A flowchart of a software ecosystem migration method based on intelligent analysis is provided for an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0062] 101. Deploy a compatibility assessment database in the target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of the source architecture and extended instruction sets of the target architecture, generate migration risk data in combination with semantic equivalence verification, and mark instruction conversion defects;

[0063] In this step, the compatibility assessment database refers to a database that stores the mapping relationship between the source architecture and the target architecture instruction sets and the migration risk assessment results, including instruction conversion rules, semantic verification results and defect marking information.

[0064] Instruction mapping rules refer to a set of rules that define the equivalent conversion logic between source architecture instructions (such as vector processing unit instructions) and target architecture extension instruction sets, and are used to guide instruction translation and compatibility verification.

[0065] Migration risk data refers to the potential risk indicators in the migration process generated by semantic equivalence verification, including instruction conversion defect type, defect location and impact level.

[0066] In the embodiment of the present application, a compatibility assessment database is constructed in the target architecture environment. First, the mapping rules of the source architecture and the target architecture instruction set are preset, for example, the vector processing unit instructions of the source architecture (such as x86AVX instructions) are converted into equivalent instruction combinations of the target architecture (such as ARMSVE instructions); the converted instruction logic is statically analyzed through a semantic equivalence verification tool (such as a formal verification framework) to verify its functional consistency. If a semantic deviation (such as floating-point precision loss) is found, migration risk data is generated and specific defects are marked (such as the instruction conversion defect type is "register overflow risk"). Finally, the database stores mapping rules, risk data, and defect markers for subsequent migration process calls.

[0067] In an actual case, taking the migration of the government system from x86 to ARM architecture as an example, a compatibility assessment database was deployed on the ARM target server, and the conversion rules between x86AVX-512 instructions and ARM SVE instructions were preset; formal verification tools were used to verify whether the converted SVE instructions met the floating-point calculation accuracy requirements of the original AVX-512, and it was found that a certain AVX-512 instruction had an overflow risk after conversion due to insufficient register width, which was marked as "instruction conversion defect-register overflow" and the risk level was recorded as high.

[0068] 102. Dynamically allocate computing resources when the heterogeneous virtualization scheduling engine is running. When the instruction conversion defect is detected, call the hardware acceleration unit to perform the translation task of the defective instruction. At the same time, generate virtualization device simulation parameters according to the device feature missing items in the migration risk data, and dynamically simulate the source architecture physical device through the hardware abstract interface.

[0069] In this step, the heterogeneous virtualization scheduling engine refers to a virtualization component that supports cross-architecture resource scheduling, dynamically allocates CPU and memory resources, and coordinates hardware acceleration units.

[0070] A hardware acceleration unit refers to a dedicated hardware module (such as a TEE secure enclave) that is used to accelerate instruction translation or encryption operations.

[0071] Virtualized device simulation parameters refer to the simulation configuration parameters that describe the source architecture physical device (such as network card registers) in the target architecture, including register bit width, interrupt response time, etc.

[0072] In the embodiment of the present application, the heterogeneous virtualization scheduling engine monitors the defect marks of the compatibility assessment database in real time. When it is detected that the source architecture vector instruction cannot match the target instruction set (such as the AVX-512 instruction has no corresponding SVE instruction), the binary stream of the defective instruction is extracted, input into the hardware acceleration unit for segmented decoding, and the opcode and register addressing mode are parsed (such as extracting the opcode 0x62 and YMM register index of the AVX-512 instruction); the target architecture atomic instruction sequence is generated based on the instruction mapping rule (such as disassembling the AVX-512 instruction into a combination of multiple SVE instructions). At the same time, according to the missing equipment feature items in the migration risk data (such as the 128-bit register of the source architecture network card), the hardware register bit width and interrupt response mechanism are parsed, the register bit width is aligned with the target architecture physical address space (such as splitting the 128-bit register into two 64-bit blocks according to the ARM64-bit address space), and the virtualization device simulation parameters are generated in combination with the interrupt response time window (such as the interrupt delay tolerance time is 10μs), and the virtual register block is allocated in the target architecture memory through the hardware abstract interface, and the address mapping relationship is written into the scheduling engine context.

[0073] Continuing with the above case, when migrating the x86 network card driver of the government system, the scheduling engine detected an AVX-512 instruction conversion defect, called the TEE secure enclave to decode the defective instruction, and generated an ARMSVE instruction sequence; according to the missing 128-bit register of the x86 network card recorded in the migration risk data, it was split into two 64-bit virtual register blocks, allocated to the 0x8000-0x8010 area of ​​ARM memory, and the interrupt response time window was set to 10μs.

[0074] 103. Deploy a protocol conversion middleware based on the source architecture physical device, dynamically parse the network protocol data packet and reconstruct the message format according to the target architecture byte order, receive the instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity;

[0075] In this step, protocol conversion middleware refers to a software component that dynamically adapts to differences in network protocols and supports cross-architecture byte order conversion and message reconstruction.

[0076] The protocol field parsing granularity refers to the smallest unit of network protocol parsing (such as parsing by byte or word length), which affects the protocol processing efficiency and compatibility.

[0077] In an embodiment of the present application, a protocol conversion middleware is deployed on a simulated source architecture physical device, network protocol data packets (such as TCP / IP messages) are captured in real time, the protocol fields of the source architecture byte order (such as x86 little-endian mode) are dynamically parsed, and the message format is reconstructed according to the target architecture byte order (such as ARM big-endian mode) (such as flipping the byte order of the IP header); instruction execution delay data fed back by the heterogeneous virtualization scheduling engine is received (such as the execution delay of a certain instruction is 50ns), and the protocol field parsing granularity is adjusted according to the delay threshold (such as adjusting the parsing granularity from 32 bits to 16 bits to reduce processing delays) to ensure that the protocol conversion matches the instruction execution efficiency.

[0078] Continuing with the above case, during the migration of the government system, the protocol conversion middleware converts the TCP message header fields in the x86 little-endian format (such as the source port number 0x1A2B) into the ARM big-endian format 0x2B1A; when it is detected that the SVE instruction execution delay exceeds 50ns, the IP header parsing granularity is adjusted from 32 bits to 16 bits, reducing the amount of data processed at a single time to reduce latency.

[0079] 104. During the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, and the data packet transmission timing error is corrected through clock offset compensation. The corrected timing data is returned to the compatibility evaluation database to update the instruction mapping rules.

[0080] In this step, clock offset compensation refers to a mechanism that dynamically adjusts the timing of packet transmission according to instruction execution delay to avoid timing errors in cross-architecture transmission.

[0081] The timing correction data refers to a data set including clock offset compensation parameters and corrected timing information, and is used to update instruction mapping rules.

[0082] In an embodiment of the present application, during cross-architecture network transmission, defect information in instruction execution delay data is extracted (such as a certain instruction delay causing message disorder), encoded as a transmission control field (such as adding a timing mark 0xFEED), and inserted into a protocol data packet extension header; the clock offset is calculated according to the delay timestamp (such as a delay of 50ns corresponds to a clock offset + 2 clock cycles), phase-aligned with the key synchronization cycle of the quantum key distribution network (such as a 1GHz update frequency), and a clock offset compensation parameter is generated (such as compensating for 2 cycles); the data packet transmission interval is adjusted (such as from 100ns to 98ns) to synchronize the transmission timing with the target architecture memory access cycle, and the control field is injected into the arbitration strategy of the interrupt controller (such as increasing the priority of timing-critical interrupts); the corrected timing data is transmitted back to the compatibility evaluation database, and the instruction mapping rules are updated (such as optimizing the delay tolerance value of AVX-512 to SVE instructions).

[0083] Continuing with the above case, when migrating the government system, it was detected that a certain AVX-512 instruction conversion caused the TCP message to be out of order. The timing marker 0xFEED was inserted into the message extension header, the clock offset +2 cycles were calculated, and the transmission interval was adjusted to 98ns. The corrected timing data was sent back to the database, and the delay tolerance value of the corresponding instruction mapping rule was updated to 55ns.

[0084] In summary, steps 101 to 104 preset instruction mapping rules and dynamically optimize them through the compatibility assessment database, combine the heterogeneous virtualization scheduling engine and the hardware acceleration unit to achieve efficient translation of defective instructions, use the protocol conversion middleware to dynamically adapt the network protocol, and correct the transmission timing through the clock offset compensation mechanism in a closed loop, ultimately achieving data desensitization, zero downtime, and cross-architecture protocol compatibility in the migration of high-security software ecosystems, significantly reducing the risk of data leakage and performance loss during the migration process.

[0085] In order to improve the accuracy of instruction conversion and hardware compatibility in cross-architecture software ecosystem migration, computing resources are dynamically allocated through the heterogeneous virtualization scheduling engine, the hardware acceleration unit is called to translate defective instructions and generate virtualization device simulation parameters, and the source architecture physical devices are dynamically simulated in combination with the hardware abstraction interface to achieve resource optimization and hardware adaptation during the migration process.

[0086] In some embodiments, in step 102, computing resources are dynamically allocated when the heterogeneous virtualization scheduling engine is running. When the instruction conversion defect is detected, the hardware acceleration unit is called to perform the translation task of the defective instruction, and virtualized device simulation parameters are generated according to the device feature missing items in the migration risk data. The source architecture physical device is dynamically simulated through the hardware abstract interface, including:

[0087] 201. Monitor the instruction conversion defect marks in the compatibility assessment database. If the source architecture vector processing unit instruction cannot match the target architecture extended instruction set through the instruction mapping rule, input the binary stream of the defective instruction into the hardware acceleration unit for segmented decoding, extract the operation code and register addressing mode, and generate the atomic instruction sequence of the target architecture based on the equivalent conversion logic;

[0088] In step 201, the heterogeneous virtualization scheduling engine refers to a virtualization component that supports cross-architecture resource scheduling, dynamically allocates CPU and memory resources, and coordinates hardware acceleration units.

[0089] A hardware acceleration unit refers to a dedicated hardware module (such as a TEE secure enclave) that is used to accelerate instruction translation or encryption operations.

[0090] An atomic instruction sequence refers to the smallest instruction unit combination supported by the target architecture, which is used to replace complex instructions of the source architecture (such as vector processing unit instructions).

[0091] In an embodiment of the present application, the heterogeneous virtualization scheduling engine monitors the instruction conversion defect marks in the compatibility assessment database in real time. When it is detected that the source architecture vector processing unit instruction (such as x86AVX instruction) cannot match the target architecture extended instruction set (such as ARMSVE instruction) through the instruction mapping rule, the binary stream of the defective instruction is extracted and input into the hardware acceleration unit for segmented decoding, and the opcode (such as the opcode 0x62 of the AVX instruction) and the register addressing mode (such as the YMM register index) are parsed; based on the equivalent conversion logic, the atomic instruction sequence of the target architecture is generated (such as disassembling an AVX instruction into a combination of multiple SVE instructions) to ensure functional consistency.

[0092] 202. According to the missing device feature items in the migration risk data, the hardware register bit width and interrupt response mechanism of the source architecture physical device are parsed, the hardware register bit width is aligned with the target architecture physical address space, and virtualized device simulation parameters are generated in combination with the time constraint of the interrupt response mechanism. A virtual register block is allocated in the target architecture memory through a hardware abstract interface, and the address mapping relationship is written into the execution context of the heterogeneous virtualization scheduling engine;

[0093] In step 202, the virtualized device simulation parameters refer to the simulation configuration parameters describing the source architecture physical device (such as a network card register) in the target architecture, including register bit width, interrupt response time, etc.

[0094] Virtual register blocks are memory regions allocated in the target architecture's memory that emulate the source architecture's registers and are used to store device state information.

[0095] In an embodiment of the present application, based on the missing device feature items in the migration risk data (such as the 128-bit register of the source architecture network card), the hardware register bit width and interrupt response mechanism (such as the interrupt delay tolerance time of 10μs) are parsed; the register bit width is aligned with the physical address space of the target architecture (such as splitting the 128-bit register into two 64-bit blocks), and the virtualization device simulation parameters (such as the interrupt delay tolerance time of 10μs) are generated in combination with the interrupt response time window; a virtual register block (such as the address range of 0x8000-0x8010) is allocated in the target architecture memory through the hardware abstraction interface, and the address mapping relationship is written into the execution context of the heterogeneous virtualization scheduling engine to ensure the accuracy and real-time performance of the device simulation.

[0096] 203. Bind the address mapping relationship between the atomic instruction sequence and the virtual register block into an executable code segment, inject the executable code segment into the physical thread scheduling queue of the target architecture through the heterogeneous virtualization scheduling engine, and update the instruction mapping rules of the compatibility assessment database during the execution process.

[0097] In step 203, the executable code segment refers to a code unit bound by an atomic instruction sequence and a virtual register block address mapping relationship, and can be directly executed on the target architecture.

[0098] The physical thread scheduling queue refers to the queue used to manage thread execution in the target architecture operating system, which determines the priority and order of instruction execution.

[0099] In an embodiment of the present application, an atomic instruction sequence (such as a combination of multiple SVE instructions) and an address mapping relationship of a virtual register block (such as 0x8000-0x8010) are bound to an executable code segment, and the executable code segment is injected into the physical thread scheduling queue of the target architecture (such as the thread queue of an ARM operating system) through a heterogeneous virtualization scheduling engine; during the execution process, the instruction execution status is monitored in real time, and if a new conversion defect is found (such as an excessively high execution delay of a certain SVE instruction), the instruction mapping rules in the compatibility evaluation database are updated (such as optimizing the delay tolerance value of AVX to SVE instructions), thereby forming a dynamic optimization closed loop.

[0100] Here is a specific example:

[0101] In the scenario where the government system is migrated from x86 to ARM architecture, the heterogeneous virtualization scheduling engine detects that the x86 AVX-512 instruction cannot match the ARMSVE instruction, and calls the TEE secure enclave to decode the defective instruction in segments to generate multiple SVE instruction combinations; according to the missing 128-bit register items of the x86 network card recorded in the migration risk data, it is split into two 64-bit virtual register blocks, allocated to the 0x8000-0x8010 area of ​​ARM memory, and the interrupt response time window is set to 10μs; the generated SVE instruction sequence is bound to the virtual register block as an executable code segment and injected into the thread scheduling queue of the ARM operating system; during the execution process, it is found that the delay of a certain SVE instruction is too high, and the instruction mapping rules in the compatibility assessment database are updated, and the conversion logic is optimized to reduce the delay.

[0102] In summary, steps 201 to 203 dynamically allocate resources through the heterogeneous virtualization scheduling engine and call the hardware acceleration unit to translate defective instructions, combine the virtualization device simulation parameters and the hardware abstract interface to achieve accurate simulation of the source architecture device, and finally generate an executable code segment and inject it into the target architecture thread scheduling queue, ensuring the accuracy of instruction conversion, hardware compatibility and execution efficiency during the migration process, and significantly reducing the migration risk and performance loss.

[0103] In order to solve the problems of accuracy of hardware device simulation and real-time interrupt response in cross-architecture migration, the hardware register bit width of the source architecture is aligned with the physical address space of the target architecture, and the virtualized device simulation parameters are generated in combination with the interrupt delay tolerance time window. The virtual register blocks are dynamically allocated based on the secure isolated memory area to achieve hardware compatibility and anti-side channel attack capabilities of device simulation.

[0104] In some embodiments, after aligning the hardware register bit width with the target architecture physical address space, step 202 generates virtualized device simulation parameters in combination with the time constraint of the interrupt response mechanism, allocates a virtual register block in the target architecture memory through a hardware abstraction interface, and writes the address mapping relationship into the execution context of the heterogeneous virtualization scheduling engine, including:

[0105] 301. Split the hardware register bit width of the source architecture physical device into the minimum addressable unit of the target architecture physical address space, determine the address offset of each unit, associate the address offset with the interrupt delay tolerance time window of the interrupt response mechanism, and generate virtualization device simulation parameters including address step and timing tolerance threshold;

[0106] In step 301, the address step size refers to the continuous address span of the smallest addressable unit (such as a 64-bit address unit of an ARM architecture) in the physical address space of the target architecture, which is used to divide the memory allocation interval of the virtual register block.

[0107] The timing tolerance threshold refers to the upper limit of the time window that the virtual register block access cycle must meet (such as 10μs), which is derived from the interrupt delay tolerance time window to ensure the real-time nature of the interrupt response.

[0108] In an embodiment of the present application, the hardware register bit width of the source architecture physical device (such as the 128-bit register of the x86 network card) is split into the smallest addressable unit of the target architecture physical address space (such as the 64-bit address unit of ARM), and the address offset of each split unit is calculated (such as 0x8000, 0x8008); the address offset is associated with the interrupt delay tolerance time window (such as 10μs) of the interrupt response mechanism, and the address step (such as 8-byte step) and the timing tolerance threshold (such as single access cycle ≤5μs) are generated, which constitute the core constraints of the virtualization device simulation parameters.

[0109] 302. Based on the address step, divide the virtual register block in the secure isolation area of ​​the target architecture memory through the hardware abstract interface, the start address of the virtual register block is consistent with the alignment boundary of the physical address space of the target architecture, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold;

[0110] In step 302, the secure isolation area refers to an area in the target architecture memory that is protected by TEE hardware isolation technology (such as ARM TrustZone's secure world memory), and only authorized components are allowed to access it.

[0111] The access cycle synchronization condition means that the continuous address access interval of the virtual register block must meet the timing tolerance threshold (such as the adjacent address access interval ≤ 5μs) to ensure the real-time matching with the interrupt response.

[0112] In an embodiment of the present application, based on the address step (such as 8 bytes), the free address pool of the security isolation area is traversed through the hardware abstract interface, and the candidate area whose starting address is consistent with the physical address space alignment boundary of the target architecture (such as 0x8000) and the continuous address block length ≥ the address step (such as 16 bytes) is screened; it is verified whether the address continuity of the candidate area meets the access cycle synchronization condition corresponding to the timing tolerance threshold (such as the adjacent address access interval ≤5μs), if it meets the condition, it is allocated as a virtual register block (such as 0x8000-0x8010), otherwise the address allocation is re-triggered.

[0113] 303. Bind the starting address of the virtual register block to the interrupt vector number of the source architecture physical device, and adjust the priority arbitration strategy of the target architecture interrupt controller based on the timing tolerance threshold, so that the interrupt response event of the virtual register block completes the context switch within the interrupt delay tolerance time window;

[0114] In step 303, the interrupt vector number binding refers to associating the starting address of the virtual register block with the interrupt identifier of the source architecture device (such as the x86 network card interrupt number 0x20) to ensure that the target memory area can be accurately located when the interrupt is triggered.

[0115] The priority arbitration policy refers to the interrupt processing priority rules defined in the target architecture interrupt controller (such as ARMGIC) to ensure real-time response to critical interrupts.

[0116] In an embodiment of the present application, the starting address of the virtual register block (such as 0x8000) is bound to the interrupt vector number (such as 0x20) of the source architecture physical device through a hash algorithm; the priority arbitration strategy of the target architecture interrupt controller is adjusted according to the timing tolerance threshold (such as 5μs) (such as increasing the interrupt priority from 3 to 1), and the interrupt response event of the virtual register block (such as data packet reception interrupt) is forced to complete the context switch (such as switching from user mode to secure enclave execution) within the interrupt delay tolerance time window (such as 10μs).

[0117] 304. Encapsulate the address mapping relationship of the virtual register block into an execution context descriptor according to the memory permission rule of the security isolation area through a hardware abstract interface, and inject the execution context descriptor into the real-time scheduling policy queue of the heterogeneous virtualization scheduling engine.

[0118] In step 304, the execution context descriptor refers to a data structure that describes the virtual register block address range (such as 0x8000-0x8010) and access permissions (such as only TEE can read and write), which is used for real-time policy decisions of the scheduling engine.

[0119] In an embodiment of the present application, the address mapping relationship of the virtual register block (such as 0x8000-0x8010) is bit-masked encoded according to the memory permission rules of the security isolation area (such as only allowing TEE access) through the hardware abstract interface, and an execution context descriptor containing an executable tag (such as 0x1) and an isolation identifier (such as a TEE tag) is generated; the descriptor is injected into the real-time scheduling policy queue of the heterogeneous virtualization scheduling engine (such as the priority queue of the ARM scheduler) to ensure that subsequent instruction execution strictly follows the security isolation constraints.

[0120] Here is a specific example:

[0121] When the government system migrated from x86 to ARM architecture, the 128-bit register of the source network card was split into two 64-bit units, with address offsets of 0x8000 and 0x8008, and the timing tolerance threshold was set to 5μs; 0x8000-0x8010 was allocated as a virtual register block in the ARMTrustZone secure memory through the hardware abstraction interface, the x86 network card interrupt number 0x20 was bound, and the interrupt priority was increased to 1; the execution context descriptor marked that this area was only accessible to the TEE and injected into the scheduling queue. When the network card receives data to trigger an interrupt, the TEE completes the context switch and processes the virtual register block data within 5μs to ensure zero packet loss and real-time response.

[0122] In summary, steps 301 to 304 generate virtualized device parameters through hardware register bit width alignment and interrupt time window constraints, dynamically allocate virtual register blocks and bind interrupt vectors in secure isolated memory, and combine permission encapsulation and scheduling policy injection to achieve accurate address mapping, real-time interrupt response and anti-side channel attack capabilities for cross-architecture device simulation, significantly improving hardware compatibility and data integrity in high-security migration scenarios.

[0123] In order to improve the accuracy and security of virtual register block allocation in cross-architecture migration, the address step size is matched with the key synchronization period of the quantum key distribution network to generate a timestamp-tagged address allocation request, and the interrupt delay tolerance time window is combined to verify the address continuity. The virtual register blocks are dynamically allocated in the secure isolated memory to ensure the real-time performance and anti-side channel attack capabilities of the device simulation.

[0124] In some embodiments, step 302 divides a virtual register block in a secure isolation area of ​​the target architecture memory through a hardware abstraction interface based on the address step size, wherein the start address of the virtual register block is consistent with the alignment boundary of the target architecture physical address space, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold, including:

[0125] 401. Discretize the address step length according to the memory page granularity of the secure isolation area, calculate the physical address interval span of each discrete unit, perform clock domain matching with the key synchronization period of the quantum key distribution network, and generate an address allocation request with a timestamp;

[0126] In step 401, the memory page granularity refers to the smallest unit of memory management of the target architecture (such as a 4KB memory page of the ARM architecture), which is used to discretize the address step.

[0127] Clock domain matching refers to aligning the timestamp of the address allocation request with the key synchronization period (such as 1GHz) of the quantum key distribution network to ensure the timing consistency of address allocation and key update.

[0128] In an embodiment of the present application, the address step size (e.g., 8 bytes) is discretized according to the memory page granularity (e.g., 4KB) of the secure isolation area, and the physical address interval span (e.g., 0x8000-0x8008) of each discrete unit is calculated; the physical address interval span is matched with the key synchronization period (e.g., 1GHz) of the quantum key distribution network in the clock domain, and an address allocation request with a timestamp (e.g., timestamp 0x1234) is generated to ensure that the timing of address allocation and key update is strictly synchronized.

[0129] 402. Based on the address allocation request, traverse the free address pool of the security isolation area through the hardware abstract interface, screen candidate areas that meet the physical address space alignment boundary of the target architecture and whose continuous address block length is greater than the span of the physical address interval, and bind the starting address of the candidate area to the interrupt vector number hash;

[0130] In step 402, the free address pool refers to a set of unoccupied memory addresses in the security isolation area, which is used for dynamically allocating virtual register blocks.

[0131] Hash binding refers to associating the starting address of the candidate area with the interrupt vector number (such as 0x20) through a hash algorithm to ensure that the target memory area can be quickly located when the interrupt is triggered.

[0132] In an embodiment of the present application, based on the timestamp mark (such as 0x1234) in the address allocation request, the free address pool of the security isolation area is traversed through the hardware abstract interface, and the candidate area whose starting address is consistent with the physical address space alignment boundary of the target architecture (such as 0x8000) and the continuous address block length is ≥ the physical address interval span (such as 16 bytes) is screened; the starting address of the candidate area (such as 0x8000) and the interrupt vector number (such as 0x20) are bound through a hash algorithm to ensure that the virtual register block can be quickly located during the interrupt response.

[0133] 403. Based on the timing tolerance threshold, verify whether the address continuity of the candidate area meets the interrupt delay sensitivity requirement. If the adjacent address access interval is less than the interrupt delay tolerance time window, determine it as a valid virtual register block, otherwise regenerate an address allocation request;

[0134] In step 403, the interrupt delay sensitivity means that the address continuity of the virtual register block must meet the access interval requirement (eg, adjacent address access interval ≤ 5 μs) within the interrupt delay tolerance time window (eg, 10 μs).

[0135] In an embodiment of the present application, the address continuity of the candidate area is verified based on the timing tolerance threshold (such as 5μs) to see whether it meets the interrupt delay sensitivity requirement (such as the adjacent address access interval ≤5μs); if so, it is determined to be a valid virtual register block (such as 0x8000-0x8010), otherwise the address allocation request is regenerated and the candidate area is iteratively screened.

[0136] 404. Encode the starting address of the valid virtual register block into an address descriptor including an executable tag and an isolation identifier according to the memory access permission rule, write it into the address mapping table of the heterogeneous virtualization scheduling engine through the hardware abstraction interface, and associate it with the priority arbitration policy queue of the interrupt controller.

[0137] In step 404, the address descriptor refers to a data structure that describes the virtual register block address range (such as 0x8000-0x8010) and access permissions (such as only TEE can read and write), which is used for policy decisions of the scheduling engine.

[0138] In an embodiment of the present application, the starting address of the valid virtual register block (such as 0x8000) is bit-masked according to the memory access permission rules (such as only TEE can read and write), and an address descriptor containing an executable tag (such as 0x1) and an isolation identifier (such as a TEE tag) is generated; the address descriptor is written into the address mapping table of the heterogeneous virtualization scheduling engine through the hardware abstraction interface, and is associated with the priority arbitration policy queue of the interrupt controller (such as raising the interrupt priority to 1), ensuring that the access to the virtual register block and the interrupt response strictly follow the security isolation constraints.

[0139] Here is a specific example:

[0140] When the government system migrates from x86 to ARM architecture, the address step of 8 bytes is discretized according to the 4KB memory page to generate a physical address interval span of 0x8000-0x8008, which is matched with the 1GHz key synchronization period of the quantum key distribution network to generate an address allocation request with a timestamp of 0x1234; the candidate area 0x8000-0x8010 is screened out through the hardware abstraction interface and hashed and bound to the interrupt vector number 0x20; after verifying that the adjacent address access interval is ≤5μs, it is determined to be a valid virtual register block; the starting address 0x8000 is encoded as an address descriptor and injected into the scheduling engine address mapping table, and associated with the interrupt controller priority queue. When the network card receives data to trigger an interrupt, the TEE completes the context switch and processes the virtual register block data within 5μs to ensure zero packet loss and real-time response.

[0141] In summary, steps 401 to 404 generate a timestamp-tagged address allocation request by discretizing the address step size and matching the quantum key synchronization period, verify the address continuity in combination with the interrupt delay tolerance time window, dynamically allocate virtual register blocks in the secure isolated memory and bind interrupt vectors, realize accurate address mapping, real-time interrupt response and anti-side channel attack capabilities for cross-architecture device simulation, and significantly improve hardware compatibility and data integrity in high-security migration scenarios.

[0142] In order to improve the accuracy and security of data packet timing in cross-architecture network transmission, the instruction conversion defect information is injected into the transmission control logic, and the clock offset compensation parameters are generated in combination with the key synchronization period of the quantum key distribution network. The packet transmission interval is dynamically adjusted, and the corrected timing data is sent back to update the instruction mapping rules, thereby achieving precise timing control and closed-loop optimization in high-security level migration scenarios.

[0143] In some embodiments, step 104 injects instruction conversion defect information of the instruction execution delay data into the transmission control logic during the cross-architecture network transmission process, corrects the data packet transmission timing error by clock offset compensation, and transmits the corrected timing data back to the compatibility evaluation database to update the instruction mapping rule, including:

[0144] 501. Extract instruction conversion defect information from the instruction execution delay data, encode the instruction conversion defect information into a transmission control field according to the target architecture byte order, and insert the transmission control field into an extended header of a network protocol data packet;

[0145] In step 501, the transmission control field refers to the encoded data containing the instruction conversion defect information (such as delay timestamp, defect type), which is inserted into the network protocol data packet extension header for timing control during the transmission process.

[0146] In an embodiment of the present application, instruction conversion defect information (such as a certain AVX instruction conversion defect causing a 50ns delay) is extracted from the instruction execution delay data, the defect information is encoded into a transmission control field (such as 0xFEED) according to the target architecture byte order (such as ARM big-endian mode), and inserted into an extended header of a network protocol data packet (such as a TCP message) to ensure that the defect information can be parsed and processed in real time during transmission.

[0147] 502. Calculate the clock offset of the network protocol data packet according to the delay timestamp in the instruction conversion defect information, align the clock offset with the key synchronization period of the quantum key distribution network, and generate a clock offset compensation parameter;

[0148] In step 502, the clock offset refers to the timing deviation (such as 50ns delay) caused by instruction conversion defects during data packet transmission, which needs to be corrected by compensation parameters.

[0149] The key synchronization period refers to the key update frequency of the quantum key distribution network (such as 1GHz), which is used to align the clock offset compensation parameters to ensure the synchronization of timing correction and key update.

[0150] In an embodiment of the present application, the clock offset of the network protocol data packet is calculated (e.g., +2 clock cycles) based on the delay timestamp (e.g., 50ns) in the instruction conversion defect information; the clock offset is phase-aligned with the key synchronization period (e.g., 1GHz) of the quantum key distribution network, and a clock offset compensation parameter is generated (e.g., compensating for 2 cycles) to ensure strict synchronization of timing correction and key update.

[0151] 503. Adjust the transmission interval of the network protocol data packet based on the clock offset compensation parameter to synchronize the transmission interval with the memory access cycle of the physical address space of the target architecture, and inject the transmission control field into the priority arbitration strategy of the interrupt controller of the target architecture;

[0152] In step 503, the transmission interval adjustment refers to dynamically adjusting the data packet transmission interval (eg, from 100ns to 98ns) according to the clock offset compensation parameter to correct the timing error.

[0153] The priority arbitration policy refers to the interrupt processing priority rules defined in the target architecture interrupt controller to ensure real-time response to critical interrupts.

[0154] In an embodiment of the present application, the transmission interval of the network protocol data packet is adjusted (e.g., from 100ns to 98ns) based on the clock offset compensation parameter (e.g., compensating 2 cycles) to synchronize the transmission interval with the memory access cycle (e.g., 100ns) of the physical address space of the target architecture; at the same time, the transmission control field (e.g., 0xFEED) is injected into the priority arbitration strategy of the interrupt controller of the target architecture (e.g., raising the interrupt priority to 1) to ensure real-time response of timing-critical interrupts.

[0155] 504. After the data packet arrives at the target architecture, extract the transmission control field in the extended header, merge the clock offset compensation parameter and the instruction conversion defect information into timing correction data, and transmit it back to the compatibility assessment database through the hardware abstraction interface;

[0156] In step 504, the timing correction data refers to a data set including clock offset compensation parameters (such as compensation of 2 cycles) and instruction conversion defect information (such as 50ns delay), which is used to update the instruction mapping rules.

[0157] In an embodiment of the present application, after the data packet arrives at the target architecture, the transmission control field (such as 0xFEED) in the extended header is extracted, and the clock offset compensation parameters (such as compensation for 2 cycles) and the instruction conversion defect information (such as 50ns delay) are merged into timing correction data; the timing correction data is transmitted back to the compatibility assessment database through the hardware abstraction interface to provide a basis for subsequent instruction mapping rule updates.

[0158] 505. Update the equivalent conversion logic in the instruction mapping rule according to the timing correction data, and associate the instruction conversion defect information with the semantic features of the target architecture extended instruction set.

[0159] In step 505, the equivalent conversion logic refers to the conversion rules between the source architecture instructions and the target architecture instructions (such as AVX to SVE instruction combination), which needs to be dynamically optimized according to the timing correction data.

[0160] In an embodiment of the present application, the equivalent conversion logic in the instruction mapping rule is updated according to the clock offset compensation parameters in the timing correction data (such as compensating for 2 cycles) (such as optimizing the delay tolerance value of AVX to SVE instructions to 55ns), and the instruction conversion defect information (such as 50ns delay) is associated with the semantic features of the target architecture extended instruction set (such as the floating-point calculation characteristics of the SVE instruction) to form a closed-loop mechanism for dynamic optimization.

[0161] Here is a specific example:

[0162] When the government system was migrated from x86 to ARM architecture, it was detected that a certain AVX instruction conversion caused a TCP message transmission delay of 50ns. The defect information was encoded as the transmission control field 0xFEED and inserted into the message extension header; the clock offset + 2 cycles were calculated, the compensation parameters were generated and aligned with the 1GHz key synchronization cycle; the transmission interval was adjusted from 100ns to 98ns, and the control field was injected into the ARM interrupt controller priority policy; after the data packet arrived, the control field was extracted, the compensation parameters and the defect information were merged into timing correction data and returned to the database; the delay tolerance value of the AVX to SVE instruction was updated to 55ns according to the correction data to optimize the subsequent migration efficiency.

[0163] In summary, steps 501 to 505 inject instruction conversion defect information into the transmission control logic and generate clock offset compensation parameters to dynamically adjust the data packet transmission interval to ensure the timing accuracy of cross-architecture network transmission; combined with the key synchronization cycle and interrupt controller priority strategy of the quantum key distribution network, timing closed-loop optimization and side-channel attack resistance in high-security migration scenarios are achieved, significantly improving the stability of the migration process and data integrity.

[0164] In order to improve the accuracy and real-time performance of clock offset compensation in cross-architecture network transmission, the delay timestamp in the instruction conversion defect information is aligned with the key synchronization period of the quantum key distribution network, the initial clock offset is discretized in segments, and the global clock offset compensation parameters are generated. The parameters are then compared and corrected in real time to ensure strict synchronization between the data packet transmission timing and the key update.

[0165] In some embodiments, step 502 converts the delay timestamp in the defect information of the instruction, calculates the clock offset of the network protocol data packet, aligns the clock offset with the key synchronization period of the quantum key distribution network, and generates a clock offset compensation parameter, including:

[0166] 601. Extract the delay timestamp in the instruction conversion defect information, calculate the phase difference between the delay timestamp and the memory access cycle of the physical address space of the target architecture, and generate an initial clock offset;

[0167] In step 601, the delay timestamp refers to a delay time mark (eg, 50 ns) caused by an instruction conversion defect, and is used to calculate a clock offset.

[0168] The memory access cycle refers to the time interval between consecutive memory accesses in the physical address space of the target architecture (e.g., 100ns), which serves as the basis for clock offset calculation.

[0169] In an embodiment of the present application, the delay timestamp (e.g., 50ns) in the instruction conversion defect information is extracted, and the phase difference between it and the memory access cycle (e.g., 100ns) of the physical address space of the target architecture is calculated (e.g., a 50ns delay corresponds to a phase difference of 180 degrees), and an initial clock offset (e.g., +2 clock cycles) is generated.

[0170] 602. Discretize the initial clock offset in segments according to the key synchronization period of the quantum key distribution network, calculate the clock offset cumulative error in each discrete segment, and perform phase matching on the clock offset cumulative error and the key update pulse of the quantum key distribution network to generate a phase matching result;

[0171] In step 602, the segmented discretization process refers to dividing the initial clock offset into multiple discrete segments according to the key synchronization period (such as 1 GHz) of the quantum key distribution network, and calculating the cumulative error in each segment.

[0172] The phase matching result refers to the phase alignment result of the clock offset cumulative error and the key update pulse, which is used to adjust the discretization granularity.

[0173] In an embodiment of the present application, the initial clock offset (such as +2 cycles) is discretized in segments (such as 10 ns per segment) according to the key synchronization period (such as 1 GHz) of the quantum key distribution network, and the cumulative error of the clock offset in each segment is calculated (such as the error of 0.5 ns in the first segment); the cumulative error is phase-matched with the key update pulse (such as a 1 GHz pulse) (such as an error of 0.5 ns corresponds to a phase difference of 18 degrees), and a phase matching result is generated.

[0174] 603. According to the phase matching result, adjust the segmented discretization granularity of the initial clock offset so that the clock offset cumulative error in each discrete segment is less than the key synchronization period tolerance threshold of the quantum key distribution network, and generate a segmented clock offset compensation parameter;

[0175] In step 603, the key synchronization period tolerance threshold refers to the maximum clock offset error (such as 0.1ns) allowed by the quantum key distribution network, which is used to constrain the segmented discretization granularity.

[0176] In an embodiment of the present application, the segmented discretization granularity of the initial clock offset is adjusted (e.g., from 10ns to 5ns) according to the phase matching result (e.g., an error of 0.5ns corresponds to a phase difference of 18 degrees), so that the cumulative error of the clock offset in each segment (e.g., 0.2ns) is less than the key synchronization period tolerance threshold (e.g., 0.1ns), and the segmented clock offset compensation parameter is generated (e.g., 0.2ns compensation per segment).

[0177] 604. Reaggregate the segmented clock offset compensation parameters according to the memory access cycle of the physical address space of the target architecture to generate a global clock offset compensation parameter, and inject the global clock offset compensation parameter into a transmission control field of a network protocol data packet;

[0178] In step 604, the global clock offset compensation parameter refers to a final compensation value (eg, a total compensation of 2ns) generated by aggregating the segmented clock offset compensation parameters, and is used to adjust the data packet transmission timing.

[0179] In an embodiment of the present application, the segmented clock offset compensation parameters (such as 0.2ns compensation per segment) are re-aggregated according to the memory access cycle (such as 100ns) of the physical address space of the target architecture to generate a global clock offset compensation parameter (such as a total compensation of 2ns); the global compensation parameter is injected into the transmission control field of the network protocol data packet (such as the extended header tag 0xFEED) to ensure that the data packet transmission timing is synchronized with the key update.

[0180] 605. Compare the global clock offset compensation parameter with the key synchronization period of the quantum key distribution network in real time through a hardware abstract interface. If the comparison result exceeds the key synchronization period tolerance threshold, recalculate the initial clock offset and iteratively generate the clock offset compensation parameter.

[0181] In step 605, real-time comparison refers to real-time verification of the global clock offset compensation parameter and the key synchronization period of the quantum key distribution network to ensure compensation accuracy.

[0182] In an embodiment of the present application, a global clock offset compensation parameter (such as a total compensation of 2ns) is compared in real time with a key synchronization period (such as 1GHz) of a quantum key distribution network through a hardware abstraction interface (such as checking whether the error is ≤0.1ns); if the comparison result exceeds the key synchronization period tolerance threshold (such as an error of 0.2ns), the initial clock offset is recalculated and the compensation parameter is iteratively generated until the accuracy requirement is met.

[0183] Here is a specific example:

[0184] When the government system was migrated from x86 to ARM architecture, it was detected that a certain AVX instruction conversion caused a 50ns delay, and the initial clock offset + 2 cycles were calculated; the key synchronization period was discretized into segments according to 1GHz, and segment compensation parameters were generated with each segment being 0.2ns; a global compensation parameter of 2ns was generated by aggregation and injected into the TCP message extension header; the compensation parameters were compared with the key synchronization period in real time through the hardware abstraction interface, and it was found that the error of 0.2ns exceeded the tolerance threshold of 0.1ns. The initial offset was recalculated and the compensation parameters were iteratively generated, and finally the error was controlled within 0.1ns, ensuring that the packet transmission timing and key update were strictly synchronized.

[0185] In summary, steps 601 to 605 align the delay timestamp with the key synchronization period, generate clock offset compensation parameters in segmented discretization, and compare and correct them in real time, thereby ensuring the timing accuracy of cross-architecture network transmission and strict synchronization of key updates, significantly improving data transmission stability and resistance to side-channel attacks in high-security migration scenarios.

[0186] In order to improve the accuracy and real-time performance of clock offset compensation in cross-architecture network transmission, the initial clock offset is discretized into segments according to the key synchronization period of the quantum key distribution network, the cumulative error of the clock offset in the segment is calculated and phase-matched with the key update pulse, and the discrete segment boundary is dynamically adjusted to generate high-precision phase matching results, ensuring strict synchronization between the packet transmission timing and the key update.

[0187] In some embodiments, step 602 discretizes the initial clock offset in segments according to the key synchronization period of the quantum key distribution network, calculates the clock offset cumulative error in each discrete segment, and performs phase matching on the clock offset cumulative error with the key update pulse of the quantum key distribution network to generate a phase matching result, including:

[0188] 701. Divide the initial clock offset into multiple discrete segments according to the key synchronization period length of the quantum key distribution network, calculate the phase difference between the initial clock offset and the key synchronization period in each discrete segment, and generate an intra-segment clock offset cumulative error;

[0189] In step 701, the discrete segment refers to a time period (eg, 10 ns per segment) in which the initial clock offset is divided according to a key synchronization period (eg, 1 GHz) of a quantum key distribution network, and is used for calculating the cumulative error in segments.

[0190] The cumulative error of the intra-segment clock offset refers to the phase difference between the initial clock offset and the key synchronization period in each discrete segment (such as 0.5ns), which is used to evaluate the compensation accuracy.

[0191] In an embodiment of the present application, the initial clock offset (e.g., +2 cycles) is divided into multiple discrete segments (e.g., 10 ns per segment) according to the key synchronization period length of the quantum key distribution network (e.g., 1 GHz corresponds to 10 ns), and the phase difference between the initial clock offset and the key synchronization period in each discrete segment is calculated (e.g., the phase difference in the first segment is 0.5 ns), and the cumulative error of the clock offset within the segment is generated (e.g., 0.5 ns).

[0192] 702. Match the accumulated error of the clock offset within the segment with the key update pulse of the quantum key distribution network in a time window. If the accumulated error of the clock offset within the segment exceeds the key synchronization period tolerance threshold, dynamically adjust the boundary position of the discrete segment according to the timestamp of the key update pulse.

[0193] In step 702, time window matching refers to aligning the accumulated error of the clock offset within the segment with the time window of the key update pulse (such as a 10ns window of a 1GHz pulse) to ensure that the error is within the tolerance threshold.

[0194] Dynamically adjusting the discrete segment boundary means re-dividing the discrete segment boundary (such as adjusting from 10ns to 5ns) according to the timestamp of the key update pulse (such as the first pulse timestamp 0ns) to reduce the cumulative error.

[0195] In an embodiment of the present application, the cumulative error of the clock offset within the segment (such as 0.5ns) is matched with the key update pulse (such as 1GHz pulse) of the quantum key distribution network in a time window (such as a 10ns window). If the cumulative error exceeds the key synchronization period tolerance threshold (such as 0.1ns), the discrete segment boundary is dynamically adjusted (such as from 10ns to 5ns) according to the timestamp of the key update pulse (such as the first pulse timestamp 0ns) to ensure that the error in subsequent segments is ≤0.1ns.

[0196] 703. Recalculate the clock offset cumulative error in the adjusted discrete segment according to the timestamp of the key update pulse, compare the clock offset cumulative error with the phase relationship of the key update pulse segment by segment, and generate a phase matching result.

[0197] In step 703, the phase relationship comparison is segment by segment checking the phase relationship (such as 0 degree alignment) of the key update pulse with the accumulated error of the clock offset in the adjusted discrete segment to generate a phase matching result.

[0198] In an embodiment of the present application, the cumulative error of the clock offset in the adjusted discrete segment (such as the error of the first segment 0.1ns) is recalculated based on the timestamp of the key update pulse (such as the timestamp of the first pulse 0ns), and the cumulative error is compared segment by segment with the phase relationship (such as 0 degree alignment) of the key update pulse (such as whether the check error is ≤0.1ns), and a phase matching result (such as the phase matching of the first segment is successful) is generated.

[0199] Here is a specific example:

[0200] When the government affairs system was migrated from x86 to ARM architecture, the initial clock offset + 2 cycles were divided into 10ns segments according to the 1GHz key synchronization cycle, and the cumulative error of the first segment was calculated to be 0.5ns; because the error exceeded the tolerance threshold of 0.1ns, the discrete segment boundary was adjusted to 5ns according to the key update pulse timestamp of 0ns; the error of the first segment was recalculated to be 0.1ns, and compared segment by segment with the phase relationship of the key update pulse to generate a phase matching result to ensure that the data packet transmission timing is strictly synchronized with the key update.

[0201] In summary, steps 701 to 703 generate high-precision phase matching results by discretizing the initial clock offset in segments and dynamically adjusting the discrete segment boundaries, thereby ensuring the timing accuracy of cross-architecture network transmission and strict synchronization of key updates, and significantly improving the data transmission stability and resistance to side-channel attacks in high-security level migration scenarios.

[0202] Figure 2 A structural diagram of a software ecological migration system based on intelligent analysis is provided for the embodiment of the present application, such as Figure 2 As shown, the system includes:

[0203] An instruction mapping verification module 21 is used to deploy a compatibility assessment database in a target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of a source architecture and an extended instruction set of a target architecture, generate migration risk data in combination with semantic equivalence verification, and mark instruction conversion defects;

[0204] The virtual scheduling acceleration module 22 is used to dynamically allocate computing resources when the heterogeneous virtualization scheduling engine is running. When the instruction conversion defect is detected, the hardware acceleration unit is called to perform the translation task of the defective instruction. At the same time, virtualization device simulation parameters are generated according to the device feature missing items in the migration risk data, and the source architecture physical device is dynamically simulated through the hardware abstract interface;

[0205] The protocol dynamic reconstruction module 23 is used to deploy the protocol conversion middleware based on the source architecture physical device, dynamically parse the network protocol data packet and reconstruct the message format according to the target architecture byte order, receive the instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity;

[0206] The timing closed-loop correction module 24 is used to inject the instruction conversion defect information of the instruction execution delay data into the transmission control logic during the cross-architecture network transmission process, correct the data packet transmission timing error through clock offset compensation, and return the corrected timing data to the compatibility evaluation database to update the instruction mapping rules.

[0207] Figure 2The software ecosystem migration system based on intelligent analysis can be executed Figure 1 The implementation principle and technical effects of the software ecological migration method based on intelligent analysis described in the embodiment shown are not repeated here. The specific way in which each module and unit performs operations in the software ecological migration system based on intelligent analysis in the above embodiment has been described in detail in the embodiment of the method, and will not be elaborated here.

[0208] In one possible design, Figure 2 The software ecological migration device based on intelligent analysis of the embodiment shown can be implemented as a computing device, such as Figure 3 As shown, the computing device may include a storage component 31 and a processing component 32;

[0209] The storage component 31 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 32 .

[0210] The processing component 32 is used for the above Figure 1 The embodiment provides a software ecosystem migration method based on intelligent analysis.

[0211] The processing component 32 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0212] The storage component 31 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0213] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.

[0214] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc.

[0215] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.

[0216] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.

[0217] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 A software ecosystem migration method based on intelligent analysis in the illustrated embodiment.

[0218] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0219] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0220] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0221] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A software ecological migration method based on intelligent analysis, characterized in that: include: Deploy a compatibility assessment database in the target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of the source architecture and extended instruction sets of the target architecture, generate migration risk data and mark instruction conversion defects in combination with semantic equivalence verification; Dynamically allocate computing resources by running a heterogeneous virtualization scheduling engine, and when the instruction conversion defect is detected, call the hardware acceleration unit to perform the translation task of the defective instruction, and generate virtualization device simulation parameters according to the device feature missing items in the migration risk data, and dynamically simulate the source architecture physical device through the hardware abstract interface; Deploy protocol conversion middleware based on the source architecture physical device, dynamically parse network protocol data packets and reconstruct the message format according to the target architecture byte order, receive instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity; During the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, and the data packet transmission timing error is corrected through clock offset compensation. The corrected timing data is returned to the compatibility evaluation database to update the instruction mapping rules.

2. The method according to claim 1, characterized in that: The computing resources are dynamically allocated by the heterogeneous virtualization scheduling engine when running. When the instruction conversion defect is detected, the hardware acceleration unit is called to perform the translation task of the defective instruction. At the same time, the virtualization device simulation parameters are generated according to the device feature missing items in the migration risk data, and the source architecture physical device is dynamically simulated through the hardware abstract interface, including: Monitor the instruction conversion defect marks in the compatibility assessment database, and if the source architecture vector processing unit instruction cannot match the target architecture extended instruction set through the instruction mapping rule, input the binary stream of the defective instruction into the hardware acceleration unit for segmented decoding, extract the operation code and register addressing mode, and generate the atomic instruction sequence of the target architecture based on the equivalent conversion logic; According to the missing device feature items in the migration risk data, the hardware register bit width and interrupt response mechanism of the source architecture physical device are parsed, the hardware register bit width is aligned with the target architecture physical address space, and virtualization device simulation parameters are generated in combination with the time constraint of the interrupt response mechanism, a virtual register block is allocated in the target architecture memory through a hardware abstract interface, and the address mapping relationship is written into the execution context of the heterogeneous virtualization scheduling engine; The address mapping relationship between the atomic instruction sequence and the virtual register block is bound into an executable code segment, the executable code segment is injected into the physical thread scheduling queue of the target architecture through the heterogeneous virtualization scheduling engine, and the instruction mapping rules of the compatibility assessment database are updated during the execution process.

3. The method according to claim 2, characterized in that After aligning the hardware register bit width with the target architecture physical address space, generating virtualization device simulation parameters in combination with the time constraint of the interrupt response mechanism, allocating virtual register blocks in the target architecture memory through the hardware abstract interface, and writing the address mapping relationship into the execution context of the heterogeneous virtualization scheduling engine, including: Splitting the hardware register bit width of the source architecture physical device into the minimum addressable unit of the target architecture physical address space, determining the address offset of each unit, associating the address offset with the interrupt delay tolerance time window of the interrupt response mechanism, and generating virtualized device simulation parameters including address step size and timing tolerance threshold; Based on the address step, a virtual register block is divided in a secure isolation area of ​​the target architecture memory through a hardware abstraction interface, the start address of the virtual register block is consistent with the alignment boundary of the target architecture physical address space, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold; Binding the starting address of the virtual register block to the interrupt vector number of the source architecture physical device, and adjusting the priority arbitration strategy of the target architecture interrupt controller based on the timing tolerance threshold, so that the interrupt response event of the virtual register block completes the context switch within the interrupt delay tolerance time window; The address mapping relationship of the virtual register block is encapsulated into an execution context descriptor according to the memory permission rules of the security isolation area through a hardware abstract interface, and the execution context descriptor is injected into the real-time scheduling policy queue of the heterogeneous virtualization scheduling engine.

4. The method according to claim 3, characterized in that Based on the address step, a virtual register block is divided in a secure isolation area of ​​the target architecture memory through a hardware abstract interface, the start address of the virtual register block is consistent with the alignment boundary of the target architecture physical address space, and the address continuity satisfies the access cycle synchronization condition corresponding to the timing tolerance threshold, including: Discretize the address step length according to the memory page granularity of the secure isolation area, calculate the physical address interval span of each discrete unit, perform clock domain matching with the key synchronization period of the quantum key distribution network, and generate an address allocation request with a timestamp; Based on the address allocation request, traverse the free address pool of the security isolation area through the hardware abstract interface, screen candidate areas that meet the physical address space alignment boundary of the target architecture and whose continuous address block length is greater than the span of the physical address interval, and bind the starting address of the candidate area to the interrupt vector number hash; Based on the timing tolerance threshold, verify whether the address continuity of the candidate area meets the interrupt delay sensitivity requirement, if the adjacent address access interval is less than the interrupt delay tolerance time window, determine it as a valid virtual register block, otherwise regenerate an address allocation request; The starting address of the valid virtual register block is encoded into an address descriptor including an executable tag and an isolation identifier according to memory access permission rules, written into the address mapping table of the heterogeneous virtualization scheduling engine through a hardware abstraction interface, and associated with the priority arbitration policy queue of the interrupt controller.

5. The method according to claim 1, characterized in that In the cross-architecture network transmission process, the instruction conversion defect information of the instruction execution delay data is injected into the transmission control logic, the data packet transmission timing error is corrected by clock offset compensation, and the corrected timing data is returned to the compatibility evaluation database to update the instruction mapping rule, including: Extracting instruction conversion defect information from the instruction execution delay data, encoding the instruction conversion defect information into a transmission control field according to the target architecture byte order, and inserting the transmission control field into an extended header of a network protocol data packet; Calculating the clock offset of the network protocol data packet according to the delay timestamp in the instruction conversion defect information, aligning the clock offset with the key synchronization period of the quantum key distribution network, and generating a clock offset compensation parameter; adjusting a transmission interval of a network protocol data packet based on the clock offset compensation parameter so that the transmission interval is synchronized with a memory access cycle of a target architecture physical address space, and injecting the transmission control field into a priority arbitration strategy of an interrupt controller of the target architecture; After the data packet arrives at the target architecture, the transmission control field in the extended header is extracted, the clock offset compensation parameter and the instruction conversion defect information are combined into timing correction data, and the data is transmitted back to the compatibility assessment database through the hardware abstraction interface; The equivalent conversion logic in the instruction mapping rule is updated according to the timing correction data, and the instruction conversion defect information is associated with the semantic features of the target architecture extended instruction set.

6. The method according to claim 5, characterized in that According to the delay timestamp in the instruction conversion defect information, the clock offset of the network protocol data packet is calculated, the clock offset is aligned with the key synchronization period of the quantum key distribution network, and the clock offset compensation parameter is generated, including: Extracting the delay timestamp in the instruction conversion defect information, calculating the phase difference between the delay timestamp and the memory access cycle of the physical address space of the target architecture, and generating an initial clock offset; Discretize the initial clock offset in sections according to the key synchronization period of the quantum key distribution network, calculate the clock offset cumulative error in each discrete section, and perform phase matching on the clock offset cumulative error and the key update pulse of the quantum key distribution network to generate a phase matching result; According to the phase matching result, the segmented discretization granularity of the initial clock offset is adjusted so that the accumulated error of the clock offset in each discrete segment is less than the key synchronization period tolerance threshold of the quantum key distribution network, and a segmented clock offset compensation parameter is generated; Reaggregating the segmented clock offset compensation parameters according to the memory access cycle of the physical address space of the target architecture to generate a global clock offset compensation parameter, and injecting the global clock offset compensation parameter into the transmission control field of the network protocol data packet; The global clock offset compensation parameter is compared with the key synchronization period of the quantum key distribution network in real time through a hardware abstract interface. If the comparison result exceeds the key synchronization period tolerance threshold, the initial clock offset is recalculated and the clock offset compensation parameter is iteratively generated.

7. The method according to claim 6, characterized in that The initial clock offset is discretized in sections according to the key synchronization period of the quantum key distribution network, the clock offset cumulative error in each discrete section is calculated, and the clock offset cumulative error is phase-matched with the key update pulse of the quantum key distribution network to generate a phase matching result, including: Dividing the initial clock offset into a plurality of discrete segments according to the key synchronization period length of the quantum key distribution network, calculating the phase difference between the initial clock offset and the key synchronization period in each discrete segment, and generating a cumulative error of the clock offset within the segment; Matching the accumulated error of the clock offset within the segment with the key update pulse of the quantum key distribution network in a time window, and if the accumulated error of the clock offset within the segment exceeds the key synchronization period tolerance threshold, dynamically adjusting the boundary position of the discrete segment according to the timestamp of the key update pulse; The clock offset cumulative error in the adjusted discrete segment is recalculated according to the timestamp of the key update pulse, and the phase relationship between the clock offset cumulative error and the key update pulse is compared segment by segment to generate a phase matching result.

8. A software ecological migration system based on intelligent analysis, characterized in that: include: An instruction mapping verification module is used to deploy a compatibility assessment database in a target architecture environment, preset instruction mapping rules between different instruction set architectures, wherein the instruction mapping rules include equivalent conversion logic between vector processing unit instructions of a source architecture and an extended instruction set of a target architecture, generate migration risk data in combination with semantic equivalence verification, and mark instruction conversion defects; A virtual scheduling acceleration module is used to dynamically allocate computing resources when the heterogeneous virtualization scheduling engine is running. When the instruction conversion defect is detected, the hardware acceleration unit is called to perform the translation task of the defective instruction. At the same time, virtualization device simulation parameters are generated according to the device feature missing items in the migration risk data, and the source architecture physical device is dynamically simulated through the hardware abstract interface. A protocol dynamic reconstruction module is used to deploy protocol conversion middleware based on the source architecture physical device, dynamically parse network protocol data packets and reconstruct the message format according to the target architecture byte order, receive instruction execution delay data fed back by the heterogeneous virtualization scheduling engine, and adjust the protocol field parsing granularity; The timing closed-loop correction module is used to inject the instruction conversion defect information of the instruction execution delay data into the transmission control logic during the cross-architecture network transmission process, correct the data packet transmission timing error through clock offset compensation, and return the corrected timing data to the compatibility evaluation database to update the instruction mapping rules.

9. A computing device, characterized in that It includes a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement a software ecological migration method based on intelligent analysis as described in any one of claims 1 to 7.

10. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a computer, a software ecological migration method based on intelligent analysis as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Software migration method and device among multiple ecology, computer equipment and storage medium

    CN113360184A

  • Program migration method and system for dynamic and static binary translation and storage medium

    CN114115990A