Data processing method and device, electronic equipment and computer readable storage medium

By acquiring and storing the configuration data of the virtual device in the DPU processor and recovering data when an exception is detected, the business interruption caused by the DPU processor after hardware failure is solved, and the stable operation of the system and the improvement of user experience is achieved.

CN120020736APending Publication Date: 2025-05-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311557609.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

After hardware failure, existing DPU processors will clear the data in the user's configuration space, resulting in business interruption and cannot ensure the stable operation of the system.

Method used

After the service processing system is started, configuration data is obtained from the virtual device and abnormal detection is performed on the virtual device based on the preset time interval. When an exception identifier is detected, the acquired configuration data is sent to the virtual device, causing it to recover data, and provides virtualization services to the host.

Benefits of technology

It realizes that when a hardware or software abnormal restart occurs, the virtual device can quickly restore the information before the abnormality and provide business services before the abnormality to the outside world, ensuring that the host-side users are insensitive to the abnormality and ensuring the stable operation of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120020736A_ABST
    Figure CN120020736A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of big data calculation. The method comprises the steps of obtaining configuration data from virtual equipment after a service processing system is started and the configuration of the virtual equipment is completed; performing anomaly detection on the virtual equipment based on a preset time interval; and when the abnormal identifier is detected, sending the acquired configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data. The embodiment of the invention can be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic, auxiliary driving and the like, the configuration data is acquired in advance through the processor, the virtual equipment can quickly recover the information before the exception under the scene that the hardware or software is restarted abnormally, the business service before the exception is provided for the outside, and the user experience is improved. And it can be ensured that a host-side user does not feel system abnormity, and the user experience is improved.
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. Specifically, this application relates to a data processing method, apparatus, electronic device, and computer-readable storage medium. Background Art

[0002] With the rapid development of cloud computing, DPU (Data Processing Unit) has been widely applied to various business systems to meet the growing network and storage needs of users. Cloud computing requires business systems to provide reliable and stable services to ensure the uninterrupted operation of user services. DPU serves cloud computing, and its main role is to improve the efficiency of computing power infrastructure such as data centers, reduce energy consumption waste, and thus reduce costs.

[0003] In the prior art, DPU processors generally use hardware or a combination of hardware and software to simulate host-side devices to complete virtualization work. For example, the current mainstream network cards in the market mainly use the hardware response TLP (Transaction Layer Packet) method to present the device topology to the host to respond to user operations. In the hardware response TLP scheme, when a hardware failure occurs, the hardware virtual device will perform a reset operation, which will clear the data in the user configuration space, causing the host-side service to fail to run normally, resulting in service interruption and unable to ensure the stable operation of the system. Summary of the Invention

[0004] Embodiments of this application provide a data processing method, apparatus, electronic device, and computer-readable storage medium, which can solve the problem of service interruption caused by a failure of the business system. The technical solutions are as follows:

[0005] According to one aspect of the embodiments of this application, a data processing method is provided, which is applied to a processor in a service processing system. The service processing system further includes a virtual device and a host. The method includes:

[0006] After the service processing system is started and the virtual device configuration is completed, obtain configuration data from the virtual device; wherein, the configuration data is used to represent the virtual configuration of the service processing system;

[0007] Perform anomaly detection on the virtual device based on a preset time interval;

[0008] When an anomaly flag is detected, send the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; wherein, the anomaly flag is used to represent that the virtual device has a hardware or software anomaly restart.

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

[0010] The above obtaining configuration data from the virtual device includes:

[0011] Querying information of the virtual device based on a preset time interval;

[0012] When an enable tag is obtained through the query, sending an information acquisition request 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 instruction sent by the host;

[0013] Storing the basic configuration data.

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

[0015] The method further includes:

[0016] When an incremental tag is obtained through the query, obtaining the incremental configuration data corresponding to the incremental tag from the virtual device; wherein, the incremental tag is generated by the virtual device in response to a device operation instruction sent by the host;

[0017] Storing the enhanced configuration data.

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

[0019] The above sending the obtained configuration data to the virtual device when an exception identifier is detected includes:

[0020] When a system hardware exception identifier is detected, initiating a cold restart recovery program to send configuration data to the virtual device; wherein, the hardware exception identifier is generated after the virtual device recognizes a hardware exception and performs a cold restart.

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

[0022] The above sending the obtained configuration data to the virtual device when an exception identifier is detected includes:

[0023] When a system software exception identifier is detected, sending a hot restart recovery instruction to the virtual device; wherein, the system software exception identifier is generated after the virtual device initializes the device when the number of software exception hot restarts detected within a preset time period exceeds a preset value;

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

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

[0026] Receiving 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;

[0027] Obtaining new configuration data from the virtual device after the data recovery; wherein, the new configuration data is used to cause the virtual device to perform data recovery when an exception identifier is detected next time.

[0028] According to another aspect of the embodiments of the present application, a data processing method is provided, which is applied to a virtual device in a service processing system. The service processing system further includes a processor and a host. The method includes:

[0029] Receiving a data acquisition request sent by the processor, and sending 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 service processing system is started and the virtual device configuration is completed; the configuration data is used to represent the virtual configuration of the service processing system;

[0030] When detecting an abnormal restart in the service processing system, generating an exception identifier to cause the processor to query the exception identifier and send configuration data to the virtual device; wherein, the exception identifier is used to represent that the virtual device has a hardware or software abnormal restart;

[0031] Receiving the configuration data, performing data recovery based on the configuration data, and providing virtualization services to the host;

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

[0033] In another possible implementation, the above receiving a data acquisition request sent by the processor and sending pre-generated configuration data to the processor in response to the data acquisition request includes:

[0034] After the service processing system is started, in response to an enable instruction sent by the host, generating an enable label to cause the processor to query the enable label and send an information acquisition request to the virtual device;

[0035] In response to the information acquisition request, sending the pre-generated basic configuration data as the configuration data to the processor;

[0036] In response to a device operation instruction sent by the host, generating an increment label to cause the processor to query the increment label and send an information acquisition request to the virtual device;

[0037] In response to the information acquisition request, sending the pre-generated incremental configuration data as the configuration data to the processor.

[0038] According to another aspect of the embodiments of the present application, a data processing device is provided, and the device includes:

[0039] An acquisition module, configured to obtain configuration data from a virtual device after the business processing system is started and the virtual device configuration is completed; wherein, the configuration data is used to characterize the virtual configuration of the business processing system.

[0040] A detection module, configured to perform anomaly detection on the virtual device based on a preset time interval.

[0041] A sending module, configured to send the obtained configuration data to the virtual device when an anomaly identifier is detected, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; wherein, the anomaly identifier is used to characterize that the virtual device has a hardware or software anomaly restart.

[0042] In a possible implementation manner, the above configuration data includes basic configuration data.

[0043] When the above acquisition module obtains configuration data from the virtual device, it is configured to:

[0044] Query information of the virtual device based on a preset time interval.

[0045] When an enable tag is queried, an information acquisition 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 instruction sent by the host.

[0046] Store the basic configuration data.

[0047] In a possible implementation manner, the above configuration data includes incremental configuration data.

[0048] The acquisition module is further configured to:

[0049] When an incremental tag is queried, obtain the incremental configuration data corresponding to the incremental tag from the virtual device; wherein, the incremental tag is generated by the virtual device in response to a device operation instruction sent by the host.

[0050] Store the enhanced configuration data.

[0051] In yet another possible implementation manner, the above anomaly identifier includes a system hardware anomaly identifier; when the sending module detects the anomaly identifier and sends the obtained configuration data to the virtual device

[0052] it is configured to:

[0053] When detecting the system hardware anomaly identifier, initiate a cold restart recovery program to send configuration data to the virtual device; wherein, the hardware anomaly identifier is generated after the virtual device recognizes a hardware anomaly cold restart.

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

[0055] When the above sending module detects an abnormal identifier and sends the obtained configuration data to the virtual device, it is used for:

[0056] When detecting a system software abnormal identifier, it sends a hot restart recovery instruction to the virtual device; wherein, the system software abnormal identifier is generated after device initialization when the number of software abnormal hot restarts detected by the virtual device exceeds a preset value within a preset time period;

[0057] When receiving a recovery failure message sent by the virtual device, it sends configuration data to the virtual device; wherein, the recovery failure message is generated when the virtual device fails to obtain configuration data from a preset storage area and is sent to the processor.

[0058] In another possible implementation, the above device further includes a receiving module, which is used for:

[0059] Receiving a recovery success message returned by the virtual device; wherein, the recovery success message is sent by the virtual device after successful data recovery;

[0060] Obtaining new configuration data from the virtual device after data recovery; wherein, the new configuration data is used to enable the virtual device to perform data recovery when an abnormal identifier is detected next time.

[0061] According to another aspect of the embodiments of the present application, another data processing device is provided, and the device includes:

[0062] A response module, configured 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 is started and the data processing device is configured; the configuration data is used to represent the virtual configuration of the business processing system;

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

[0064] A recovery module, configured to receive the configuration data and perform data recovery based on the configuration data;

[0065] A return module, configured to return a recovery success message to the processor after successful data recovery.

[0066] In another possible implementation, when the above response module receives a data acquisition request sent by 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 is started, in response to an enabling instruction sent by the host, generate an enabling label so that the processor can query the enabling label and send an information acquisition request to the virtual device;

[0068] In response to the information acquisition request, send the pre-generated basic configuration data as the configuration data to the processor;

[0069] In response to a device operation instruction sent by the host, generate an incremental label so that the processor can query the incremental label and send an information acquisition request to the virtual device;

[0070] In response to the information acquisition request, send the pre-generated incremental configuration data as the configuration data to the processor.

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

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

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

[0074] The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:

[0075] After the business system is started in an embodiment of the present application, the processor obtains configuration data from the configured virtual device, and performs anomaly detection on the virtual device at preset time intervals. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; the virtual device sends a recovery success message to the processor after the data recovery is successful. Since the anomaly flag is used to indicate that the virtual device has a hardware or software anomaly restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot provide services normally without the configuration data; in an embodiment of the present application, after the business system is started, the processor pre-obtains the configuration data, and when the processor detects the anomaly flag, it sends the obtained configuration data to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of a hardware or software anomaly restart, the virtual device can quickly restore the information before the anomaly, provide the business services before the anomaly externally, and ensure that the host-side user is insensitive to the anomaly, ensuring the stable operation of the business system without interruption and effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description in the embodiments of the present application.

[0077] Figure 1 It is a schematic diagram of an application scenario of a data processing method provided by an embodiment of the present application;

[0078] Figure 2 It is a schematic flowchart of a data processing method provided by an embodiment of the present application;

[0079] Figure 3 It is a schematic flowchart of obtaining configuration data in a data processing method provided by an embodiment of the present application;

[0080] Figure 4 It is a schematic flowchart of obtaining incremental configuration data in a data processing method provided by an embodiment of the present application;

[0081] Figure 5 It is a schematic flowchart of recovering from a software anomaly in a data processing method provided by an embodiment of the present application;

[0082] Figure 6 It is a schematic flowchart of another data processing method provided by an embodiment of the present application;

[0083] Figure 7 It is a schematic flowchart of sending configuration data in a data processing method provided by an embodiment of the present application;

[0084] Figure 8 A schematic flowchart of a data processing method for an example provided by an embodiment of the present application;

[0085] Figure 9 A schematic structural diagram of a data processing device provided by an embodiment of the present application;

[0086] Figure 10 A schematic structural diagram of another data processing device provided by an embodiment of the present application;

[0087] Figure 11 A schematic structural diagram of a data processing electronic device provided by an embodiment of the present application. Detailed implementation manners

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

[0089] Those skilled in the art of the present technology can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the", and "said" used herein may also include the plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements, and / or components, but do not exclude being implemented as other features, information, data, steps, operations, elements, components, and / or their combinations supported by the art of the present technology. It should be understood that when we say an element is "connected" or "coupled" to another element, this element can be directly connected or coupled to the other element, or it can mean that this element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein can include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by this term. For example, "A and / or B" can be implemented as "A", or implemented as "B", or implemented as "A and B".

[0090] To make the purpose, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the drawings.

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

[0092] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data computing, storage, processing, and sharing. Cloud technology is the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application. It can form a resource pool, be used on demand, and is flexible and convenient. Cloud computing technology will become an important support. The back-end services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-based websites, and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark and needs to be transmitted to the back-end system for logical processing. Data at different levels will be processed separately, and various industry data requires a powerful system back-end support, which can only be achieved through cloud computing.

[0093] Cloud computing refers to the delivery and usage model of IT infrastructure, which means obtaining the required resources in a on-demand and easily scalable manner through the network; in a broad sense, cloud computing refers to the delivery and usage model of services, which means obtaining the required services in a on-demand and easily scalable manner through the network. Such services can be related to IT and software, the Internet, or other services. Cloud computing is the 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 Balance.

[0094] With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the promotion of demands such as search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Different from the previous parallel distributed computing, the emergence of cloud computing will drive a revolutionary change in the entire Internet model and enterprise management model conceptually.

[0095] Optionally, the data processing method provided in the embodiments of the present application can be used for big data processing. For example, the processor in the embodiments of the present application can be a DPU processor, which can provide high-efficient big data processing capabilities for the business system.

[0096] Big data refers to a collection of data that cannot be captured, managed, and processed by conventional software tools within a certain time range. It is a massive, high-growth-rate, and diverse information asset that requires new processing models to have stronger decision-making power, insight discovery ability, and process optimization ability. With the advent of the cloud era, big data has attracted more and more attention. Big data requires special technologies to effectively process a large amount of data tolerated over time. Technologies applicable to 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 move towards being data-centric, the performance of the CPU (Central Processing Unit) has fallen far behind the growth rate of data. GPU (graphics processing unit) accelerated computing has become the main force in computing, greatly enhancing the computing performance of a single processor and a single machine. The traditional way of using the CPU to handle infrastructure operations such as security, communication, storage, and virtualization in the data center has gradually become a bottleneck for the growth of computing performance, and the resource conflict between computing and infrastructure support functions for the CPU has become more intense.

[0098] The emergence of the DPU offloads these infrastructure operations from the CPU to the DPU, realizing the combination of software-defined and hardware-accelerated aspects such as security, communication, storage, and virtualization, releasing the computing resources of the CPU, and better supporting the needs of applications.

[0099] In the current market, DPU processors generally use hardware to simulate host-side devices, and can also use a software-hardware collaborative approach to simulate host-side devices. The above virtual devices running in the embedded system will have their configuration data cleared after the business system undergoes abnormal cold or hot restarts, and do not have the ability to recover from exceptions, resulting in business interruptions and affecting the application user experience.

[0100] The data processing method, device, electronic device, and computer-readable storage medium provided in this application aim to solve the above technical problems in the prior art.

[0101] The technical solutions of the embodiments of this application and the technical effects produced by the technical solutions of this application will be described below through the description of several exemplary embodiments. It should be noted that the following embodiments can refer to, draw on, or combine with each other. For the same terms, similar features, and similar implementation steps in different embodiments, they will not be described repeatedly.

[0102] As Figure 1 shown, the data processing method of this application can be applied to Figure 1In the scenario shown, the service processing system 10 may include a processor 103, a virtual device 102, and a host 101. Among them, the virtual device 102 may be used to provide virtualization services for the host 101 side. Specifically, after the service processing system 10 is started, the processor 103 may pre-obtain configuration data from the configured virtual device 102, and then the processor 103 performs anomaly detection on the virtual device 102 at preset time intervals. When an anomaly flag is detected, the processor 103 may send the obtained configuration data to the virtual device 102 so that the virtual device 102 performs data recovery based on the received configuration data. After the data recovery of the virtual device 102 is successful, a recovery success message is sent to the processor 103 to inform the processor 103 that the service processing system has completed data recovery.

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

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

[0105] An embodiment of the present application provides a data processing method, as Figure 2 shown, which can be applied to the processor in the service processing system. Among them, the service processing system may further include a virtual device and a host. The method includes:

[0106] S201, after the service processing system is started and the virtual device configuration is completed, obtain configuration data from the virtual device.

[0107] Among them, the configuration data is used to represent the virtual configuration of the service processing system; the above processor may be a DPU processor; the virtual device may be a software and hardware collaborative simulation device, which can be used to provide virtualization services for the host side. The above service processing system may be a service system providing cloud computing services.

[0108] For example, the virtual device may be an SR-IOV (Single Root I / O Virtualization) device. At the operating system layer, SR-IOV can create at least one virtual function device (VF, Virtual Function) under all peripheral physical devices PF (Physical Function). VFs can share the physical resources of the peripheral device (such as a network card port or network card cache space) and be associated with the virtual machine system on the SR-IOV server. SR-IOV can allow a physical PCIe device to virtualize itself into multiple virtual PCIe devices. In the embodiments of the present application, an SR-IOV device can be used to map a PF into multiple VFs, and each VF can be bound to a virtual machine to create diverse virtual environments for the host.

[0109] Specifically, after the service processing system is started, the virtual device starts to power on. When the processor queries at least one of the enable label and the increment label from the virtual device, it obtains configuration data from the configured virtual device; wherein, the enable label is generated by the virtual device in response to an enable instruction sent by the host; the increment label is generated by the virtual device in response to a device operation instruction sent by the host.

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

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

[0112] In the embodiments of the present application, when the virtual device has a hardware or software anomaly restart during operation, the DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory) data in the service processing system, that is, the configuration data, will be cleared, resulting in the virtual device being unable to correctly provide relevant services to the host side and causing the user service to be interrupted.

[0113] Specifically, the above anomaly identifier may include a system hardware anomaly identifier and a system software anomaly identifier; the processor can perform anomaly detection on the virtual device through cross-system register detection. When an anomaly identifier is detected, it sends the obtained configuration data to the virtual device. After the virtual device successfully performs data recovery based on the configuration data obtained from the processor, it can quickly resume providing virtualization services to the host, ensuring the system stability and the host side users being unaware of the anomaly.

[0114] After the business system in the embodiment of the present application is started, the processor obtains configuration data from the configured virtual device, and performs anomaly detection on the virtual device at a preset time interval. When an anomaly flag is detected, the obtained configuration data is sent to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; after the data recovery of the virtual device is successful, a recovery success message is sent to the processor. Since the anomaly flag is used to indicate that the virtual device has a hardware or software anomaly restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot normally provide services externally without configuration data; in the embodiment of the present application, after the business system is started, the processor pre-obtains the configuration data in advance. When the processor detects the anomaly flag, the obtained configuration data is sent to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of a hardware or software anomaly restart, the virtual device can quickly restore the information before the anomaly, provide the business services before the anomaly externally, and can ensure that the host-side user is insensitive to the anomaly, ensure the stable operation of the business system without interruption, and effectively improve the user experience.

[0115] In an embodiment of the present application, a possible implementation manner is provided, and the above configuration data includes basic configuration data.

[0116] Among them, the above basic configuration data may include the attribute information of the virtual device, and this basic configuration information will not be updated subsequently. For example, the attribute information of the virtual device module generated by mapping the system physical device module by the virtual device, the above virtual device module is bound in the system virtual machine, and the system virtual machine runs on the host side and provides virtualization functions for the host side. The virtual device module may include a network card, a disk, etc., which are not specifically limited in the embodiment of the present application.

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

[0118] S301, query the virtual device for information at a preset time interval; when an enable label is obtained by the query, an information acquisition request is sent to the virtual device to obtain the basic configuration data of the virtual device.

[0119] Among them, the enable label is generated by the virtual device in response to an enable instruction sent by the host.

[0120] Specifically, the host sends an enable instruction to the virtual device. After the virtual device enables successfully in response to the enable instruction, an enable label is generated; the processor can, based on a preset time interval, through the management component included in the processor, query the virtual device for information. When the enable label is obtained by the query, a data request is sent to the virtual device, and the virtual device sends the basic configuration data to the processor in response to the data request.

[0121] S302, store the basic configuration data.

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

[0123] In the embodiment of the present application, the processor periodically queries information of the virtual device. When it is queried that the virtual device is enabled successfully, indicating that the virtual device is configured successfully, the processor may obtain the basic configuration data from the virtual device and perform backup storage, so that when the configuration data is lost due to abnormal system restart in the subsequent process, data recovery may be performed based on the backed-up basic configuration data, improving the stability of the system.

[0124] In the embodiment of the present application, a possible implementation manner is provided, and the above configuration data includes incremental configuration data.

[0125] Among them, the above incremental configuration data may include configuration change attribute information of the virtual device, and the incremental configuration data may be updated in real time according to the device operation instruction of the host. For example, the virtual device maps the configuration change attribute information of the virtual device module generated by the system physical device module; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver to the network card, whether to enable it, etc.

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

[0127] S401, when the incremental tag is queried, obtain the incremental configuration data corresponding to the incremental tag from the virtual device.

[0128] Among them, the incremental tag is generated by the virtual device in response to the device operation instruction sent by the host.

[0129] Specifically, the host may send a device operation instruction to the virtual device in response to a user instruction, and the virtual device generates an incremental tag in response to the device operation instruction. When the processor queries the incremental tag through the management component included in the processor, the corresponding incremental configuration data is obtained from the virtual device.

[0130] S402, store the enhanced configuration data.

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

[0132] In the embodiment of the present application, the processor periodically queries information of the virtual device. When it is queried that the host has a device operation instruction for the virtual device, indicating that the configuration of the virtual device has been updated, the processor can obtain the corresponding incremental configuration data from the virtual device and back it up for storage. So that when the configuration data is lost due to an abnormal restart of the system later, data recovery can be performed based on the backed-up incremental configuration data. In the embodiment of the present application, the configuration data of the virtual device is classified into basic configuration data and incremental configuration data, which can reduce the resource consumption of the processor for each data acquisition and data storage, and improve the data processing efficiency of the processor, further improving the stability and reliability of the system.

[0133] In a possible implementation manner provided in the embodiment of the present application, the above abnormal identifier includes a system hardware abnormal identifier.

[0134] The above-mentioned when detecting an abnormal identifier and sending the obtained configuration data to the virtual device includes:

[0135] When detecting a system hardware abnormal identifier, initiate a cold restart recovery program to send configuration data to the virtual device.

[0136] Among them, the hardware abnormal identifier is generated after the virtual device recognizes a hardware abnormal cold restart. For example, the above-mentioned hardware abnormal cold restart may be caused by a watchdog exception.

[0137] Specifically, when the virtual device undergoes an abnormal cold start due to a hardware exception during operation, a system hardware abnormal identifier is generated; the processor can detect the abnormality of the virtual device through a cross-system register. When the above-mentioned system hardware abnormal identifier is obtained, initiate a cold restart recovery program to send configuration data to the virtual device.

[0138] In the embodiment of the present application, by detecting the hardware abnormal identifier of the virtual device, when the hardware abnormal cold start state of the system is recognized, 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 and provide an uninterrupted service capability for external services, improving the user experience.

[0139] In a possible implementation manner provided in the embodiment of the present application, the above abnormal identifier includes a system software abnormal identifier.

[0140] Such as Figure 5 shown, the above-mentioned when detecting an abnormal identifier and sending the obtained configuration data to the virtual device includes:

[0141] S501, when detecting a system software abnormal identifier, send a hot restart recovery instruction to the virtual device.

[0142] Among them, the system software exception identifier is generated after device initialization when the virtual device detects that the number of software exception 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 exception during operation, counting begins. When it is detected that the number of software exception hot restarts exceeds a preset value within a preset time period, the configuration data in the system is cleared for device initialization, and then the system software exception identifier is generated. The processor can perform exception detection on the virtual device through a cross-system register. When the above-mentioned system software exception identifier is obtained, the processor sends a hot restart recovery instruction to the virtual device, so that the virtual device that receives the hot restart recovery instruction obtains the pre-backup configuration data from the preset storage area of the virtual device and performs data recovery.

[0144] S502, when receiving a recovery failure message sent by the virtual device, send configuration data to the virtual device.

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

[0146] Specifically, when the virtual device fails to obtain the pre-backup configuration data from the preset storage area, a recovery failure message is generated and sent to the processor. After receiving the recovery failure message, the processor sends configuration data to the virtual device to enable the virtual machine to complete data recovery.

[0147] In the embodiment of the present application, exception detection is performed based on the number of software exception hot restarts detected by the virtual device within a preset time period. Since some software exceptions can be self-repaired and have little impact on the overall system service, a fault tolerance mechanism is set for software exception hot restarts in the present application. When the number of abnormal hot restarts exceeds a preset value within a preset time period, the user's configuration space is cleared and data recovery is performed: data recovery can preferably be performed by obtaining the pre-backup configuration data from the preset storage area of the virtual device. When the above-mentioned configuration data cannot be obtained from the storage area, configuration data is obtained from the processor. That is to say, in the embodiment of the present application, double backup is performed through the virtual device and the processor to improve the success rate and efficiency of data recovery and further ensure the stable operation of the business system.

[0148] A possible implementation manner is provided in the embodiment of the present application. The above method further includes:

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

[0150] Among them, the recovery success message is sent by the virtual device after the data recovery is successful; the new configuration data is used to enable the virtual device to perform data recovery when an exception identifier is detected next time. The above new configuration data includes incremental configuration data, which can be updated in real time according to the device operation instructions of the host.

[0151] Specifically, after the processor receives the recovery success message returned by the virtual device, it can continue to periodically query information about the virtual device. When it queries the device operation instructions of the host for the virtual device, indicating that the configuration of the virtual device has been updated, the processor can obtain the corresponding new incremental configuration data from the virtual device and back it up for storage, so that when the configuration data is lost due to a system exception and restart, data recovery can be performed based on the backed-up new incremental configuration data.

[0152] In the embodiment of the present application, the processor continues to obtain new incremental configuration data from the virtual device after data recovery, so that the configuration data backed up by the processor can be updated in real time according to the device operation instructions of the host, and is not affected by system exception cold and hot restarts or data recovery operations of the virtual device, further ensuring that the host-side user is unaware of the exception, and the business system can perform multiple consecutive data recoveries, improving the stability and reliability of the business system.

[0153] Another data processing method is provided in the embodiment of the present application, as Figure 6 shown, which can be applied to a virtual device in a business processing system. Among them, the business processing system may further include a processor and a host. The method includes:

[0154] S601, 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.

[0155] Among them, the data acquisition request is generated by the processor after the business processing system is started and the virtual device configuration is completed; the configuration data is used to represent the virtual configuration of the business processing system. The above processor may be a DPU processor; the virtual device may be a software and hardware co-simulation device, such as an SR-IOV device, which can be used to provide virtualization services for the host side. The above business processing system may be a business system that provides cloud computing services.

[0156] Specifically, after the business processing system is started, the virtual device starts to power on. When the processor queries at least one of the enable label and the incremental label from the virtual device, it sends a data acquisition request to the virtual device, and the virtual device sends the pre-generated configuration data to the processor in response to the data acquisition request; among them, the enable label is generated by the virtual device in response to the enable instruction sent by the host; the incremental label is generated by the virtual device in response to the device operation instruction sent by the host.

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

[0158] Wherein, the exception identifier is used to represent that the virtual device has a hardware or software abnormal restart, and the above exception identifier may include a system hardware exception identifier and a system software exception identifier.

[0159] Specifically, when the virtual device detects a hardware or software abnormal restart in the system during operation, the DDR SDRAM data in the service processing system, that is, the configuration data, will be cleared, resulting in the virtual device being unable to correctly provide relevant services to the host side and causing the user service to be interrupted. At this time, the virtual device will generate an exception identifier, and the processor can perform exception detection on the virtual device through cross-system register detection. When the exception identifier is detected, the obtained configuration data will be sent to the virtual device.

[0160] S603. Receive the configuration data, perform data recovery based on the configuration data, and provide virtualization services to the host.

[0161] Wherein, the virtualization service may include mapping a PF into multiple VFs, and each VF can be bound to a virtual machine to create diverse virtual environments for the host. For example, creating a virtual network card, a virtual disk, etc. for the host, which is not specifically limited in the embodiments of the present application.

[0162] S604. After the data recovery is successful, return a recovery success message to the processor.

[0163] Specifically, after the data recovery of the virtual device is successful, a recovery success message can be generated and sent to the processor.

[0164] After the business system in the embodiment of the present application is started, the processor obtains configuration data from the configured virtual device, and performs anomaly detection on the virtual device at a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; after the data recovery of the virtual device is successful, a recovery success message is sent to the processor. Since the anomaly flag is used to indicate that the virtual device has a hardware or software anomaly restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot provide services to the outside normally without configuration data; after the business system in the embodiment of the present application is started, the processor pre-obtains the configuration data in advance. When the processor detects the anomaly flag, the obtained configuration data is sent to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of a hardware or software anomaly restart, the virtual device can quickly restore the information before the anomaly, provide the business services before the anomaly to the outside, and can ensure that the host-side user is unaware of the anomaly, ensure the stable operation of the business system without interruption, and effectively improve the user experience.

[0165] A possible implementation manner is provided in the embodiment of the present application, as Figure 7 shown. The above-mentioned receiving the data acquisition request sent by the processor and responding to the data acquisition request by sending the pre-generated configuration data to the processor includes:

[0166] S701, after the business processing system is started, in response to the enabling instruction sent by the host, generate an enabling label, so that the processor can query the enabling label and send an information acquisition request to the virtual device.

[0167] Specifically, the host sends an enabling instruction to the virtual device. After the virtual device enables successfully in response to the enabling instruction, an enabling label is generated; the processor can, based on a preset time interval, query the virtual device through the management component included in the processor. When the enabling label is queried, a data request is sent to the virtual device.

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

[0169] Among them, the above-mentioned basic configuration data may include the attribute information of the virtual device, and this basic configuration information will not be updated later. For example, the virtual device maps the system physical device module to generate the attribute information of the virtual device module, and the above-mentioned virtual device module is bound in the system virtual machine. The system virtual machine runs on the host side and provides virtualization functions for the host side. The virtual device module may include a network card, a disk, etc., which are not specifically limited in the embodiment of the present application.

[0170] S703 generates an incremental tag in response to a device operation instruction sent by the host, enabling the processor to query the incremental tag and send an information acquisition request to the virtual device.

[0171] Specifically, the host can send a device operation instruction to the virtual device in response to a user instruction. The virtual device generates an incremental tag in response to the device operation instruction. When the processor queries and obtains the incremental tag through the management component included in the processor, it sends an information acquisition request to the virtual device.

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

[0173] Among them, the above incremental configuration data may include configuration change attribute information of the virtual device, and the incremental configuration data can be updated in real time according to the device operation instruction of the host. For example, the virtual device maps the configuration change attribute information of the virtual device module generated by the system physical device module; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver to the network card and whether to enable it.

[0174] For a better understanding of the above data processing method, the following is combined with Figure 8 A detailed example of the data processing method of this application is elaborated, and the method includes the following steps:

[0175] S801 After the business processing system is started, the virtual device starts to power on. The host sends an enable instruction to the virtual device. After the virtual device successfully enables in response to the enable instruction, it generates an enable tag.

[0176] S802 The processor queries the information of the virtual device at a preset time interval through the management component included in the processor. When the enable tag is queried, it sends a data request to the virtual device.

[0177] S803 The virtual device sends the basic configuration data to the processor in response to the data request; the processor obtains the basic configuration data and stores it as configuration data in a preset storage space.

[0178] Among them, the above basic configuration data may include the attribute information of the virtual device, and the basic configuration information will not be updated later. For example, the virtual device maps the attribute information of the virtual device module generated by the system physical device module. The above virtual device module is bound in the system virtual machine, and the system virtual machine runs on the host side and provides virtualization functions for the host side. The virtual device module may include a network card, a disk, etc., which are not specifically limited in the embodiments of this application.

[0179] S804. The host can, in response to a user instruction, send a device operation instruction to the virtual device, and the virtual device, in response to the device operation instruction, generates an incremental tag.

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

[0181] S806. The virtual device, in response to the data request, sends the incremental configuration data to the processor; the processor receives the incremental configuration data and stores it as configuration data in a preset storage space.

[0182] Among them, the above incremental configuration data may include configuration change attribute information of the virtual device, and the incremental configuration data can be updated in real time according to the device operation instruction of the host. For example, the virtual device maps the configuration change attribute information of the virtual device module generated by the system physical device module; when the virtual device module is a network card, its configuration change attribute information may include whether to add a driver to the network card, whether to enable it, etc.

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

[0184] S808. When the virtual device undergoes an abnormal hot restart due to a software anomaly during operation, it starts counting. When the virtual device detects that the number of software abnormal hot restarts exceeds a preset value within a preset time period, it clears the configuration data in the system for device initialization, and then generates a system software anomaly identifier.

[0185] S809. The processor sends a hot restart recovery instruction to the virtual device; the virtual device that receives the hot restart recovery instruction obtains the pre-backup configuration data from the preset storage area of the virtual device and performs data recovery.

[0186] S810. When the virtual device cannot obtain the pre-backup 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 configuration data to the virtual device so that the virtual machine can complete data recovery.

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

[0188] After the processor receives the recovery success message returned by the virtual device, it obtains new configuration data from the virtual device after data recovery.

[0189] Among them, the new configuration data is used to enable the virtual device to perform data recovery when an exception identifier is detected next time. The above new configuration data includes incremental configuration data, which can be updated in real time according to the device operation instructions of the host.

[0190] In the embodiment of the present application, after the business system is started, the processor obtains configuration data from the configured virtual device, and performs exception detection on the virtual device based on a preset time interval. When an exception identifier is detected, the processor sends the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; after the virtual device successfully recovers the data, it sends a recovery success message to the processor. Since the exception identifier is used to indicate that the virtual device has a hardware or software abnormal restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot normally provide services externally without configuration data; in the embodiment of the present application, after the business system is started, the processor pre-obtains configuration data, and when the processor detects an exception identifier, it sends the obtained configuration data to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of hardware or software abnormal restart, the virtual device can quickly recover the information before the exception, provide the business services before the exception externally, and ensure that the host-side user is unaware of the exception, ensuring the stable operation of the business system without interruption and effectively improving the user experience.

[0191] The embodiment of the present application provides a data processing device, as Figure 9 shown, the data processing device 90 may include: an acquisition module 901, a detection module 902, and a sending module 903;

[0192] Among them, the acquisition module 901 is used to obtain configuration data from the virtual device after the business processing system is started and the virtual device is configured; among them, the configuration data is used to represent the virtual configuration of the business processing system;

[0193] The detection module 902 is used to perform exception detection on the virtual device based on a preset time interval;

[0194] The sending module 903 is used to send the obtained configuration data to the virtual device when an exception identifier is detected, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; among them, the exception identifier is used to indicate that the virtual device has a hardware or software abnormal restart.

[0195] In an embodiment of the present application, a possible implementation manner is provided, where the above configuration data includes basic configuration data;

[0196] When the above acquisition module 901 acquires configuration data from a virtual device, it is used for:

[0197] Query information about the virtual device based on a preset time interval;

[0198] When an enable tag is queried, send an information acquisition request to the virtual device to acquire the basic configuration data of the virtual device; wherein, the enable tag is generated by the virtual device in response to an enable instruction sent by the host;

[0199] Store the basic configuration data.

[0200] In an embodiment of the present application, a possible implementation manner is provided, where the above configuration data includes incremental configuration data;

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

[0202] When an incremental tag is queried, acquire the incremental configuration data corresponding to the incremental tag from the virtual device; wherein, the incremental tag is generated by the virtual device in response to a device operation instruction sent by the host;

[0203] Store the enhanced configuration data.

[0204] In an embodiment of the present application, a possible implementation manner is provided, where the above exception identifier includes a system hardware exception identifier;

[0205] When the above sending module 903 detects an exception identifier and sends the acquired configuration data to the virtual device, it is used for:

[0206] When a system hardware exception identifier is detected, initiate a cold restart recovery program to send configuration data to the virtual device; wherein, the hardware exception identifier is generated after the virtual device recognizes a hardware exception and performs a cold restart.

[0207] In an embodiment of the present application, a possible implementation manner is provided, where the above exception identifier includes a system software exception identifier;

[0208] When the above sending module 903 detects an exception identifier and sends the acquired configuration data to the virtual device, it is used for:

[0209] When a system software exception identifier is detected, send a hot restart recovery instruction to the virtual device; wherein, the system software exception identifier is generated after the virtual device initializes the device when the number of software exception hot restarts detected within a preset time period exceeds a preset value;

[0210] When receiving a recovery failure message sent by a virtual device, send configuration data to the virtual device; wherein, the recovery failure message is generated when the virtual device fails to obtain configuration data from a preset storage area and is sent to the processor.

[0211] In an embodiment of the present application, a possible implementation is provided. The above device further includes a receiving module, configured to:

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

[0213] Obtain new configuration data from the virtual device after data recovery; wherein, the new configuration data is used to enable the virtual device to perform data recovery when an exception identifier is detected next time.

[0214] An embodiment of the present application provides a data processing device, as Figure 10 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] Among them, the response module 1001 is configured 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 is started and the data processing device is configured; the configuration data is used to represent the virtual configuration of the business processing system.

[0216] The generation module 1002 is configured to generate an exception identifier when detecting an abnormal restart 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 represent a hardware or software abnormal restart of the data processing device.

[0217] The recovery module 1003 is configured to receive the configuration data and perform data recovery based on the configuration data.

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

[0219] In an embodiment of the present application, a possible implementation is provided. When the response module 1001 receives a data acquisition request sent by the processor and sends pre-generated configuration data to the processor in response to the data acquisition request, it is configured to:

[0220] After the business processing system is started, in response to an enable instruction sent by the host, generate an enable label, so that the processor queries the enable label and sends an information acquisition request to the virtual device;

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

[0222] In response to a device operation instruction sent by the host, generate an incremental tag, so that the processor queries to obtain the incremental tag and sends an information acquisition request to the virtual device;

[0223] In response to the information acquisition request, send pre-generated incremental configuration data to the processor as configuration data.

[0224] The device according to the embodiment of the present application can execute the method provided by the embodiment of the present application, and the implementation principle is similar. The actions performed by each module in the device according to the embodiments of the present application correspond to the steps in the method according to the embodiments of the present application. For the detailed function description of each module of the device, reference can specifically be made to the description in the corresponding method shown above, and details are not described herein again.

[0225] After the business system according to the embodiment of the present application is started, the processor obtains configuration data from the configured virtual device, and performs anomaly detection on the virtual device at a preset time interval. When an anomaly flag is detected, the processor sends the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; after the data recovery of the virtual device is successful, a recovery success message is sent to the processor. Since the anomaly flag is used to indicate that the virtual device has a hardware or software anomaly restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot normally provide services to the outside world without configuration data; after the business system according to the embodiment of the present application is started, the processor pre-obtains configuration data in advance, and when the processor detects the anomaly flag, the processor sends the obtained configuration data to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of a hardware or software anomaly restart, the virtual device can quickly restore the information before the anomaly, provide the business services before the anomaly to the outside world, and can ensure that the host-side user is insensitive to the anomaly, ensure the stable operation of the business system without interruption, and effectively improve the user experience.

[0226] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory. The processor executes the above computer program to implement the steps of a data processing method. Compared with the related art, the following can be achieved: After the business system is started, the processor obtains configuration data from a configured virtual device, and performs anomaly detection on the virtual device at a preset time interval. When an anomaly identifier is detected, the processor sends the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; after the data recovery of the virtual device is successful, a recovery success message is sent to the processor. Since the anomaly identifier is used to indicate that the virtual device has a hardware or software anomaly restart, the configuration data in the user configuration space will be cleared at this time, and the virtual device cannot normally provide services externally without configuration data; in the embodiment of the present application, after the business system is started, the processor pre-obtains the configuration data, and when the processor detects the anomaly identifier, it sends the obtained configuration data to the virtual device, so that the virtual device can quickly complete data recovery based on the received configuration data; the embodiment of the present application realizes that in the scenario of a hardware or software anomaly restart, the virtual device can quickly restore the information before the anomaly, provide the business services before the anomaly externally, and ensure that the host-side user is unaware of the anomaly, ensuring the stable operation of the business system without interruption and effectively improving the user experience.

[0227] In an alternative embodiment, an electronic device is provided, as Figure 11 shown, Figure 11 the electronic device 1100 shown includes: a processor 1101 and a memory 1103. Among them, the processor 1101 and the memory 1103 are connected, such as through a bus 1102. Optionally, the electronic device 1100 may further include a transceiver 1104, and the transceiver 1104 may be used for data interaction between this electronic device and other electronic devices, such as sending and / or receiving data, etc. It should be noted that in actual applications, the transceiver 1104 is not limited to one, and the structure of the electronic device 1100 does not constitute a limitation to the embodiment of the present application.

[0228] The 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 various exemplary logical blocks, modules, and circuits described in connection with the disclosure of this application. The processor 1101 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

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

[0230] The memory 1103 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or it may also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, which is not limited herein.

[0231] The memory 1103 is used to store the computer program for implementing the embodiments of the present application, and is controlled by the processor 1101 to execute. The processor 1101 is used to execute the computer program stored in the memory 1103 to implement the steps shown in the foregoing method embodiments.

[0232] Among them, the electronic device includes but is not limited to: mobile terminals such as mobile phones, laptop computers, PADs, etc., and fixed terminals such as digital TVs, desktop computers, etc.

[0233] The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be implemented.

[0234] The embodiments of the present application provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device implements the following when executed:

[0235] After the service processing system is started and the virtual device configuration is completed, obtain configuration data from the virtual device; wherein, the configuration data is used to characterize the virtual configuration of the service processing system;

[0236] Perform anomaly detection on the virtual device based on a preset time interval;

[0237] When an anomaly flag is detected, send the obtained configuration data to the virtual device, so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; wherein, the anomaly flag is used to characterize that the virtual device has a hardware or software anomaly restart.

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

[0239] It should be understood that although the flowcharts of the embodiments of the present application indicate various operation steps by arrows, the execution order of these steps is not limited to the order indicated by the arrows. Unless there is a clear description in this article, in some implementation scenarios of the embodiments of the present application, the implementation steps in each flowchart can be executed in other orders according to requirements. In addition, some or all of the 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 among these sub-steps or stages can also be executed at different times respectively. In the scenario where the execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and the embodiments of the present application do not limit this.

[0240] The above are only optional implementation manners of some implementation scenarios of the present application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the technical concept of the solution of the present application, adopting other similar implementation means based on the technical idea of the present application also belongs to the protection scope of the embodiments of the present application.

Claims

1. A data processing method, applied to a processor in a business processing system, wherein the business processing system further comprises a virtual device and a host, wherein: include: After the business processing system is started and the virtual device is configured, obtaining configuration data from the virtual device; wherein the configuration data is used to characterize the virtual configuration of the business processing system; Performing abnormality detection on the virtual device based on a preset time interval; When an abnormality mark is detected, the acquired configuration data is sent to the virtual device so that the virtual device performs data recovery based on the received configuration data and provides virtualization services to the host; wherein the abnormality mark is used to indicate that the virtual device restarts due to a hardware or software abnormality.

2. The method according to claim 1, characterized in that The configuration data includes basic configuration data; The acquiring configuration data from the virtual device includes: Performing information query on virtual devices based on preset time intervals; When the enable tag is obtained by querying, an information acquisition request is sent to the virtual device to obtain basic configuration data of the virtual device; wherein the enable tag is generated by the virtual device in response to the enable instruction sent by the host; The basic configuration data is stored.

3. The method according to claim 2, characterized in that The configuration data includes incremental configuration data; The method further comprises: When the incremental tag is obtained by querying, the incremental configuration data corresponding to the incremental tag is obtained from the virtual device; wherein the incremental tag is generated by the virtual device in response to the device operation instruction sent by the host; The enhanced configuration data is stored.

4. The method according to claim 1, characterized in that: The abnormal identification includes a system hardware abnormal identification; When an abnormal flag is detected, the acquired configuration data is sent to the virtual device, including: When a system hardware abnormality flag is detected, a cold restart recovery program is initiated to send configuration data to the virtual device; wherein the hardware abnormality flag is generated after the virtual device identifies a hardware abnormality cold restart.

5. The method according to claim 1, characterized in that The abnormal identification includes a system software abnormal identification; When an abnormal flag is detected, the acquired configuration data is sent to the virtual device, including: When a system software abnormality flag is detected, a hot restart recovery instruction is sent to the virtual device; wherein the system software abnormality flag is generated after the virtual device is initialized when the number of software abnormal hot restarts detected by the virtual device exceeds a preset value within a preset time period; When a recovery failure message sent by the virtual device is received, configuration data is sent to the virtual device; wherein the recovery failure message is generated when the virtual device cannot obtain configuration data from a preset storage area and is sent to the processor.

6. The method according to claim 1, characterized in that The method further comprises: Receiving a recovery success message returned by the virtual device; wherein the recovery success message is sent by the virtual device after the data is successfully recovered; 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 when an abnormality mark is detected next time.

7. A data processing method, applied to a virtual device in a business processing system, wherein the business processing system further comprises a processor and a host, wherein: include: receiving a data acquisition request sent by the processor, and sending 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 is started and the virtual device configuration is completed; and the configuration data is used to characterize the virtual configuration of the business processing system; When an abnormal restart in the business processing system is detected, an abnormal flag is generated, so that the processor queries the abnormal flag and sends configuration data to the virtual device; wherein the abnormal flag is used to indicate that the virtual device has a hardware or software abnormal restart; receiving the configuration data, performing data recovery based on the configuration data, and providing virtualization services to the host; After the data is successfully restored, a recovery success message is returned to the processor.

8. The method according to claim 7, characterized in that The receiving a data acquisition request sent by the processor, and sending pre-generated configuration data to the processor in response to the data acquisition request, comprises: After the service processing system is started, in response to the enable instruction sent by the host, an enable tag is generated, so that the processor queries and obtains the enable tag, and sends an information acquisition request to the virtual device; In response to the information acquisition request, sending the pre-generated basic configuration data as configuration data to the processor; In response to the device operation instruction sent by the host, an incremental tag is generated, so that the processor queries and obtains the incremental tag, and sends an information acquisition request to the virtual device; In response to the information acquisition request, the pre-generated incremental configuration data is sent to the processor as configuration data.

9. A data processing device, characterized in that: include: An acquisition module, used to acquire configuration data from the virtual device after the business processing system is started and the virtual device configuration is completed; wherein the configuration data is used to characterize the virtual configuration of the business processing system; A detection module, configured to perform abnormality 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 abnormal 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 abnormal flag is used to indicate that the virtual device restarts due to hardware or software abnormality.

10. A data processing device, characterized in that: include: a response module, configured to receive a data acquisition request sent by a processor, and to 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 is started and the data processing device is configured; and the configuration data is used to characterize the virtual configuration of the business processing system; A generating module, configured to generate an abnormal flag when an abnormal restart in the business processing system is detected, so that the processor queries the abnormal flag and sends configuration data to the data processing device; wherein the abnormal flag is used to indicate that a hardware or software abnormal restart of the data processing device occurs; A recovery module, used for receiving the configuration data and performing data recovery based on the configuration data; The return module is used to return a recovery success message to the processor after the data is successfully recovered.

11. 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 8.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.