Hypervisor Clock Component for Virtual Device Timing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Virtual machines lack direct access to accurate and precise clock times due to the inefficiency of emulating a real-time clock device, which increases computing resources usage and decreases precision, making it unsuitable for operations requiring precise timing, such as network synchronization.

Innovation Solution

A clock component within the hypervisor continuously obtains and writes current clock times from a real-time clock device to a memory location accessible by virtual devices, allowing them to obtain accurate and precise clock times without the need for resource-intensive emulation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a real-time clock device is emulated in the hypervisor to provide clock times to virtual devices, then virtual devices can access clock times, but computing resources usage increases and precision decreases

Engineering Contradiction:
Improveclock time precisionVSAvoidcomputing resources usage
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent extracts the clock time data from the emulated RTC device and places it directly into a memory location that virtual devices can access. This separates the clock time generation function from the emulation overhead, allowing virtual devices to read precise clock times directly from memory without going through the emulated device interface, thereby reducing computing resource usage while maintaining precision.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent introduces a memory location as an intermediary between the real-time clock device and virtual devices. Instead of virtual devices interacting with an emulated RTC device, they directly access the memory location where clock times are stored, eliminating the emulation layer and its associated resource overhead while preserving time precision.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If a real-time clock device is emulated in the hypervisor, then virtual devices can obtain clock times, but the clock times may lag behind real time

Engineering Contradiction:
Improvevirtual device clock accessVSAvoidclock time accuracy
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The patent extracts clock time data directly from the real-time clock device and stores it in a memory location accessible by virtual devices. This bypasses the emulated RTC device that causes timing lag, allowing virtual devices to access accurate real-time clock values directly without the delays introduced by emulation.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The hypervisor continuously updates the memory location with current clock times from the real-time clock device in advance. This ensures that when virtual devices read from the memory location, they immediately obtain up-to-date accurate time values without waiting for emulation cycles or experiencing lag.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If clock times are continuously updated in memory for virtual device access, then precision is improved, but memory access overhead increases

Engineering Contradiction:
Improveclock time precisionVSAvoidmemory management complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent merges the clock time storage function with the existing memory management infrastructure of the hypervisor. By using a memory location that is already part of the hypervisor's address space and management system, the solution avoids creating separate complex storage mechanisms, thereby reducing overall system complexity while maintaining continuous update capability for precise timing.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11748141B2Providing virtual devices direct access to clock times in memory locations managed by a hypervisor
Publication Date: 2023.09.05 RED HAT INC
  • US11748141B2 patent drawing
  • US11748141B2 patent drawing
  • US11748141B2 patent drawing

AI summary

Providing clock times to virtual devices. In one embodiment, a method includes identifying a real-time clock device of a host computing device. The host computing device comprises a hypervisor and a virtual machine. The method also includes determining that a virtual device used by the virtual machine will use clock times obtained from the real-time clock device. The method further includes obtaining, by a processing device of the host computing device, a current clock time from the real-time clock device of the host computing device. The method further includes providing the current clock time to the virtual device.