VM State Indication Synchronization for Peripheral Devices

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current virtualization systems face challenges in synchronizing the state of backend peripheral devices with virtual machines (VMs), as hypervisors stopping or starting VMs do not concurrently affect peripheral devices, leading to issues like changed VM states being unrecognized by debuggers, complicating debugging and resource management.

Innovation Solution

A mechanism is introduced where the hypervisor updates a VM state indication in memory to reflect changes in the VM's running state, and peripheral devices are programmed to check this indication before processing, ensuring they stop or continue operations based on the VM's status, preventing unauthorized changes to VM memory.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If peripheral devices operate independently from VM state management, then device operational autonomy is maintained, but VM state synchronization is lost leading to debugging complications

Engineering Contradiction:
Improvedevice operational autonomyVSAvoidVM state synchronization
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where the hypervisor notifies peripheral devices of VM state changes through interrupt signals. The peripheral devices register interest in VM state changes, and the hypervisor sends notifications when states change, enabling devices to synchronize their operational state with the VM state while maintaining independence.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary notification mechanism between the hypervisor and peripheral devices. This intermediary system uses registered interest lists and interrupt signals to mediate communication, allowing peripheral devices to be informed of VM state changes without being directly coupled to the VM management logic.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If peripheral devices continue processing after VM stop, then device utilization is maximized, but unauthorized VM memory changes occur complicating debugging

Engineering Contradiction:
Improvedevice utilizationVSAvoidVM state tracking accuracy
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent makes peripheral device operational state dynamic by linking it to the VM's running state. When the VM is running, peripheral devices can process requests and utilize resources. When the VM stops, the hypervisor notifies peripheral devices through interrupts, causing them to pause or redirect processing, thus dynamically adapting device utilization to VM state while preventing unauthorized memory changes.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent implements preliminary anti-action by having the hypervisor notify peripheral devices of VM state changes before the devices can potentially cause harmful operations. The notification mechanism prevents peripheral devices from processing requests that would modify VM memory when the VM is not running, blocking potentially harmful actions before they occur.

Inventive Principle:
Principle #9Preliminary anti-action

3Reliability

If hypervisor manages VM state changes centrally, then state control is maintained, but peripheral device responsiveness to state changes is delayed

Engineering Contradiction:
Improvestate control accuracyVSAvoidstate change propagation speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent applies preliminary action by having peripheral devices register their interest in VM state changes in advance with the hypervisor. This pre-registration creates a ready-made notification pathway, so when state changes occur, the hypervisor can immediately send interrupt signals to the appropriate devices without needing to establish communication channels at the moment of state change.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9183029B2Synchronizing backend peripheral devices with a virtual machine running state
Publication Date: 2015.11.10 RED HAT ISRAEL
  • US9183029B2 patent drawing
  • US9183029B2 patent drawing
  • US9183029B2 patent drawing

AI summary

A mechanism for synchronizing backend peripheral devices with a virtual machine (VM) running state is disclosed. A method of the invention includes modifying a running state of a (VM managed by a hypervisor of a host machine, and updating a VM state indication associated with the VM to reflect the change in running state of the VM, wherein a peripheral device associated with the VM accesses the VM state indication to determine wh her to continue processing a VM state changing instruction.