Exitless Guest to Host Notification via VMFUNC and EPT Extensions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current guest to host (G2H) notifications in virtualization environments rely on virtual machine exits (VMExits), which impact performance due to the overhead of causing Extended Page Table (EPT) misconfigurations and signaling event file descriptors, and do not effectively target inter-VM interrupt delivery.

Innovation Solution

The implementation of VMFUNC-based and EPT-assisted methods for G2H notifications that allow a guest vCPU to notify a host pCPU without causing VMExits, using VMFUNC.G2H instructions or EPT extensions to deliver notifications transparently, enabling exitless communication.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If VMExit-based G2H notification is used, then notification delivery is achieved, but performance deteriorates due to overhead

Engineering Contradiction:
Improvenotification deliveryVSAvoidvirtualization performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent extracts the notification delivery function from the VMExit mechanism by introducing a separate notification bit in the EPT page table. This allows G2H notifications to be delivered without triggering VMExits, thus separating the notification function from the page table configuration function and eliminating the performance overhead associated with VMExits.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces a notification bit as an intermediary mechanism between the guest driver and host. This notification bit, when set in the EPT page table, triggers a VMExit only when actually needed, rather than requiring a VMExit for every notification. The intermediary allows asynchronous notification delivery without immediate VMExit overhead.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If VMExit-based G2H notification is used, then notification is delivered, but scalability worsens due to overhead

Engineering Contradiction:
Improvenotification deliveryVSAvoidscalability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent extracts the notification delivery function from the VMExit mechanism by introducing a separate notification bit in the EPT page table. This allows G2H notifications to be delivered without triggering VMExits, thus separating the notification function from the page table configuration function and eliminating the performance overhead associated with VMExits.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The EPT page table is given multi-functionality by adding a notification bit that serves dual purposes: it controls both page table configuration and notification delivery. This universal mechanism allows the same data structure to handle multiple functions without requiring separate infrastructure, improving scalability.

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

3Reliability

If VMExit-based G2H notification is used, then notification is delivered, but efficiency worsens due to overhead

Engineering Contradiction:
Improvenotification deliveryVSAvoidnotification efficiency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements preliminary action by pre-configuring the notification bit in the EPT page table before actual notification is needed. The guest driver can set the notification bit in advance, and the host can clear it asynchronously when ready to process, eliminating the need for synchronous VMExit handling and reducing notification delivery time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent enables continuous useful action by allowing the guest driver to set notification bits continuously without blocking for VMExit completion. The host processes notifications asynchronously, maintaining continuous operation of both guest and host without interruptions caused by synchronous VMExit handling.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS20240192981A1Exitless guest to host notification
Publication Date: 2024.06.13 INTEL CORP
  • US20240192981A1 patent drawing
  • US20240192981A1 patent drawing
  • US20240192981A1 patent drawing

AI summary

Embodiments of exitless guest to host (G2H) notification are described. In some embodiments, G2H is provided via an instruction. An exemplary processor includes decoder circuitry to decode a single instruction, the single instruction to include a field for an opcode; and execution processing resources to execute the decoded single instruction according to the at least the opcode to cause an exitless guest to host notification from a virtual processor to a physical or virtual processor.