SR-IOV Virtual Machine Migration With Network Adapter State Transfer
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The challenge in virtual machine live migration is the inability to migrate state information of SR-IOV network adapters due to the virtual machine manager's unawareness of the storage medium, preventing seamless migration.
Innovation Solution
A live migration module is introduced to obtain and migrate the state information of SR-IOV network adapters by interacting with the physical function driver, using VFIO, and restore it to the destination server, ensuring the state information is correctly transferred and restored.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If SR-IOV network adapter virtualization is used to enable direct I/O access, then I/O performance is improved, but the virtual machine manager cannot obtain state information from the storage medium, preventing live migration
Solution Approach 1:
The patent introduces a live migration module as an intermediary component that bridges the gap between the virtual machine manager and the SR-IOV network adapter's storage medium. This module obtains state information from the storage medium and provides it to the virtual machine manager, enabling live migration while preserving the direct I/O access performance benefits of SR-IOV virtualization.
Solution Approach 2:
The patent segments the system into distinct functional components: the virtual machine manager, the live migration module, and the SR-IOV network adapter with its storage medium. By separating the state information retrieval function into a dedicated live migration module, the system enables live migration capabilities without compromising the performance-optimized direct I/O path used by virtual machines.
2Speed
If state information is stored in the storage medium of the physical network adapter, then direct access performance is improved, but the virtual machine manager is unaware of the storage medium and cannot migrate the state information
Solution Approach 1:
The live migration module serves as an intermediary that accesses the storage medium directly to retrieve state information. This approach preserves the fast direct access path for state information retrieval while simultaneously enabling the virtual machine manager to obtain and migrate this information to destination systems.
Solution Approach 2:
The live migration module copies state information from the storage medium of the source network adapter to the virtual machine manager, which then transfers it to the destination system. This copying mechanism enables state information transferability without disrupting the direct access performance, as the original storage medium remains intact and accessible.
3Adaptability or versatility
If virtual machine live migration is implemented, then resource allocation flexibility is improved, but service interruption time increases due to inability to migrate network adapter state
Solution Approach 1:
The live migration module performs preliminary retrieval of state information from the storage medium before the actual migration process. By obtaining the network adapter state in advance and providing it to the virtual machine manager, the system minimizes service interruption time during migration while maintaining flexible resource allocation capabilities.
Solution Approach 2:
The live migration module continuously monitors and retrieves state information from the storage medium, providing feedback to the virtual machine manager about the migration status. This feedback mechanism enables the system to maintain resource allocation flexibility while reducing service interruption time through coordinated state transfer.
Data Source
AI summary
Example virtual machine live migration methods and apparatus are described. In one example method, a first virtual machine which runs on a source server is migrated to a destination server. The source server includes a single-root input/output virtualization (SR-IOV) network adapter. The virtual machine manager delivers a live migration command to the live migration module. The live migration module obtains, according to the live migration command, information that needs to be migrated and that is about the first virtual machine, and reports the information to the virtual machine manager, where the information includes state information of the first virtual network adapter and memory data of the first virtual machine. The virtual machine manager sends the state information and the memory data of the first virtual machine to the destination server.


