Virtual Machine Monitor Clock Distribution

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing virtual machine systems face inaccuracies and time delays due to virtualized clock hardware, necessitating an accurate clock distribution method for Guest Operating Systems (GOS) within these systems.

Innovation Solution

A virtual machine monitor intercepts access operations to virtual clock resources, forwards them to corresponding real clock resources, and injects interrupts into the Advanced Programmable Interrupt Controller (APIC) of the virtual CPU, ensuring accurate clock services by distributing real clock resources such as HPET, RTC, PIT, and LVTT to GOS, while maintaining correspondence between GOS and real clock resources.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If virtual clock hardware is used in virtual machine systems, then multiple Guest Operating Systems can share clock resources, but timing accuracy and time delay performance deteriorate

Engineering Contradiction:
Improveclock resource sharingVSAvoidtiming accuracy
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The VMM acts as an intermediary that intercepts GOS access operations to virtual clock resources and forwards them to corresponding real clock resources. This mediator approach allows multiple GOSs to access clock resources through virtual interfaces while maintaining accurate timing by routing operations to physical hardware clocks, thus resolving the contradiction between resource sharing and timing precision.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system creates virtual clock resources that copy the interface and functionality of real clock hardware, allowing GOSs to interact with familiar clock APIs. The VMM maintains correspondence between virtual and real clock resources, enabling accurate timekeeping by translating virtual clock operations into real hardware operations, thus providing both sharing capability and timing accuracy.

Inventive Principle:
Principle #26Copying

2Adaptability or versatility

If virtual clock resources are used in virtual machine systems, then clock resource sharing is enabled, but time delay increases

Engineering Contradiction:
Improveclock resource sharingVSAvoidtime delay
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The VMM serves as an intermediary that efficiently forwards GOS clock access operations directly to real clock resources without unnecessary processing delays. By maintaining direct correspondence between virtual and real clock resources, the system minimizes time delay while enabling resource sharing, as the VMM simply routes operations rather than processing them through complex virtualization layers.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system pre-establishes correspondence relationships between virtual clock resources and real clock resources during system initialization. This preliminary action allows the VMM to directly forward operations without needing to resolve mappings during runtime, thereby reducing time delay while maintaining the ability to share clock resources among multiple GOSs.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If real clock resources are distributed to GOS through VMM, then timing accuracy is improved, but system complexity increases

Engineering Contradiction:
Improvetiming accuracyVSAvoidclock distribution system
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The VMM acts as a manageable intermediary that handles the complexity of distributing real clock resources to multiple GOSs. By centralizing the correspondence management and access operation forwarding in the VMM layer, the system achieves accurate timing without requiring complex modifications to individual GOSs or the underlying hardware, thus containing system complexity in a single manageable component.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system uses virtual clock resources as simplified copies that present a uniform interface to GOSs while hiding the complexity of real hardware distribution. The VMM maintains the correspondence between virtual and real resources, allowing GOSs to interact with simple virtual interfaces while the complex real clock distribution is handled transparently by the VMM, thus improving timing accuracy without significantly increasing visible system complexity.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS8086890B2Virtual machine monitor, virtual machine system and clock distribution method thereof
Publication Date: 2011.12.27 LENOVO (BEIJING) LTD
  • US8086890B2 patent drawing
  • US8086890B2 patent drawing
  • US8086890B2 patent drawing

AI summary

A virtual machine monitor, a virtual machine system and a clock distribution method thereof. The clock distribution method includes: distributing real clock resource to a Guest Operation System (GOS), and saving correspondence between said GOS and said real clock resource; intercepting an access operation of said GOS to a virtual clock resource; sending said access operation to the corresponding real clock resource according to said correspondence, and then performing a write operation, or injecting an interrupt of said real clock resource into a local Advanced Programmable Interrupt Controllers (APIC) of a virtual CPU of the corresponding GOS of said GOSs.