VM Exit Triggering for Low-Power Timer Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Virtual machine exits are inefficiently managed in low-power states, as the VM cycle counter is unavailable in certain power states, forcing the hypervisor to maintain a timer for preempting VM execution, leading to increased processing overhead.

Innovation Solution

Configuring the virtual machine control structure (VMCS) to trigger a VM exit upon detecting a vCPU transition to a power state where the VM cycle counter is not available, allowing the hypervisor to start a timer for VM exit and resume execution, then disabling the timer and enabling VM exits triggered by the VM counter when the power state allows.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the hypervisor maintains a timer for preempting VM execution in low-power states, then VM execution can be resumed, but processing overhead increases

Engineering Contradiction:
ImproveVM execution resumptionVSAvoidprocessing overhead
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the timer mechanism from the hypervisor and relocates it to the VMM (virtual machine monitor) layer. This allows the hypervisor to avoid maintaining timers during low-power states, reducing its processing overhead while still enabling VM execution resumption through the VMM's timer management

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces an intermediary mechanism where the VMM acts as a mediator between the hypervisor and the timer system. The VMM configures the timer and handles timer-related operations, allowing the hypervisor to exit low-power states without directly managing timers, thus reducing processing overhead

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If the VM cycle counter is used for triggering VM exits, then timing precision is improved, but it becomes unavailable in certain power states

Engineering Contradiction:
Improvetiming precisionVSAvoidpower state compatibility
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The patent changes the operational parameters of the timing mechanism by switching between the VM cycle counter and the hypervisor timer based on the current power state. When the VM cycle counter is unavailable in low-power states, the system transitions to using the hypervisor timer, maintaining timing functionality across all power states

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements a dynamic timing system that adapts its behavior based on power state conditions. The VM cycle counter is used when available (high-precision mode), while the hypervisor timer serves as a fallback (standard-precision mode), creating a flexible timing architecture that responds to changing operational conditions

Inventive Principle:
Principle #15Dynamics

3Reliability

If the hypervisor keeps a timer running all the time to preempt VM execution, then VM preemption is ensured, but energy consumption increases

Engineering Contradiction:
ImproveVM preemptionVSAvoidenergy consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent implements periodic timer activation rather than continuous operation. The timer is activated only when needed (when VM preemption is required) and can be suspended or configured with longer intervals during low-power states, reducing energy consumption while maintaining preemption capability when necessary

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The patent enables the VMM to self-manage timer configuration and activation, allowing the system to automatically adjust timer behavior based on VM execution needs and power state conditions, eliminating the need for continuous hypervisor intervention and reducing overall energy consumption

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11175938B2Central processing unit support for efficient timers at low power states
Publication Date: 2021.11.16 RED HAT INC
  • US11175938B2 patent drawing
  • US11175938B2 patent drawing
  • US11175938B2 patent drawing

AI summary

A hypervisor managing a virtual machine (VM) running on a host computer system, modifies a virtual machine control structure (VMCS) associated with the VM to trigger a VM exit upon detecting a transition of the VM to a specified power state. Upon detection of the VM exit, a timer is initialized to trigger another VM exit, and execution of the VM in the specified power state is resumed.