Backup VM Live Mode Transition at Instruction Boundaries
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In virtualized computer systems, the transition of a backup virtual machine (VM) from replay mode to live execution mode is not effectively controlled, potentially leading to inconsistencies and increased complexity in device emulation and IO operations, especially when allowed to go live in the middle of instruction emulation or with coarser granularity, which complicates recording and replay processes and introduces latency.
Innovation Solution
The backup VM is allowed to enter live execution mode at instruction boundaries by marking the last log entry of an instruction's emulation as a 'go-live' point and not replaying log entries beyond that point, ensuring consistency and simplifying the implementation by restricting live execution to precise instruction boundaries.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If the backup VM is allowed to transition to live execution mode at any point during instruction emulation, then the system responds faster to primary VM failures, but device state consistency is compromised and implementation complexity increases
Solution Approach 1:
The patent segments the execution flow by identifying specific instruction boundaries as valid transition points. The backup VM is restricted to transitioning only at these segmented points rather than continuously, ensuring device state consistency while maintaining responsive failover capability.
Solution Approach 2:
The system performs preliminary identification of valid go-live points during the recording phase. By pre-marking instruction boundaries where transition is safe, the backup VM can quickly transition without runtime analysis, achieving fast failover while preserving device state integrity.
2Manufacturing precision
If the backup VM replays all log entries without restriction, then complete instruction emulation is achieved, but latency increases and implementation complexity grows
Solution Approach 1:
The patent extracts and removes log entries that occur after the identified go-live point from the replay stream. The backup VM replays only the necessary subset of log entries up to the transition point, eliminating unnecessary replay operations and reducing latency while maintaining complete instruction emulation up to the transition boundary.
3Measurement precision
If finer granularity is used for go-live points, then transition precision is improved, but device emulation complexity and recording overhead increase
Solution Approach 1:
The patent applies local quality by marking specific instruction boundaries as valid go-live points based on their individual characteristics. Rather than uniformly allowing transitions at all instruction boundaries or using coarse-grained blocks, the system selectively identifies precise transition points where device state consistency is guaranteed, optimizing both precision and complexity.
Data Source
AI summary
A backup VM is allowed to enter live execution mode at instruction boundaries but not in the middle of emulation of a single instruction. This is accomplished by having the last log entry of multiple entries generated during emulation of an instruction to have an indication of a “go-live” point and by having the backup VM not replay log entries provided by the primary VM beyond the log entry that indicates the “go-live” point.


