A virtual device backup method and device
By storing the configuration information of the virtualized device when the virtual machine is connected to the physical device and synchronously updating the data queue status data, the problem of low backup efficiency of virtualized device is solved, and efficient virtualized device status backup and rapid recovery are achieved.
Patent Information
- Application Number
- CN202111676635.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the prior art, virtualization equipment has low backup efficiency and takes up a large storage space, resulting in low recovery efficiency of virtualization equipment in the event of failure.
When the virtual machine is connected to the physical device, it stores the configuration information of the virtualized device, and synchronizes the status data of the data queue during the communication process to realize the status backup of the virtualized device and avoid complete backup.
Improves the backup efficiency of virtual machine, reduces the amount of backup data, supports hot migration and hot switching operations of virtualized devices, and ensures that virtual machines can recover quickly in the event of failure.
Smart Images

Figure CN114416427B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a backup method for a virtualized device and a backup device for a virtualized device. Background Art
[0002] The Single Root I / O Virtualization (SR-IOV) protocol is an extension of the standard PCIe bus interconnection protocol. Its main goal is to present a single physical device as a physical function device (physical function, pf) and several virtualized devices (virtual function, vf) through the hardware virtualization of the I / O physical device itself. The Single Root I / O Virtualization protocol can serve a single-machine computer system that supports direct I / O virtualization. Each virtual machine (Virtual Machine, VM) running on the system can directly have an independent physical device or virtualized device.
[0003] Generally speaking, in order to ensure that the virtual machine can run stably, the virtualized device can be backed up so that the virtualized device can be restored in time when the virtualized device fails. However, generally speaking, backing up the virtualized device usually takes up a large storage space and takes a long time, which leads to low efficiency of backing up the virtualized device. Summary of the invention
[0004] In view of the above problems, embodiments of the present application are proposed to provide a method for backing up a virtualized device and a device for backing up a virtualized device that overcome the above problems or at least partially solve the above problems.
[0005] In order to solve the above problems, an embodiment of the present application discloses a method for backing up a virtualized device, the method comprising:
[0006] When the virtual machine requests to establish a connection with the virtualized device in the physical device, storing the configuration information of the virtualized device;
[0007] Configuring the virtual machine to establish a connection with the virtualization device;
[0008] During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated, and the status data of the data queue is synchronously stored.
[0009] Optionally, the method further comprises:
[0010] When the virtual machine requests to establish a connection with a virtualized device in a physical device, the device identification number of the virtualized device is stored.
[0011] Optionally, when the virtual machine requests to establish a connection with the virtualized device in the physical device, the step of storing the configuration information of the virtualized device includes:
[0012] When the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored through the virtual machine backup module.
[0013] Optionally, during the communication between the virtualization device and the virtual machine, the step of synchronously updating the configuration information of the virtualization device and synchronously storing the status data of the data queue includes:
[0014] During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated through the virtual machine backup module, and the status data of the data queue is synchronously stored.
[0015] Optionally, during the communication between the virtualization device and the virtual machine, the step of synchronously updating the configuration information of the virtualization device through the virtual machine backup module and synchronously storing the status data of the data queue includes:
[0016] During the communication between the virtualization device and the virtual machine, the virtual machine backup module calls the physical function driver to obtain the real-time configuration information of the virtualization device and the real-time status data of the data queue;
[0017] The real-time configuration information of the virtualized device and the real-time status data of the data queue are stored through the virtual machine backup module to synchronize the configuration information of the virtualized device and the status data of the data queue.
[0018] In an embodiment of the present application, a backup device for a virtualized device is provided, comprising:
[0019] A configuration storage module, used to store configuration information of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device;
[0020] A connection establishment module, used for configuring the virtual machine to establish a connection with the virtualization device;
[0021] The backup module is used to synchronously update the configuration information of the virtualization device and synchronously store the status data of the data queue during the communication between the virtualization device and the virtual machine.
[0022] Optionally, the device further comprises:
[0023] The identification storage module is used to store the device identification number of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device.
[0024] Optionally, the connection establishment module includes:
[0025] The connection establishment submodule is used to store the configuration information of the virtualized device through the virtual machine backup module when the virtual machine requests to establish a connection with the virtualized device in the physical device.
[0026] Optionally, the backup module includes:
[0027] The backup submodule is used to synchronously update the configuration information of the virtualization device through the virtual machine backup module during the communication between the virtualization device and the virtual machine, and synchronously store the status data of the data queue.
[0028] Optionally, the backup submodule includes:
[0029] A data acquisition unit, used for acquiring real-time configuration information of the virtualized device and real-time status data of the data queue by calling the physical function driver through the virtual machine backup module during the communication between the virtualized device and the virtual machine;
[0030] The synchronization unit is used to store the real-time configuration information of the virtualized device and the real-time status data of the data queue through the virtual machine backup module to synchronize the configuration information of the virtualized device and the status data of the data queue.
[0031] The present application also discloses an electronic device, including:
[0032] one or more processors; and
[0033] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the method as described in any one of the embodiments of the present application.
[0034] The embodiments of the present application also disclose one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, enable the processors to execute the method described in any one of the embodiments of the present application.
[0035] The embodiments of the present application include the following advantages:
[0036] Through the backup method of the virtualized device of the embodiment of the present application, when the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored; the virtual machine is configured to establish a connection with the virtualized device; during the communication between the virtualized device and the virtual machine, the configuration information of the virtualized device is synchronously updated, and the status data of the data queue is synchronously stored. Therefore, it is not necessary to perform a complete backup of the virtualized device, but only the configuration information of the virtualized device and the status data of the data queue can be backed up, which can effectively improve the backup efficiency of the virtual machine, and subsequently, based on the configuration information of the virtualized device and the status data of the data queue, the hot migration and hot switching of the virtualized device can be efficiently completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of a device in an embodiment of the present application;
[0038] Figure 2 This is a flowchart of a method for backing up a virtualized device according to an embodiment of the present application;
[0039] Figure 3 This is a flowchart of a method for backing up a virtualized device according to an embodiment of the present application;
[0040] Figure 4 It is a schematic diagram of a device in an embodiment of the present application;
[0041] Figure 5 It is a structural block diagram of an embodiment of a backup device for a virtualized device in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0043] In the embodiment of the present application, the I / O physical device can use the single root I / O virtualization (SR-IOV) protocol to virtualize itself into a physical function device (physical function, PF) and several virtualization devices (virtual function, VF), and connect the virtualization devices (VF) to the virtual machines running in the server one by one. Among them, the physical function device (PF) can also be called a physical function, and the virtualization device (VF) can also be called a virtual function.
[0044] The embodiment of the present application realizes backing up the state of the virtualized device by synchronously updating the configuration information of the virtualized device and the state data of the data queue during the communication process between the virtualized device and the virtual machine in the hypervisor. The state backup of the virtualized device can efficiently restore the virtualized device to the most recent operating state when the virtualized device fails, and can continue to provide services to the virtual machine. At the same time, since the backed-up data is the state data of the virtualized device, rather than the complete data, the amount of backup data can be effectively reduced, and the backup efficiency can also be improved.
[0045] As an example of this application, Figure 1 It is a schematic diagram of a device in an embodiment of the present application. It includes a server, a physical device A and a physical device B. Multiple virtual machines can be run in the server. In physical device A, virtualized device 1, virtualized device 2 and virtualized device 3 can be run through I / O device virtualization technology. Virtualized device 4, virtualized device 5 and virtualized device 6 can be run in physical device B. In order to maximize the use of physical devices, physical devices can be reconstructed in a resource pooling manner to form a device resource pool including virtualized device 1, virtualized device 2, virtualized device 3, virtualized device 4, virtualized device 5 and virtualized device 6. Each virtual machine in the server can be connected to a virtualized device respectively, so that each virtual machine can have an independent I / O device.
[0046] Reference Figure 2 , shows a flowchart of a method for backing up a virtualized device according to an embodiment of the present application, which may specifically include the following steps:
[0047] Step 201, when a virtual machine requests to establish a connection with a virtualized device in a physical device, storing configuration information of the virtualized device;
[0048] When a virtual machine needs to obtain a virtualized device in a physical device, the virtual machine can send a request to the virtual machine hypervisor, requesting the virtual machine hypervisor to allocate a virtualized device in a physical device to the virtual machine and establish a connection with the virtualized device in the physical device. While allocating a virtualized device to a virtual machine, the virtual machine hypervisor can back up the virtualized device. In the process of allocating a virtualized device in a physical device to a virtual machine, the virtual machine hypervisor can obtain the initialization configuration information of the virtualized device and store it. Therefore, when the virtualized device starts to run, the running status of the virtualized device can be recorded, so as to completely back up the running process of the virtualized device.
[0049] As a specific example of the present application, the configuration information of the virtualized device may include interrupt configuration status (MSI-X), direct memory access (DMA) mapping configuration, base address register (BAR) space mapping configuration, and configuration space, etc.
[0050] Step 202, configuring the virtual machine to establish a connection with the virtualization device;
[0051] After completing the backup of the initialization configuration information of the virtualization device, the virtual machine management program can configure the virtual machine to directly establish a connection with the virtualization device, so that the virtual machine can directly communicate with the virtualization device, and the virtual machine can independently own the virtualization device to provide services efficiently.
[0052] Step 203: During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated, and the status data of the data queue is synchronously stored.
[0053] During the communication between the virtualization device and the virtual machine, the virtual machine hypervisor can synchronously update the configuration information of the virtualization device in real time, and synchronously store the status data of the data queue in real time, so that when the virtualization device fails, the virtualization device can be restored to the latest status in time, so that the virtual machine can continue to operate normally.
[0054] By backing up the configuration information of the virtualized device, the current operating status of the virtualized device can be recorded in real time, so that after the virtualized device is subsequently restored, the virtualized device can continue to communicate with the virtual machine using the most recent operating status and continue to provide services for the virtual machine.
[0055] Among them, as a specific example of the present application, a data queue (virtqueue) can be an actual data link for data exchange. The status data of the data queue may include the base address of the data queue, the currently available id value (last_avail_idx), the currently used id value (last_used_idx), etc. By backing up the status data of the data queue, the communication status between the virtualization device and the virtual machine and the storage location of the data can be recorded in real time, so that after the virtualization device is subsequently restored, the virtualization device can continue to use the latest communication status to communicate with the virtual machine, and perform data education, and continue to provide services for the virtual machine.
[0056] Through the backup method of the virtualized device of the embodiment of the present application, when the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored; the virtual machine is configured to establish a connection with the virtualized device; during the communication between the virtualized device and the virtual machine, the configuration information of the virtualized device is synchronously updated, and the status data of the data queue is synchronously stored. Therefore, it is not necessary to perform a complete backup of the virtualized device, but only the configuration information of the virtualized device and the status data of the data queue can be backed up, which can effectively improve the backup efficiency of the virtual machine, and subsequently, based on the configuration information of the virtualized device and the status data of the data queue, the hot migration and hot switching of the virtualized device can be efficiently completed.
[0057] Reference Figure 3 , shows a flowchart of a method for backing up a virtualized device according to an embodiment of the present application, which may specifically include the following steps:
[0058] Step 301, when the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored by the virtual machine backup module;
[0059] Specifically, in order to achieve efficient backup of virtualized devices, a virtualized device backup module may be added to a hypervisor. The virtualized device backup module may be used to back up the state of the virtualized device.
[0060] When a virtual machine needs to obtain a virtualized device in a physical device, the virtual machine can send a request to the virtual machine hypervisor, requesting the virtual machine hypervisor to allocate a virtualized device in a physical device to the virtual machine and establish a connection with the virtualized device in the physical device. While allocating a virtualized device to a virtual machine, the virtual machine hypervisor can back up the virtualized device through a virtualized device backup module. The virtualized device backup module obtains and stores the initialization configuration information of the virtualized device during the process of the virtual machine hypervisor allocating a virtualized device in a physical device to the virtual machine. Therefore, when the virtualized device starts to run, the running status of the virtualized device can be recorded, so that the running process of the virtualized device can be completely backed up.
[0061] In one embodiment of the present application, the method further includes:
[0062] S11, when the virtual machine requests to establish a connection with a virtualized device in a physical device, a device identification number of the virtualized device is stored.
[0063] When the virtual machine requests to establish a connection with the virtualized device in the physical device, the virtual machine backup module can store the configuration information of the virtualized device and the device identification number of the virtualized device to facilitate recording the corresponding relationship between the virtual machine and the virtualized device.
[0064] In a specific implementation, when a virtualized device is provided to a virtual machine through a hypervisor to establish a connection between the virtual machine and the virtualized device, the hypervisor can obtain the device identification number of the virtualized device and send the device identification number of the virtualized device to the virtualized device backup module for storage.
[0065] Step 302, configuring the virtual machine to establish a connection with the virtualization device;
[0066] After completing the backup of the initialization configuration information of the virtualization device, the virtual machine management program can configure the virtual machine to directly establish a connection with the virtualization device, so that the virtual machine can directly communicate with the virtualization device, and the virtual machine can independently own the virtualization device to provide services efficiently.
[0067] Step 303: During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated through the virtual machine backup module, and the status data of the data queue is synchronously stored.
[0068] During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device can be updated in real time through the virtualization device backup module, and the status data of the data queue can be stored in real time. When the virtualization device fails, the virtualization device can be restored to the latest state in time, so that the virtual machine can continue to operate normally.
[0069] By backing up the configuration information of the virtualized device, the current operating status of the virtualized device can be recorded in real time, so that after the virtualized device is subsequently restored, the virtualized device can continue to communicate with the virtual machine using the most recent operating status and continue to provide services for the virtual machine.
[0070] By backing up the status data of the data queue, the communication status between the virtualization device and the virtual machine and the storage location of the data can be recorded in real time, so that after the virtualization device is subsequently restored, the virtualization device can continue to communicate with the virtual machine using the latest communication status, perform data education, and continue to provide services for the virtual machine.
[0071] In one embodiment of the present application, during the communication between the virtualization device and the virtual machine, the step of synchronously updating the configuration information of the virtualization device through the virtual machine backup module and synchronously storing the status data of the data queue includes:
[0072] S21, during the communication between the virtualization device and the virtual machine, the virtual machine backup module calls the physical function driver to obtain real-time configuration information of the virtualization device and real-time status data of the data queue;
[0073] A physical function driver may be provided in the server. The physical function driver may be used to manage physical devices, create virtual devices in physical devices, set up virtual machines to communicate with virtual devices, configure virtual devices, and other functions.
[0074] Therefore, during the communication between the virtualization device and the virtual machine, the virtual machine backup module can call the physical function driver to obtain the real-time configuration information of the virtualization device and the real-time status data of the data queue.
[0075] S22, storing the real-time configuration information of the virtualized device and the real-time status data of the data queue through the virtual machine backup module to synchronize the configuration information of the virtualized device and the status data of the data queue.
[0076] After the physical function driver obtains the real-time virtualization device configuration information and the real-time data queue status data, the real-time virtualization device configuration information and the real-time data queue status data can be sent to the virtualization device backup module, and the virtualization device backup module stores the real-time virtualization device configuration information and the real-time data queue status data to synchronize the virtualization device configuration information and the data queue status data to achieve real-time backup of the virtualization device.
[0077] As a specific example of this application, Figure 4 A schematic diagram of a device for this application.
[0078] When a communication connection is established between the virtual machine and the virtualized device 1 through the virtual machine hypervisor, the virtual machine hypervisor can obtain the configuration information and device identification number of the virtualized device 1. The virtual machine hypervisor can store the configuration information exception of the virtualized device 1 from the device identification number to the virtualized device backup module. Thereafter, during the communication process between the virtual machine and the virtualized device, the virtualized device backup module can obtain the configuration information of the virtualized device and the status information of the data queue in real time through the physical function driver, and store them synchronously, thereby realizing the real-time backup of the configuration information of the virtualized device and the status information of the data queue.
[0079] Through the backup method of the virtualized device of the embodiment of the present application, when the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored; the virtual machine is configured to establish a connection with the virtualized device; during the communication between the virtualized device and the virtual machine, the configuration information of the virtualized device is synchronously updated, and the status data of the data queue is synchronously stored. Therefore, it is not necessary to perform a complete backup of the virtualized device, but only the configuration information of the virtualized device and the status data of the data queue can be backed up, which can effectively improve the backup efficiency of the virtual machine, and subsequently, based on the configuration information of the virtualized device and the status data of the data queue, the hot migration and hot switching of the virtualized device can be efficiently completed.
[0080] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0081] Reference Figure 5 , shows a structural block diagram of another embodiment of a backup device for a virtualized device according to an embodiment of the present application, which may specifically include the following modules:
[0082] The configuration storage module 501 is used to store the configuration information of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device;
[0083] A connection establishing module 502 is used to configure the virtual machine to establish a connection with the virtualization device;
[0084] The backup module 503 is used to synchronously update the configuration information of the virtualization device and synchronously store the status data of the data queue during the communication between the virtualization device and the virtual machine.
[0085] Optionally, the device further comprises:
[0086] The identification storage module is used to store the device identification number of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device.
[0087] Optionally, the connection establishment module includes:
[0088] The connection establishment submodule is used to store the configuration information of the virtualized device through the virtual machine backup module when the virtual machine requests to establish a connection with the virtualized device in the physical device.
[0089] Optionally, the backup module includes:
[0090] The backup submodule is used to synchronously update the configuration information of the virtualization device through the virtual machine backup module during the communication between the virtualization device and the virtual machine, and synchronously store the status data of the data queue.
[0091] Optionally, the backup submodule includes:
[0092] A data acquisition unit, used for acquiring real-time configuration information of the virtualized device and real-time status data of the data queue by calling the physical function driver through the virtual machine backup module during the communication between the virtualized device and the virtual machine;
[0093] The synchronization unit is used to store the real-time configuration information of the virtualized device and the real-time status data of the data queue through the virtual machine backup module to synchronize the configuration information of the virtualized device and the status data of the data queue.
[0094] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0095] The present application also provides an electronic device, including:
[0096] one or more processors; and
[0097] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the method described in the embodiments of the present application.
[0098] The embodiments of the present application also provide one or more machine-readable media on which instructions are stored, which, when executed by one or more processors, enable the processors to execute the methods described in the embodiments of the present application.
[0099] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0100] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0106] The above is a detailed introduction to a backup method for a virtualized device and a backup device for a virtualized device provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for backing up a virtualized device, characterized in that: The method comprises: When a virtual machine requests to establish a connection with a virtualized device in a physical device, the configuration information of the virtualized device is stored to record the running status of the virtualized device; the virtualized device is a virtual function obtained by virtualizing the physical device using a single-root I / O virtualization protocol; Configuring the virtual machine to establish a connection with the virtualization device; During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated, and the status data of the data queue is synchronously stored; after the faulty virtualization device returns to normal, the virtualization device is used to communicate with the virtual machine based on the operating status and the status data of the data queue to continue to provide services for the virtual machine.
2. The method according to claim 1, characterized in that: The method further comprises: When the virtual machine requests to establish a connection with a virtualized device in a physical device, the device identification number of the virtualized device is stored.
3. The method according to claim 1, characterized in that The step of storing the configuration information of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device includes: When the virtual machine requests to establish a connection with the virtualized device in the physical device, the configuration information of the virtualized device is stored through the virtual machine backup module.
4. The method according to claim 1, characterized in that: The step of synchronously updating the configuration information of the virtualized device and synchronously storing the status data of the data queue during the communication between the virtualized device and the virtual machine includes: During the communication between the virtualization device and the virtual machine, the configuration information of the virtualization device is synchronously updated through the virtual machine backup module, and the status data of the data queue is synchronously stored.
5. The method according to claim 4, characterized in that The step of synchronously updating the configuration information of the virtualization device and synchronously storing the status data of the data queue by the virtual machine backup module during the communication between the virtualization device and the virtual machine includes: During the communication between the virtualization device and the virtual machine, the virtual machine backup module calls the physical function driver to obtain the real-time configuration information of the virtualization device and the real-time status data of the data queue; The real-time configuration information of the virtualized device and the real-time status data of the data queue are stored through the virtual machine backup module to synchronize the configuration information of the virtualized device and the status data of the data queue.
6. A backup device for a virtualized device, characterized in that: include: A configuration storage module, used to store configuration information of the virtualized device in the physical device when the virtual machine requests to establish a connection with the virtualized device in the physical device, so as to record the running status of the virtualized device; the virtualized device is a virtual function obtained by virtualizing the physical device using a single-root I / O virtualization protocol; A connection establishment module, used for configuring the virtual machine to establish a connection with the virtualization device; A backup module is used to synchronously update the configuration information of the virtualization device and synchronously store the status data of the data queue during the communication between the virtualization device and the virtual machine; after the faulty virtualization device returns to normal, the virtualization device is used to communicate with the virtual machine based on the operating status and the status data of the data queue to continue to provide services for the virtual machine.
7. The device according to claim 6, characterized in that The device also includes: The identification storage module is used to store the device identification number of the virtualized device when the virtual machine requests to establish a connection with the virtualized device in the physical device.
8. The device according to claim 6, characterized in that The connection establishment module comprises: The connection establishment submodule is used to store the configuration information of the virtualized device through the virtual machine backup module when the virtual machine requests to establish a connection with the virtualized device in the physical device.
9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the electronic device to perform the method as claimed in any one of claims 1 to 5.
10. One or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method of any one of claims 1-5.
Citation Information
Patent Citations
Cloud computing system and cloud computing resource management method
CN102801806A
Method and device for processing read / write request in physical host
CN106201349A
Virtual machine thermal migration method and device
CN109753346A
Management method and system for cloud virtualization GPU and related device
CN112463305A
Method for Connecting Virtual Disk for Changing Between Virtual Machines
KR1020160012539A
