Virtual Machine Boot State Detection via CPU Register Entropy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for determining the state of a virtual machine during booting are inefficient, often resulting in premature screenshot capture, leading to missed boot failure detection and inaccurate backup integrity evaluation.

Innovation Solution

The system employs CPU register monitoring and profiling to accurately determine the boot state by analyzing register values and entropies, using conditional statements and decision trees to differentiate between successful and failed boot states, and to capture screenshots at the correct moment.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If screenshot capture is performed based on fixed time intervals during booting, then the simplicity of implementation is maintained, but the accuracy of boot state detection deteriorates due to premature capture

Engineering Contradiction:
Improvesimplicity of implementationVSAvoidaccuracy of boot state detection
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The patent replaces the mechanical time-based screenshot capture mechanism with a software-based CPU register monitoring system. Instead of using fixed time intervals to determine when to capture screenshots, the system continuously monitors CPU register values (such as EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP, EIP) and entropy calculations to detect actual boot state transitions. This substitution allows for precise detection of boot completion and failure states without relying on imprecise time-based heuristics.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Measurement precision

If CPU register monitoring is implemented to accurately detect boot states, then the precision of boot state detection is improved, but the complexity of the system increases

Engineering Contradiction:
Improveprecision of boot state detectionVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent implements a self-service mechanism where the CPU's own register values serve as the detection source for boot state determination. The system leverages the natural behavior of CPU registers during boot processes - specifically, the values and changes in registers like EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP, and EIP - to automatically detect boot completion and failure states. This approach uses the system's inherent resources (CPU registers) rather than requiring external monitoring hardware or complex additional software components.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent utilizes parameter changes in CPU register values as the basis for detecting boot state transitions. By monitoring changes in register parameters (such as when EAX contains specific values indicating boot completion, or when register patterns indicate failure states) and calculating entropy changes in register value sequences, the system can precisely determine when the boot process has completed or failed. This parameter-based approach transforms the complex problem of boot state detection into monitoring specific, measurable register value changes.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If screenshot capture timing is advanced to catch boot failures, then the reliability of backup integrity evaluation is improved, but the accuracy of boot state determination deteriorates due to premature capture

Engineering Contradiction:
Improvereliability of backup integrity evaluationVSAvoidaccuracy of boot state determination
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent implements a feedback mechanism where CPU register values are continuously monitored and fed back into the boot state determination logic. The system calculates entropy based on register value sequences and uses this feedback to dynamically adjust screenshot capture timing. When register patterns indicate successful boot completion (specific value combinations in registers like EAX, EBX, ECX, EDX) or failure states (anomaly detection through entropy calculation), the system triggers screenshot capture at the precise moment, ensuring reliable backup integrity evaluation without premature capture.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10705939B2Apparatuses, methods and systems for determining a virtual machine state
Publication Date: 2020.07.07 DATTO LLC
  • US10705939B2 patent drawing
  • US10705939B2 patent drawing
  • US10705939B2 patent drawing

AI summary

APPARATUSES, METHODS AND SYSTEMS FOR DETERMINING A VIRTUAL MACHINE STATE (“CRV”) (transforms register retrieval requests, via CRV components, into boot success messages and screenshot capture command invocation outputs. A method comprises determining when to capture a screenshot of a virtual machine's display output by observing the values of a virtual CPU's registers, or the entropy of the virtual CPU's register values, obtained from a hypervisor in communication with the virtual machine's virtual CPU. The method further comprises determining when the virtual machine is at a boot success state and capturing a screenshot of the virtual machine display output.