Virtual Machine Timer Interrupt Injection Without Mode Switching

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The frequent switching between host and virtualization modes to manage timers in virtual machines leads to high consumption of VCPU processes, reducing processing efficiency.

Innovation Solution

An interrupt information processing method that allows virtual machines to receive timer interrupts directly in virtualization mode by modifying indication information and using an interrupt injection module, eliminating the need for mode switching.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the virtual machine switches between host mode and virtualization mode to manage timers through VMM, then timer management can be performed, but VCPU process consumption increases and processing efficiency decreases

Engineering Contradiction:
Improvetimer management capabilityVSAvoidprocessing efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts the timer interrupt handling function from the VMM layer and implements it directly in the virtualization mode of the virtual machine. By taking out the timer management capability from the host mode VMM and embedding it in the guest mode virtual machine, the system eliminates the need for mode switching while maintaining timer management functionality.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces an interrupt injection module as an intermediary mechanism that allows timer interrupts to be injected directly into the virtual machine's VCPU process in virtualization mode. This intermediary enables the virtual machine to receive and process timer interrupts without exiting to host mode, thus maintaining continuous operation in virtualization mode.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the virtual machine switches between host mode and virtualization mode multiple times for timer operations, then timer interrupts can be processed, but VCPU process consumption increases

Engineering Contradiction:
Improvetimer interrupt processingVSAvoidVCPU process consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent performs preliminary action by pre-configuring the virtual machine in virtualization mode to be capable of receiving timer interrupts. The interrupt injection module is pre-established and the virtual machine's interrupt handling capabilities are pre-configured, so when a timer interrupt occurs, the virtual machine can process it immediately without needing to switch to host mode first.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent ensures continuous operation in virtualization mode by enabling the virtual machine to handle timer interrupts directly. Instead of repeatedly switching between host and virtualization modes, the virtual machine maintains continuous useful action in virtualization mode, processing both regular tasks and timer interrupts without interruption or mode switching.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS20250217182A1Interrupt information processing method and apparatus, device, and storage medium
Publication Date: 2025.07.03 BEIJING VOLCANO ENGINE TECH CO LTD
  • US20250217182A1 patent drawing
  • US20250217182A1 patent drawing
  • US20250217182A1 patent drawing

AI summary

An interrupt information processing method and apparatus, a device, and a storage medium. The method includes: determining a target VCPU process corresponding to a timer setting instruction in response to receiving the timer setting instruction, and obtaining, through a virtual machine corresponding to the target VCPU process, a timer interrupt identifier corresponding to the target VCPU process; modifying, through the virtual machine, indication information corresponding to the timer interrupt identifier to preset indication information, the indication information indicating whether the target VCPU process can receive timer interrupt information in a virtualization mode, and the preset indication information indicating that the target VCPU process can receive the timer interrupt information in the virtualization mode; and injecting, through an interrupt injection module, the timer interrupt information into the target VCPU process in the virtualization mode in response to that set time corresponding to the timer setting instruction is up.