Hypervisor Virtual Machine Memory Mapping for Fast Host Upgrade

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Live migration of virtual machines during host upgrades is time-consuming and computationally expensive, requiring either restarting the virtual machines or migrating them to another host, which can disrupt uptime and is resource-intensive.

Innovation Solution

The hypervisor maps virtual machine memory to persistent storage, synchronizes changed data, pauses the virtual machine before host restarts, saves and restores the virtual machine state, and resumes operation after restarts, eliminating the need for special hardware like persistent memory cards with power sources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If live migration is performed to upgrade hosts, then host software can be upgraded, but the process becomes time-consuming and computationally expensive

Engineering Contradiction:
Improvehost upgrade capabilityVSAvoidmigration time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The hypervisor pre-synchronizes virtual machine memory to persistent storage before the host restart is initiated. By detecting the restart request in advance and copying changed memory pages to persistent storage beforehand, the system prepares the VM state in advance, enabling rapid resume after host upgrade without time-consuming live migration during the actual upgrade process.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If live migration is performed to upgrade hosts, then host software can be upgraded, but computational resources are heavily consumed

Engineering Contradiction:
Improvehost upgrade capabilityVSAvoidcomputational resource consumption
Core Design Contradiction:
Adaptability or versatilityVSUse of energy by moving object

Solution Approach 1:

The invention extracts the memory persistence requirement from the host system by mapping virtual machine memory directly to persistent storage with its own power source. This separation allows the host to be upgraded or restarted without migrating the VM, as the VM state is maintained independently in persistent storage, eliminating the computationally expensive live migration process entirely.

Inventive Principle:
Principle #2Taking out (Extraction)

3Reliability

If virtual machine memory is stored on persistent memory card with power source, then memory persistence during host crash is enabled, but specialized hardware requirements increase

Engineering Contradiction:
Improvememory persistenceVSAvoidhardware requirements
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The hypervisor implements a universal memory mapping mechanism that maps virtual machine memory to persistent storage through software configuration. This multi-functional approach allows the same persistent storage infrastructure to serve both as regular storage and as VM memory persistence medium, eliminating the need for specialized persistent memory cards with power sources while maintaining reliability.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12124866B2Fast virtual machine resume at host upgrade
Publication Date: 2024.10.22 RED HAT INC
  • US12124866B2 patent drawing
  • US12124866B2 patent drawing
  • US12124866B2 patent drawing

AI summary

A system includes at least one memory including a persistent storage, at least one processor in communication with the at least one memory, a virtual machine associated with a virtual machine memory, and a hypervisor executing on the at least one processor. The hypervisor is configured to map the virtual machine memory to the persistent storage, detect a request to restart a host, and synchronize the virtual machine memory by copying data to the persistent storage for each page of the virtual machine memory that has changed. The hypervisor is also configured to pause the virtual machine prior to the host restarting, save a virtual machine state to the persistent storage, restore the virtual machine state after the host restarts, and resume operation of the virtual machine.