Virtual Machine Live Migration Across Incompatible Processors
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Virtual machine live migration fails across processors with incompatible instruction sets, such as Intel's Broadwell and Skylake, due to differences in AVX512 instruction sets, limiting compatibility and performance in data centers.
Innovation Solution
A method and apparatus for live migration of virtual machines across different generation processors involves trapping exceptions, intercepting and analyzing interrupt contexts, decoding instruction data, and emulating execution processes using the destination host's instruction set, creating a processor feature map, and live-migrating the virtual machine, enabling the use of higher instruction set capabilities.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If host-passthrough mode is used to maximize instruction set capability exposure, then performance is improved, but live migration compatibility deteriorates
Solution Approach 1:
The patent introduces an intermediary translation layer between the virtual machine and the destination processor. When a virtual machine instruction uses an instruction set feature not supported by the destination processor, the system intercepts the instruction, translates it into equivalent operations using the destination processor's instruction set, and executes the translated instructions. This intermediary translation mechanism allows the virtual machine to retain access to higher instruction set capabilities while the destination processor executes only compatible instructions, thus resolving the contradiction between performance and migration compatibility.
2Adaptability or versatility
If host-model mode is used to improve live migration compatibility, then compatibility is improved, but virtual machine performance deteriorates
Solution Approach 1:
The patent implements a dynamic approach where the instruction set exposure model is not fixed but adapts based on the destination processor's capabilities. The system dynamically determines which instruction set features are supported by the destination processor and adjusts the translation behavior accordingly. This dynamic adaptation allows the system to maximize performance by translating only the necessary instructions while maintaining compatibility, rather than statically limiting all instruction set features as in traditional host-model mode.
3Adaptability or versatility
If custom-model mode is used to achieve maximum live migration compatibility, then compatibility is improved, but performance and instruction set capability deteriorate
Solution Approach 1:
The patent applies local quality by selectively translating only the specific instructions that are incompatible with the destination processor, rather than applying a uniform translation approach to all instructions. The system identifies and translates only the necessary instruction set features that differ between source and destination processors, leaving compatible instructions to execute natively. This localized translation approach minimizes performance overhead while ensuring compatibility, resolving the contradiction between compatibility and performance.
Data Source
AI summary
The present application relates to the technical field of computers. Provided are a method and apparatus for live migration of a virtual machine. The method comprises: when executing, in a virtual machine module on a destination host, an instruction of an instruction set that the destination host does not have but a source host has, trapping an exception; a system virtualization module intercepting the exception, and parsing an interrupt context of the exception; according to instruction address information of the interrupt context, acquiring data of the instruction, and decoding the same; and emulating an execution process of the instruction on the basis of the instruction set of the destination host. By means of the present application, the live migration of a virtual machine of cross-generation processors can be realized, while a higher instruction set capability is maintained.

