Data processing methods, apparatus, electronic devices and computer-readable storage media

By acquiring and backing up the configuration data of virtual devices in the DPU processor, the problem of service interruption during abnormal restart of the DPU processor is solved, enabling rapid recovery and stable operation, and improving the user experience.

CN120020736BActive Publication Date: 2026-11-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311557609.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2026-11-17
Estimated Expiration
2043-11-20

AI Technical Summary

Technical Problem

Existing DPU processors suffer from service interruptions due to hardware failures, especially when hardware or software restarts abnormally, causing virtual device configuration data to be cleared and host-side services to malfunction.

Method used

After the business system starts, the processor obtains configuration data from the virtual device and performs anomaly detection based on a preset time interval. When an anomaly is detected, the processor sends configuration data to the virtual device for data recovery, including backup and recovery mechanisms for basic and incremental configuration data, and supports rapid recovery in cold and hot restart scenarios.

Benefits of technology

In the event of a hardware or software malfunction and restart, the virtual device can quickly restore the information it had before the malfunction and provide the business services it provided before the malfunction to the outside world. This ensures that the host-side user is unaware of the issue and guarantees the stable operation of the business system and the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120020736B_ABST
    Figure CN120020736B_ABST
Patent Text Reader

Abstract

This application provides a data processing method, apparatus, electronic device, and computer-readable storage medium, relating to the field of big data computing technology. The method includes: after the business processing system starts and the virtual device is configured, acquiring configuration data from the virtual device; performing anomaly detection on the virtual device based on a preset time interval; and when an anomaly identifier is detected, sending the acquired configuration data to the virtual device so that the virtual device can perform data recovery based on the received configuration data. This invention can be applied to various scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving. This application embodiment, by pre-acquiring configuration data through a processor, enables the virtual device to quickly recover information before the anomaly in the event of a hardware or software abnormal restart, providing the business services provided before the anomaly, and ensuring that the host-side user is unaware of the system anomaly, thus improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data computing technology, and more specifically, to a data processing method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] With the rapid development of cloud computing, DPUs (Data Processing Units) are widely used in various business systems to meet users' growing network and storage demands. Cloud computing requires business systems to provide reliable and stable services to ensure uninterrupted operation of user businesses. DPUs serve cloud computing, and their main role is to improve the efficiency of computing infrastructure such as data centers, reduce energy waste, and thus lower costs.

[0003] In existing technologies, DPU processors typically employ hardware or a hardware-software co-processing approach to simulate host-side devices to complete virtualization tasks. For example, current mainstream network interface cards (NICs) primarily use hardware response (TLP) to present the device topology to the host in response to user actions. In the hardware response TLP scheme, when a hardware failure occurs, the hardware virtual device will perform a reset operation, clearing the data in the user's configuration space. This prevents the host-side services from functioning properly, leading to business interruption and compromising system stability. Summary of the Invention

[0004] This application provides a data processing method, apparatus, electronic device, and computer-readable storage medium, which can solve the problem of business interruption caused by business system failure. The technical solution is as follows:

[0005] According to one aspect of the embodiments of this application, a data processing method is provided, applied to a processor in a business processing system, the business processing system further including a virtual device and a host, the method comprising:

[0006] After the business processing system starts up and the virtual device is configured, configuration data is obtained from the virtual device; the configuration data is used to represent the virtual configuration of the business processing system.

[0007] Perform anomaly detection on virtual devices based on preset time intervals;

[0008] When an anomaly flag is detected, the acquired configuration data is sent to the virtual device so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; the anomaly flag is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0009] In one possible implementation, the above configuration data includes basic configuration data;

[0010] The above-mentioned acquisition of configuration data from virtual devices includes:

[0011] Information is queried from virtual devices based on preset time intervals;

[0012] When the enable tag is found, an information retrieval request is sent to the virtual device to obtain the basic configuration data of the virtual device; the enable tag is generated by the virtual device in response to the enable command sent by the host.

[0013] Store basic configuration data.

[0014] In one possible implementation, the above configuration data includes incremental configuration data;

[0015] The method also includes:

[0016] Once an incremental tag is retrieved, the incremental configuration data corresponding to the incremental tag is obtained from the virtual device; the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0017] Enhanced storage configuration data.

[0018] In yet another possible implementation, the aforementioned anomaly identifier includes a system hardware anomaly identifier;

[0019] When an anomaly is detected, the aforementioned method sends the acquired configuration data to the virtual device, including:

[0020] When a system hardware anomaly flag is detected, a cold restart recovery procedure is initiated to send configuration data to the virtual device; the hardware anomaly flag is generated after the virtual device recognizes the hardware anomaly and performs a cold restart.

[0021] In yet another possible implementation, the aforementioned exception identifier includes a system software exception identifier;

[0022] When an anomaly is detected, the aforementioned method sends the acquired configuration data to the virtual device, including:

[0023] When a system software anomaly is detected, a hot restart recovery command is sent to the virtual device. The system software anomaly is generated after the virtual device initializes itself when the number of hot restarts detected by the virtual device within a preset time period exceeds a preset value.

[0024] When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device. The recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

[0025] In another possible implementation, the above method also includes:

[0026] Receive a recovery success message returned by the virtual device; the recovery success message is sent by the virtual device after the data recovery is successful.

[0027] Obtain new configuration data from the virtual device after data recovery; this new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly flag is detected.

[0028] According to another aspect of the embodiments of this application, a data processing method is provided, applied to a virtual device in a business processing system, the business processing system further including a processor and a host, the method comprising:

[0029] The system receives a data acquisition request from the processor and, in response to the data acquisition request, sends pre-generated configuration data to the processor. The data acquisition request is generated by the processor after the business processing system starts up and the virtual device is configured. The configuration data is used to characterize the virtual configuration of the business processing system.

[0030] When an abnormal restart is detected in the business processing system, an abnormal identifier is generated so that the processor can query the abnormal identifier and send configuration data to the virtual device; the abnormal identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0031] Receive configuration data, perform data recovery based on the configuration data, and provide virtualization services to the host;

[0032] After successful data recovery, a recovery success message is returned to the processor.

[0033] In another possible implementation, the aforementioned receiving processor sends a data acquisition request, and in response to the data acquisition request, sends pre-generated configuration data to the processor, including:

[0034] After the business processing system starts, in response to the enable command sent by the host, an enable tag is generated so that the processor can query and obtain the enable tag and send an information acquisition request to the virtual device.

[0035] In response to an information retrieval request, the pre-generated basic configuration data is sent to the processor as configuration data;

[0036] In response to the device operation command sent by the host, an incremental tag is generated so that the processor can query and obtain the incremental tag and send an information retrieval request to the virtual device;

[0037] In response to an information retrieval request, pre-generated incremental configuration data is sent to the processor as configuration data.

[0038] According to another aspect of the embodiments of this application, a data processing apparatus is provided, the apparatus comprising:

[0039] The acquisition module is used to acquire configuration data from the virtual device after the business processing system starts up and the virtual device is configured; the configuration data is used to represent the virtual configuration of the business processing system.

[0040] The detection module is used to perform anomaly detection on virtual devices based on preset time intervals;

[0041] The sending module is used to send the acquired configuration data to the virtual device when an anomaly flag is detected, so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; wherein, the anomaly flag is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0042] In one possible implementation, the above configuration data includes basic configuration data;

[0043] When obtaining configuration data from a virtual device, the aforementioned acquisition module is used for:

[0044] Information is queried from virtual devices based on preset time intervals;

[0045] When the enable tag is found, an information retrieval request is sent to the virtual device to obtain the basic configuration data of the virtual device; the enable tag is generated by the virtual device in response to the enable command sent by the host.

[0046] Store basic configuration data.

[0047] In one possible implementation, the above configuration data includes incremental configuration data;

[0048] This acquisition module is also used for:

[0049] Once an incremental tag is retrieved, the incremental configuration data corresponding to the incremental tag is obtained from the virtual device; the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0050] Enhanced storage configuration data.

[0051] In another possible implementation, the aforementioned anomaly identifier includes a system hardware anomaly identifier; when the aforementioned sending module detects the anomaly identifier, it sends the acquired configuration data to the virtual device.

[0052] When, used for:

[0053] When a system hardware anomaly flag is detected, a cold restart recovery procedure is initiated to send configuration data to the virtual device; the hardware anomaly flag is generated after the virtual device recognizes the hardware anomaly and performs a cold restart.

[0054] In yet another possible implementation, the aforementioned exception identifier includes a system software exception identifier;

[0055] When the aforementioned sending module detects an anomaly flag and sends the acquired configuration data to the virtual device, it is used for:

[0056] When a system software anomaly is detected, a hot restart recovery command is sent to the virtual device. The system software anomaly is generated after the virtual device initializes itself when the number of hot restarts detected by the virtual device within a preset time period exceeds a preset value.

[0057] When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device. The recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

[0058] In another possible implementation, the above-described apparatus further includes a receiving module for:

[0059] Receive a recovery success message returned by the virtual device; the recovery success message is sent by the virtual device after the data recovery is successful.

[0060] Obtain new configuration data from the virtual device after data recovery; this new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly flag is detected.

[0061] According to another aspect of the embodiments of this application, yet another data processing apparatus is provided, the apparatus comprising:

[0062] The response module is used to receive data acquisition requests sent by the processor and, in response to the data acquisition requests, send pre-generated configuration data to the processor. The data acquisition requests are generated by the processor after the business processing system starts up and the data processing device is configured. The configuration data is used to characterize the virtual configuration of the business processing system.

[0063] The generation module is used to generate an exception identifier when an abnormal restart is detected in the business processing system, so that the processor queries the exception identifier, sends configuration data to the data processing device, and provides virtualization services to the host; wherein, the exception identifier is used to indicate that the data processing device has experienced a hardware or software abnormal restart;

[0064] The recovery module is used to receive configuration data and perform data recovery based on the configuration data.

[0065] The return module is used to return a recovery success message to the processor after successful data recovery.

[0066] In another possible implementation, when the response module receives a data acquisition request from the processor and sends pre-generated configuration data to the processor in response to the data acquisition request, it is used to:

[0067] After the business processing system starts, in response to the enable command sent by the host, an enable tag is generated so that the processor can query and obtain the enable tag and send an information acquisition request to the virtual device.

[0068] In response to an information retrieval request, the pre-generated basic configuration data is sent to the processor as configuration data;

[0069] In response to the device operation command sent by the host, an incremental tag is generated so that the processor can query and obtain the incremental tag and send an information retrieval request to the virtual device;

[0070] In response to an information retrieval request, pre-generated incremental configuration data is sent to the processor as configuration data.

[0071] According to another aspect of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method shown in the first aspect of the present application.

[0072] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the method shown in the first aspect of the embodiments of this application.

[0073] According to one aspect of the present application, a computer program product is provided, which includes a computer program that, when executed by a processor, implements the steps of the method shown in the first aspect of the present application.

[0074] The beneficial effects of the technical solutions provided in this application are:

[0075] In this embodiment, after the business system starts, the processor obtains configuration data from the configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly flag indicates that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor obtains configuration data in advance. When the processor detects an anomaly flag, it sends the obtained configuration data to the virtual device, enabling the virtual device to quickly complete data recovery based on the received configuration data. This embodiment enables the virtual device to quickly recover the information before the anomaly in the event of a hardware or software abnormal restart, provide the business services before the anomaly, and ensure that the host-side user is unaware of the anomaly, ensuring the stable and uninterrupted operation of the business system and effectively improving the user experience. Attached Figure Description

[0076] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0077] Figure 1 This is a schematic diagram illustrating an application scenario of a data processing method provided in an embodiment of this application;

[0078] Figure 2 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0079] Figure 3 This is a flowchart illustrating the process of obtaining configuration data in a data processing method provided in an embodiment of this application.

[0080] Figure 4 This is a flowchart illustrating the process of obtaining incremental configuration data in a data processing method provided in an embodiment of this application.

[0081] Figure 5 A schematic diagram of the process for recovering software anomalies in a data processing method provided in an embodiment of this application;

[0082] Figure 6 A flowchart illustrating another data processing method provided in an embodiment of this application;

[0083] Figure 7 This is a flowchart illustrating the process of sending configuration data in a data processing method provided in an embodiment of this application.

[0084] Figure 8 A schematic flowchart illustrating an example data processing method provided in an embodiment of this application;

[0085] Figure 9 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0086] Figure 10 This is a schematic diagram of the structure of another data processing device provided in the embodiments of this application;

[0087] Figure 11 This is a schematic diagram of the structure of a data processing electronic device provided in an embodiment of this application. Detailed Implementation

[0088] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0089] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” can be implemented as “A,” or as “B,” or as “A and B.”

[0090] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0091] Optionally, the data processing method provided in this application embodiment can be used to implement cloud computing. For example, the business processing system in this application embodiment can provide highly reliable and stable cloud computing services based on cloud technology.

[0092] Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Based on the cloud computing business model, cloud technology encompasses network technology, information technology, integration technology, management platform technology, and application technology. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.

[0093] Cloud computing refers to the delivery and usage model of IT infrastructure, meaning obtaining necessary resources in an on-demand and easily scalable manner through a network. In a broader sense, cloud computing also refers to the delivery and usage model of services, meaning obtaining necessary services in an on-demand and easily scalable manner through a network. These services can be IT and software related, internet-related, or other services. Cloud computing is a product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.

[0094] With the development of the internet, real-time data streams, and the diversification of connected devices, as well as the demands for search services, social networks, mobile commerce, and open collaboration, cloud computing has rapidly developed. Unlike previous parallel distributed computing, cloud computing will fundamentally revolutionize the entire internet model and enterprise management model.

[0095] Optionally, the data processing method provided in this application embodiment can be used for big data processing. For example, the processor in this application embodiment can be a DPU processor, which can provide efficient big data processing capabilities for business systems.

[0096] Big data refers to data sets that cannot be captured, managed, and processed within a certain timeframe using conventional software tools. It represents massive, rapidly growing, and diverse information assets that require new processing models to achieve stronger decision-making, insightful discovery, and process optimization capabilities. With the advent of the cloud era, big data has attracted increasing attention. Big data requires specialized technologies to effectively process large amounts of data within a tolerable timeframe. Technologies suitable for big data include massively parallel processing databases, data mining, distributed file systems, distributed databases, cloud computing platforms, the internet, and scalable storage systems.

[0097] As data centers evolve into a data-centric landscape, the performance of CPUs (Central Processing Units) has lagged far behind the rate of data growth. GPUs (Graphics Processing Units) have become the primary computing power, significantly improving the computing performance of single processors and single machines. The traditional approach of using CPUs to handle infrastructure operations such as security, communication, storage, and virtualization in data centers is gradually becoming a bottleneck for computing performance growth, and the resource conflicts between computing and infrastructure support functions and CPUs are becoming increasingly severe.

[0098] The emergence of DPUs offloads these infrastructure operations from the CPU to the DPU, enabling a combination of software-defined and hardware-accelerated technologies in areas such as security, communication, storage, and virtualization. This frees up CPU computing resources and better supports application needs.

[0099] Currently, DPU processors in the market generally use hardware to simulate host-side devices, or they can use a combination of hardware and software to simulate host-side devices. The configuration data of the virtual devices running in the embedded system will be cleared after the business system undergoes an abnormal cold or hot restart. They do not have the ability to recover from abnormal situations, resulting in business interruption and poor user experience.

[0100] The data processing methods, apparatus, electronic devices, and computer-readable storage media provided in this application are intended to solve the above-mentioned technical problems of the prior art.

[0101] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0102] like Figure 1 As shown, the data processing method of this application can be applied to... Figure 1In the scenario shown, the business processing system 10 may include a processor 103, a virtual device 102, and a host 101. The virtual device 102 can be used to provide virtualization services to the host 101. Specifically, after the business processing system 10 starts, the processor 103 can obtain configuration data from the pre-configured virtual device 102. Then, the processor 103 performs anomaly detection on the virtual device 102 based on a preset time interval. When an anomaly is detected, the processor 103 can send the obtained configuration data to the virtual device 102 so that the virtual device 102 can perform data recovery based on the received configuration data. After the virtual device 102 successfully recovers the data, it sends a recovery success message to the processor 103 to inform the processor 103 that the business processing system has completed data recovery.

[0103] Figure 1 In the scenario shown, the above data processing method can be performed on the server; in other scenarios, it can also be performed on the terminal.

[0104] Those skilled in the art will understand that the term "terminal" as used herein includes, but is not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, and aircraft; "server" can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminals and servers can be connected directly or indirectly through wired or wireless communication methods, and this application does not impose any restrictions.

[0105] This application provides a data processing method, such as... Figure 2 As shown, the method can be applied to a processor in a business processing system, wherein the business processing system may further include virtual devices and hosts, and the method includes:

[0106] S201: After the business processing system starts up and the virtual device is configured, obtain the configuration data from the virtual device.

[0107] The configuration data is used to characterize the virtual configuration of the business processing system; the processor mentioned above can be a DPU processor; the virtual device can be a hardware and software co-simulation device, which can be used to provide virtualization services to the host side. The business processing system mentioned above can be a business system that provides cloud computing services.

[0108] For example, a virtual device can be an SR-IOV (Single Root I / O Virtualization) device. SR-IOV operates at the operating system level and can create at least one Virtual Function (VF) under all peripheral physical devices (PFs). VFs can share the physical resources of peripheral devices (such as network interface card ports or network interface card cache space) and associate with virtual machine systems on the SR-IOV server. SR-IOV allows a single physical PCIe device to virtualize itself as multiple virtual PCIe devices. In the embodiments of this application, an SR-IOV device can be used to map a PF to multiple VFs, and each VF can be bound to a virtual machine to create diverse virtual environments for the host.

[0109] Specifically, after the business processing system starts up, the virtual device is powered on. When the processor queries the virtual device and finds at least one of the enable tag and the incremental tag, it retrieves the configuration data from the configured virtual device. The enable tag is generated by the virtual device in response to the enable command sent by the host, and the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0110] S202, perform anomaly detection on the virtual device based on a preset time interval; when an anomaly flag is detected, send the acquired configuration data to the virtual device so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host.

[0111] Among them, the anomaly identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0112] In this embodiment, when a virtual device experiences a hardware or software malfunction and restarts during operation, the DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory) data, i.e. the configuration data, in the service processing system will be cleared, causing the virtual device to be unable to correctly provide related services to the host side, resulting in user service interruption.

[0113] Specifically, the aforementioned anomaly identifiers can include system hardware anomaly identifiers and system software anomaly identifiers. The processor can perform anomaly detection on the virtual device through cross-system register inspection. When an anomaly identifier is detected, the processor sends the acquired configuration data to the virtual device. After the virtual device successfully recovers data based on the configuration data obtained from the processor, it can quickly resume the virtualization services provided to the host, ensuring system stability and eliminating any awareness of the anomaly among host-side users.

[0114] In this embodiment, after the business system starts, the processor obtains configuration data from the configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly flag indicates that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor obtains configuration data in advance. When the processor detects an anomaly flag, it sends the obtained configuration data to the virtual device, enabling the virtual device to quickly complete data recovery based on the received configuration data. This embodiment enables the virtual device to quickly recover the information before the anomaly in the event of a hardware or software abnormal restart, provide the business services before the anomaly, and ensure that the host-side user is unaware of the anomaly, ensuring the stable and uninterrupted operation of the business system and effectively improving the user experience.

[0115] This application provides a possible implementation method, and the above configuration data includes basic configuration data.

[0116] The aforementioned basic configuration data may include the attribute information of the virtual device, which is not updated after being saved. For example, the virtual device may be the attribute information of a virtual device module generated by mapping the system's physical device module. This virtual device module is bound to a system virtual machine, which runs on the host side and provides virtualization functionality to the host side. This virtual device module may include network cards, disks, etc., and is not specifically limited in this embodiment.

[0117] like Figure 3 As shown, obtaining configuration data from the virtual device includes:

[0118] S301, query information about the virtual device based on a preset time interval; when an enable tag is found, send an information retrieval request to the virtual device to obtain the basic configuration data of the virtual device.

[0119] The enable tag is generated by the virtual device in response to the enable command sent by the host.

[0120] Specifically, the host sends an enable command to the virtual device. After the virtual device successfully enables itself in response to the enable command, it generates an enable tag. The processor can query the virtual device for information through the management components included in the processor at preset time intervals. When the enable tag is found, the processor sends a data request to the virtual device. In response to the data request, the virtual device sends basic configuration data to the processor.

[0121] S302 stores basic configuration data.

[0122] Specifically, the processor can save the acquired basic configuration data in a preset storage space.

[0123] In this embodiment, the processor periodically queries the virtual device for information. When the query indicates that the virtual device is successfully enabled, it means that the virtual device is successfully configured. The processor can then obtain basic configuration data from the virtual device and back it up. This backup data can be used to restore the system in case of data loss due to a subsequent abnormal system restart, thereby improving system stability.

[0124] This application provides a possible implementation method, wherein the above configuration data includes incremental configuration data.

[0125] The incremental configuration data mentioned above may include configuration change attribute information of virtual devices, which can be updated in real time according to the host's device operation commands. For example, the configuration change attribute information of the virtual device module generated by mapping the system's physical device modules; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver for the network card, whether to enable it, etc.

[0126] like Figure 4 As shown, the method also includes:

[0127] S401: When an incremental tag is obtained through querying, the incremental configuration data corresponding to the incremental tag is retrieved from the virtual device.

[0128] The incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0129] Specifically, the host can respond to user commands by sending device operation instructions to the virtual device, which in turn generates an incremental tag. When the processor retrieves this incremental tag through its management components, it obtains the corresponding incremental configuration data from the virtual device.

[0130] S402, storage enhances configuration data.

[0131] Specifically, the processor can save the acquired enhanced configuration data in a preset storage space.

[0132] In this embodiment, the processor periodically queries the virtual device. When a device operation command from the host for the virtual device is obtained, indicating that the virtual device's configuration has been updated, the processor can obtain the corresponding incremental configuration data from the virtual device and back it up. This backup allows for data recovery in the event of a subsequent system restart and loss of configuration data. This embodiment categorizes the virtual device's configuration data into basic configuration data and incremental configuration data, which reduces the processor's resource consumption for each data acquisition and storage, improves the processor's data processing efficiency, and further enhances the system's stability and reliability.

[0133] This application provides a possible implementation method, wherein the above-mentioned anomaly identifier includes a system hardware anomaly identifier.

[0134] When an anomaly is detected, the aforementioned method sends the acquired configuration data to the virtual device, including:

[0135] When a system hardware anomaly is detected, a cold reboot recovery procedure is initiated to send configuration data to the virtual device.

[0136] The hardware anomaly flag is generated after the virtual device detects a hardware anomaly cold restart. For example, the aforementioned hardware anomaly cold restart could be caused by a watchdog timer malfunction.

[0137] Specifically, when a virtual device experiences an abnormal cold start due to a hardware malfunction during operation, a system hardware malfunction identifier is generated. The processor can perform malfunction detection on the virtual device through cross-system registers. When the aforementioned system hardware malfunction identifier is obtained, a cold restart recovery procedure is initiated to send configuration data to the virtual device.

[0138] This application embodiment detects hardware anomalies in virtual devices. When a hardware anomaly cold start state is detected, the configuration data pre-stored by the processor is sent to the virtual device so that the virtual device can promptly restore the user configuration information, provide uninterrupted business service capabilities, and improve the user experience.

[0139] This application provides a possible implementation method, wherein the above-mentioned exception identifier includes a system software exception identifier.

[0140] like Figure 5 As shown, when an anomaly identifier is detected, the acquired configuration data is sent to the virtual device, including:

[0141] When S501 detects a system software anomaly, it sends a hot restart recovery command to the virtual device.

[0142] Among them, the system software anomaly identifier is generated after the virtual device initializes when it detects that the number of software anomalies and hot restarts exceeds a preset value within a preset time period.

[0143] Specifically, when a virtual device experiences an abnormal hot restart due to a software malfunction during operation, a count begins. If the number of abnormal hot restarts exceeds a preset value within a preset time period, the system's configuration data is cleared for device initialization, and a system software malfunction identifier is generated. The processor can perform malfunction detection on the virtual device through cross-system registers. When the aforementioned system software malfunction identifier is obtained, the processor sends a hot restart recovery command to the virtual device. This command enables the virtual device to retrieve pre-backed-up configuration data from its preset storage area and perform data recovery.

[0144] S502: When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device.

[0145] The recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

[0146] Specifically, when a virtual device cannot obtain pre-backed-up configuration data from a preset storage area, it generates a recovery failure message and sends the message to the processor. Upon receiving the recovery failure message, the processor sends configuration data to the virtual device so that the virtual machine can complete the data recovery.

[0147] This application embodiment detects anomalies by counting the number of abnormal software hot restarts detected by the virtual device within a preset time period. Since some software anomalies can be repaired automatically and have little impact on the overall system service, this application sets up a fault tolerance mechanism for abnormal software hot restarts. When the number of abnormal hot restarts exceeds a preset value within the preset time period, the user's configuration space is cleared and data recovery is performed. Data recovery can be performed by first obtaining pre-backed-up configuration data from the preset storage area of ​​the virtual device. If the configuration data cannot be obtained from the storage area, the configuration data is obtained from the processor. In other words, this application embodiment performs dual backup through the virtual device and the processor to improve the success rate and efficiency of data recovery, further ensuring the stable operation of the business system.

[0148] This application provides a possible implementation method, which further includes:

[0149] Receive the recovery success message returned by the virtual device and obtain the new configuration data from the virtual device after data recovery.

[0150] The successful recovery message is sent by the virtual device after successful data recovery. The new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly is detected. This new configuration data includes incremental configuration data, which can be updated in real time according to the host's device operation commands.

[0151] Specifically, after the processor receives the recovery success message from the virtual device, it can continue to periodically query the virtual device. When the query retrieves the host's device operation command for the virtual device, indicating that the virtual device's configuration has been updated, the processor can obtain the corresponding new incremental configuration data from the virtual device and back it up. This backup will be used to restore the data in the event of a subsequent abnormal system restart and loss of configuration data.

[0152] This application embodiment allows the processor to continue acquiring new incremental configuration data from the virtual device after data recovery. This enables the configuration data backed up by the processor to be updated in real time based on the host's device operation commands, without being affected by abnormal system cold or hot restarts or data recovery operations of the virtual device. This further ensures that the host-side user is unaware of any anomalies, and the business system can perform multiple consecutive data recovery operations, thereby improving the stability and reliability of the business system.

[0153] This application provides yet another data processing method, such as... Figure 6 As shown, a virtual device can be applied to a business processing system, wherein the business processing system may further include a processor and a host. The method includes:

[0154] S601 receives a data acquisition request sent by the processor and, in response to the data acquisition request, sends pre-generated configuration data to the processor.

[0155] The data acquisition request is generated by the processor after the business processing system starts and the virtual device is configured; the configuration data is used to characterize the virtual configuration of the business processing system. The processor can be a DPU processor; the virtual device can be a hardware / software co-simulation device, such as an SR-IOV device, which can be used to provide virtualization services to the host side. The business processing system can be a business system providing cloud computing services.

[0156] Specifically, after the business processing system starts up, the virtual device is powered on. When the processor finds at least one of the enable tag and the incremental tag from the virtual device, it sends a data acquisition request to the virtual device. In response to the data acquisition request, the virtual device sends pre-generated configuration data to the processor. The enable tag is generated by the virtual device in response to the enable command sent by the host, and the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0157] S602: When an abnormal restart is detected in the business processing system, an abnormal identifier is generated so that the processor can query the abnormal identifier and send configuration data to the virtual device.

[0158] Among them, the anomaly identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart. The above anomaly identifier can include system hardware anomaly identifier and system software anomaly identifier.

[0159] Specifically, when a virtual device detects a hardware or software malfunction and restart during system operation, the DDR SDRAM data (configuration data) in the service processing system will be cleared. This prevents the virtual device from correctly providing services to the host side, causing service interruption for users. In this situation, the virtual device generates an anomaly flag. The processor can perform anomaly detection on the virtual device through cross-system register checks. When an anomaly flag is detected, the processor sends the acquired configuration data to the virtual device.

[0160] S603 receives configuration data, performs data recovery based on the configuration data, and provides virtualization services to the host.

[0161] The virtualization service can include mapping a PF to multiple VFs, each of which can be bound to a virtual machine to create diverse virtual environments for the host. Examples include creating virtual network adapters and virtual disks for the host; however, this embodiment does not impose specific limitations.

[0162] S604 returns a recovery success message to the processor after successful data recovery.

[0163] Specifically, after successful data recovery, the virtual device can generate a recovery success message and send it to the processor.

[0164] In this embodiment, after the business system starts, the processor obtains configuration data from the configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly flag indicates that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor obtains configuration data in advance. When the processor detects an anomaly flag, it sends the obtained configuration data to the virtual device, enabling the virtual device to quickly complete data recovery based on the received configuration data. This embodiment enables the virtual device to quickly recover the information before the anomaly in the event of a hardware or software abnormal restart, provide the business services before the anomaly, and ensure that the host-side user is unaware of the anomaly, ensuring the stable and uninterrupted operation of the business system and effectively improving the user experience.

[0165] This application provides one possible implementation method, such as... Figure 7 As shown, the data acquisition request sent by the receiving processor, in response to the data acquisition request, sends pre-generated configuration data to the processor, including:

[0166] After the business processing system starts, S701 responds to the enable command sent by the host, generates an enable tag, so that the processor can query and obtain the enable tag and send an information acquisition request to the virtual device.

[0167] Specifically, the host sends an enable command to the virtual device. After the virtual device successfully enables the command, it generates an enable tag. The processor can query the virtual device through the management components included in the processor at preset time intervals. When the enable tag is found, a data request is sent to the virtual device.

[0168] S702, in response to an information retrieval request, sends pre-generated basic configuration data as configuration data to the processor.

[0169] The aforementioned basic configuration data may include the attribute information of the virtual device, which is not updated after being saved. For example, the virtual device may be the attribute information of a virtual device module generated by mapping the system's physical device module. This virtual device module is bound to a system virtual machine, which runs on the host side and provides virtualization functionality to the host side. This virtual device module may include network cards, disks, etc., and is not specifically limited in this embodiment.

[0170] S703, in response to the device operation command sent by the host, generates an incremental tag so that the processor can query and obtain the incremental tag and send an information retrieval request to the virtual device.

[0171] Specifically, the host can respond to user commands by sending device operation instructions to the virtual device, which in turn generates an incremental tag. When the processor retrieves this incremental tag through its management components, it sends an information retrieval request to the virtual device.

[0172] S704, in response to an information retrieval request, sends pre-generated incremental configuration data as configuration data to the processor.

[0173] The incremental configuration data mentioned above may include configuration change attribute information of virtual devices, which can be updated in real time according to the host's device operation commands. For example, the configuration change attribute information of the virtual device module generated by mapping the system's physical device modules; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver for the network card, whether to enable it, etc.

[0174] To better understand the data processing methods described above, the following section will combine... Figure 8 A detailed example of a data processing method according to this application is provided, which includes the following steps:

[0175] S801: After the business processing system starts up, the virtual device starts to power on. The host sends an enable command to the virtual device. After the virtual device responds to the enable command and successfully enables, it generates an enable tag.

[0176] S802, the processor queries the virtual device through the management components included in the processor based on a preset time interval. When an enable tag is found, a data request is sent to the virtual device.

[0177] S803, the virtual device responds to the data request by sending basic configuration data to the processor; the processor obtains the basic configuration data and stores it as configuration data in the preset storage space.

[0178] The aforementioned basic configuration data may include the attribute information of the virtual device, which is not updated after being saved. For example, the virtual device may be the attribute information of a virtual device module generated by mapping the system's physical device module. This virtual device module is bound to a system virtual machine, which runs on the host side and provides virtualization functionality to the host side. This virtual device module may include network cards, disks, etc., and is not specifically limited in this embodiment.

[0179] In S804, the host can respond to user commands by sending device operation commands to the virtual device, and the virtual device can respond to the device operation commands by generating incremental tags.

[0180] S805: When the processor obtains the incremental tag through the management components included in the processor, it sends a data request to the virtual device.

[0181] S806, the virtual device responds to the data request by sending incremental configuration data to the processor; the processor receives the incremental configuration data and stores it as configuration data in the preset storage space.

[0182] The incremental configuration data mentioned above may include configuration change attribute information of virtual devices, which can be updated in real time according to the host's device operation commands. For example, the configuration change attribute information of the virtual device module generated by mapping the system's physical device modules; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver for the network card, whether to enable it, etc.

[0183] S807: The processor performs anomaly detection on virtual devices through cross-system registers based on preset time intervals; when a virtual device experiences an abnormal cold start due to hardware failure during operation, a system hardware failure identifier is generated; when the processor obtains the above system hardware failure identifier through the cross-system registers, it initiates a cold restart recovery procedure to send configuration data to the virtual device.

[0184] S808: When a virtual device experiences an abnormal hot restart due to a software malfunction during operation, it begins counting. When the number of abnormal hot restarts detected by the virtual device within a preset time period exceeds a preset value, it will clear the configuration data in the system to initialize the device and then generate a system software malfunction identifier.

[0185] S809, the processor sends a hot restart recovery command to the virtual device; upon receiving the hot restart recovery command, the virtual device retrieves the pre-backed configuration data from the virtual device's preset storage area and performs data recovery.

[0186] S810: When the virtual device cannot obtain the pre-backed-up configuration data from the preset storage area, it generates a recovery failure message and sends the recovery failure message to the processor. After receiving the recovery failure message, the processor sends the configuration data to the virtual device so that the virtual machine can complete the data recovery.

[0187] After the virtual device successfully restores data based on the configuration data obtained from the processor, it can quickly resume the virtualization services provided to the host and send a recovery success message to the processor.

[0188] S812: After receiving a recovery success message from the virtual device, the processor retrieves new configuration data from the virtual device after data recovery.

[0189] The new configuration data is used to enable the virtual device to recover data the next time an anomaly is detected. This new configuration data includes incremental configuration data, which is updated in real time based on the host's device operation commands.

[0190] In this embodiment, after the business system starts, the processor obtains configuration data from the configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly flag indicates that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor obtains configuration data in advance. When the processor detects an anomaly flag, it sends the obtained configuration data to the virtual device, enabling the virtual device to quickly complete data recovery based on the received configuration data. This embodiment enables the virtual device to quickly recover the information before the anomaly in the event of a hardware or software abnormal restart, provide the business services before the anomaly, and ensure that the host-side user is unaware of the anomaly, ensuring the stable and uninterrupted operation of the business system and effectively improving the user experience.

[0191] This application provides a data processing apparatus, such as... Figure 9 As shown, the data processing device 90 may include: an acquisition module 901, a detection module 902, and a transmission module 903;

[0192] The acquisition module 901 is used to acquire configuration data from the virtual device after the business processing system is started and the virtual device is configured; the configuration data is used to represent the virtual configuration of the business processing system.

[0193] Detection module 902 is used to perform anomaly detection on virtual devices based on a preset time interval;

[0194] The sending module 903 is used to send the acquired configuration data to the virtual device when an anomaly identifier is detected, so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; wherein, the anomaly identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0195] This application provides a possible implementation method, wherein the above configuration data includes basic configuration data;

[0196] When obtaining configuration data from a virtual device, the aforementioned acquisition module 901 is used for:

[0197] Information is queried from virtual devices based on preset time intervals;

[0198] When the enable tag is found, an information retrieval request is sent to the virtual device to obtain the basic configuration data of the virtual device; the enable tag is generated by the virtual device in response to the enable command sent by the host.

[0199] Store basic configuration data.

[0200] This application provides a possible implementation method, wherein the above configuration data includes incremental configuration data;

[0201] The acquisition module 901 is also used for:

[0202] Once an incremental tag is retrieved, the incremental configuration data corresponding to the incremental tag is obtained from the virtual device; the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

[0203] Enhanced storage configuration data.

[0204] This application provides a possible implementation method, wherein the above-mentioned anomaly identifier includes a system hardware anomaly identifier;

[0205] When the aforementioned sending module 903 detects an anomaly flag and sends the acquired configuration data to the virtual device, it is used to:

[0206] When a system hardware anomaly flag is detected, a cold restart recovery procedure is initiated to send configuration data to the virtual device; the hardware anomaly flag is generated after the virtual device recognizes the hardware anomaly and performs a cold restart.

[0207] This application provides a possible implementation method, wherein the above-mentioned anomaly identifier includes a system software anomaly identifier;

[0208] When the aforementioned sending module 903 detects an anomaly flag and sends the acquired configuration data to the virtual device, it is used to:

[0209] When a system software anomaly is detected, a hot restart recovery command is sent to the virtual device. The system software anomaly is generated after the virtual device initializes itself when the number of hot restarts detected by the virtual device within a preset time period exceeds a preset value.

[0210] When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device. The recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

[0211] This application provides a possible implementation, and the above-described apparatus further includes a receiving module, used for:

[0212] Receive a recovery success message returned by the virtual device; the recovery success message is sent by the virtual device after the data recovery is successful.

[0213] Obtain new configuration data from the virtual device after data recovery; this new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly flag is detected.

[0214] This application provides a data processing apparatus, such as... Figure 10 As shown, the data processing device 100 may include: a response module 1001, a generation module 1002, a recovery module 1003, and a return module 1004;

[0215] The response module 1001 is used to receive a data acquisition request sent by the processor and send pre-generated configuration data to the processor in response to the data acquisition request; wherein the data acquisition request is generated by the processor after the business processing system starts and the data processing device is configured; the configuration data is used to characterize the virtual configuration of the business processing system;

[0216] The generation module 1002 is used to generate an exception identifier when an abnormal restart is detected in the business processing system, so that the processor queries the exception identifier, sends configuration data to the data processing device, and provides virtualization services to the host; wherein, the exception identifier is used to indicate that the data processing device has experienced a hardware or software abnormal restart.

[0217] Recovery module 1003 is used to receive configuration data and perform data recovery based on the configuration data;

[0218] The return module 1004 is used to return a recovery success message to the processor after successful data recovery.

[0219] This application embodiment provides a possible implementation method in which the response module 1001, upon receiving a data acquisition request from the processor and responding to the data acquisition request by sending pre-generated configuration data to the processor, is configured to:

[0220] After the business processing system starts, in response to the enable command sent by the host, an enable tag is generated so that the processor can query and obtain the enable tag and send an information acquisition request to the virtual device.

[0221] In response to an information retrieval request, the pre-generated basic configuration data is sent to the processor as configuration data;

[0222] In response to the device operation command sent by the host, an incremental tag is generated so that the processor can query and obtain the incremental tag and send an information retrieval request to the virtual device;

[0223] In response to an information retrieval request, pre-generated incremental configuration data is sent to the processor as configuration data.

[0224] The apparatus in this application embodiment can execute the method provided in this application embodiment, and the implementation principle is similar. The actions performed by each module in the apparatus of each embodiment of this application correspond to the steps in the method of each embodiment of this application. For detailed functional descriptions of each module of the apparatus, please refer to the descriptions in the corresponding methods shown above, which will not be repeated here.

[0225] In this embodiment, after the business system starts, the processor obtains configuration data from the configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly flag indicates that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor obtains configuration data in advance. When the processor detects an anomaly flag, it sends the obtained configuration data to the virtual device, enabling the virtual device to quickly complete data recovery based on the received configuration data. This embodiment enables the virtual device to quickly recover the information before the anomaly in the event of a hardware or software abnormal restart, provide the business services before the anomaly, and ensure that the host-side user is unaware of the anomaly, ensuring the stable and uninterrupted operation of the business system and effectively improving the user experience.

[0226] This application provides an electronic device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of a data processing method. Compared with related technologies, this application provides the following: After the business system starts, the processor obtains configuration data from a configured virtual device and performs anomaly detection on the virtual device based on a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, enabling the virtual device to perform data recovery based on the received configuration data and provide virtualization services to the host. After successful data recovery, the virtual device sends a recovery success message to the processor. Since the anomaly identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared. Without the configuration data, the virtual device cannot provide services normally. In this embodiment, after the business system starts, the processor pre-acquires the configuration data. When the processor detects the anomaly identifier, it sends the acquired configuration data to the virtual device, enabling the virtual device to quickly recover data based on the received configuration data. This embodiment enables the virtual device to quickly recover its pre-abnormal information and provide the business services it provided before the anomaly in the event of a hardware or software abnormal restart. It also ensures that the host-side user is unaware of the anomaly, guaranteeing the uninterrupted and stable operation of the business system and effectively improving the user experience.

[0227] In one alternative embodiment, an electronic device is provided, such as Figure 11 As shown, Figure 11 The illustrated electronic device 1100 includes a processor 1101 and a memory 1103. The processor 1101 and the memory 1103 are connected, for example, via a bus 1102. Optionally, the electronic device 1100 may further include a transceiver 1104, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 1104 is not limited to one type, and the structure of the electronic device 1100 does not constitute a limitation on the embodiments of this application.

[0228] Processor 1101 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1101 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0229] Bus 1102 may include a pathway for transmitting information between the aforementioned components. Bus 1102 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 1102 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0230] The memory 1103 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0231] The memory 1103 is used to store computer programs that execute the embodiments of this application, and the execution is controlled by the processor 1101. The processor 1101 is used to execute the computer programs stored in the memory 1103 to implement the steps shown in the foregoing method embodiments.

[0232] Electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, and tablets, as well as fixed terminals such as digital TVs and desktop computers.

[0233] This application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0234] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the following actions:

[0235] After the business processing system starts up and the virtual device is configured, configuration data is obtained from the virtual device; the configuration data is used to represent the virtual configuration of the business processing system.

[0236] Perform anomaly detection on virtual devices based on preset time intervals;

[0237] When an anomaly flag is detected, the acquired configuration data is sent to the virtual device so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; the anomaly flag is used to indicate that the virtual device has experienced a hardware or software abnormal restart.

[0238] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text.

[0239] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0240] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. A data processing method applied to a processor in a business processing system, the business processing system further comprising a virtual device and a host, characterized in that, include: After the business processing system is started and the virtual device is configured, configuration data is obtained from the virtual device; wherein, the configuration data is used to characterize the virtual configuration of the business processing system, and the configuration data includes incremental configuration data; Anomaly detection is performed on the virtual device based on a preset time interval; When an anomaly flag is detected, the acquired configuration data is sent to the virtual device so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; wherein, the anomaly flag is used to indicate that the virtual device has experienced a hardware or software abnormal restart; The step of obtaining configuration data from the virtual device includes: Information is queried from virtual devices based on preset time intervals; When an incremental tag is obtained, the incremental configuration data corresponding to the incremental tag is retrieved from the virtual device; wherein, the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

2. The method according to claim 1, characterized in that, The configuration data includes basic configuration data; The step of obtaining configuration data from the virtual device further includes: When an enable tag is found, an information retrieval request is sent to the virtual device to obtain the basic configuration data of the virtual device; wherein, the enable tag is generated by the virtual device in response to an enable command sent by the host; Store the basic configuration data.

3. The method according to claim 1, characterized in that, The method further includes: Store the incremental configuration data.

4. The method according to claim 1, characterized in that, The anomaly identifier includes a system hardware anomaly identifier; The step of sending the acquired configuration data to the virtual device when an anomaly identifier is detected includes: When a system hardware anomaly identifier is detected, a cold restart recovery procedure is initiated to send configuration data to the virtual device; wherein, the hardware anomaly identifier is generated after the virtual device recognizes the hardware anomaly and performs a cold restart.

5. The method according to claim 1, characterized in that, The anomaly identifier includes system software anomaly identifiers; The step of sending the acquired configuration data to the virtual device when an anomaly identifier is detected includes: When a system software anomaly is detected, a hot restart recovery command is sent to the virtual device. The system software anomaly is generated after the virtual device initializes itself when the number of hot restarts detected by the virtual device within a preset time period exceeds a preset value. When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device; wherein, the recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

6. The method according to claim 1, characterized in that, The method further includes: Receive a recovery success message returned by the virtual device; wherein the recovery success message is sent by the virtual device after the data recovery is successful; New configuration data is obtained from the virtual device after data recovery; wherein, the new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly identifier is detected.

7. A data processing method applied to a virtual device in a business processing system, the business processing system further comprising a processor and a host, characterized in that, include: Receiving a data acquisition request sent by the processor, and in response to the data acquisition request sending pre-generated configuration data to the processor, includes: after the business processing system starts, in response to an enable instruction sent by the host, generating an enable tag so that the processor can query and obtain the enable tag, and sending an information acquisition request to the virtual device; in response to the information acquisition request, sending pre-generated basic configuration data as configuration data to the processor; in response to a device operation instruction sent by the host, generating an incremental tag so that the processor can query and obtain the incremental tag, and sending an information acquisition request to the virtual device; in response to the information acquisition request, sending pre-generated incremental configuration data as configuration data to the processor; wherein, the data acquisition request is generated by the processor after the business processing system starts and the virtual device is configured; the configuration data is used to characterize the virtual configuration of the business processing system; When an abnormal restart is detected in the business processing system, an abnormal identifier is generated, so that the processor queries the abnormal identifier and sends configuration data to the virtual device; wherein, the abnormal identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart; Receive the configuration data, perform data recovery based on the configuration data, and provide virtualization services to the host; After successful data recovery, a recovery success message is returned to the processor.

8. A data processing apparatus, applied to a processor in a business processing system, the business processing system further comprising a virtual device and a host, characterized in that, include: The acquisition module is used to acquire configuration data from the virtual device after the business processing system is started and the virtual device is configured; wherein, the configuration data is used to characterize the virtual configuration of the business processing system, and the configuration data includes incremental configuration data; The detection module is used to perform anomaly detection on the virtual device based on a preset time interval; The sending module is used to send the acquired configuration data to the virtual device when an anomaly identifier is detected, so that the virtual device can perform data recovery based on the received configuration data and provide virtualization services to the host; wherein, the anomaly identifier is used to indicate that the virtual device has experienced a hardware or software abnormal restart; Specifically, when the acquisition module is used to acquire configuration data from the virtual device, it is used for: Information is queried from virtual devices based on preset time intervals; When an incremental tag is obtained, the incremental configuration data corresponding to the incremental tag is retrieved from the virtual device; wherein, the incremental tag is generated by the virtual device in response to the device operation command sent by the host.

9. The apparatus according to claim 8, characterized in that, The configuration data includes basic configuration data; When the acquisition module is used to acquire configuration data from the virtual device, it is also used to: When the enable tag is found, an information retrieval request is sent to the virtual device to obtain the basic configuration data of the virtual device; the enable tag is generated by the virtual device in response to the enable command sent by the host. Store basic configuration data.

10. The apparatus according to claim 8, characterized in that, The acquisition module is also used for: Store incremental configuration data.

11. The apparatus according to claim 8, characterized in that, The anomaly identifier includes a system hardware anomaly identifier; When the sending module detects an anomaly flag and sends the acquired configuration data to the virtual device, it is used to: When a system hardware anomaly flag is detected, a cold restart recovery procedure is initiated to send configuration data to the virtual device; the hardware anomaly flag is generated after the virtual device recognizes the hardware anomaly and performs a cold restart.

12. The apparatus according to claim 8, characterized in that, The anomaly identifier includes system software anomaly identifiers; When the sending module detects an anomaly flag and sends the acquired configuration data to the virtual device, it is used to: When a system software anomaly is detected, a hot restart recovery command is sent to the virtual device. The system software anomaly is generated after the virtual device initializes itself when the number of hot restarts detected by the virtual device within a preset time period exceeds a preset value. When a recovery failure message is received from the virtual device, configuration data is sent to the virtual device. The recovery failure message is generated and sent to the processor when the virtual device is unable to obtain configuration data from the preset storage area.

13. The apparatus according to claim 8, characterized in that, The device further includes a receiving module for: Receive a recovery success message returned by the virtual device; the recovery success message is sent by the virtual device after the data recovery is successful. Obtain new configuration data from the virtual device after data recovery; this new configuration data is used to enable the virtual device to perform data recovery the next time an anomaly flag is detected.

14. A data processing apparatus, applied to a virtual device in a business processing system, the business processing system further comprising a processor and a host, characterized in that, include: A response module is configured to receive a data acquisition request sent by the processor, and in response to the data acquisition request, send pre-generated configuration data to the processor. Specifically, it is configured to: after the business processing system starts, in response to an enable instruction sent by the host, generate an enable tag so that the processor can query and obtain the enable tag, and send an information acquisition request to the virtual device; in response to the information acquisition request, send pre-generated basic configuration data as configuration data to the processor; in response to a device operation instruction sent by the host, generate an incremental tag so that the processor can query and obtain the incremental tag, and send an information acquisition request to the virtual device; in response to the information acquisition request, send pre-generated incremental configuration data as configuration data to the processor; wherein, the data acquisition request is generated by the processor after the business processing system starts and the data processing device is configured; the configuration data is used to characterize the virtual configuration of the business processing system; A generation module is used to generate an exception identifier when an abnormal restart is detected in the business processing system, so that the processor queries the exception identifier and sends configuration data to the data processing device; wherein, the exception identifier is used to indicate that the data processing device has experienced a hardware or software abnormal restart; The recovery module is used to receive the configuration data and perform data recovery based on the configuration data; The return module is used to return a recovery success message to the processor after successful data recovery.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • System and method for automatically recovering abnormity of peripheral device interconnection expansion equipment

    CN116795605A