Hypervisor Device Unplug Manager for Safe Hot Removal

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In virtual computing environments, hot unplugging devices while a virtual machine is running is challenging due to difficulties in handling the sudden disappearance of devices, especially when the guest operating system is slow or lacks hot unplug processing functionality, leading to inefficient and unsafe removal processes.

Innovation Solution

A device unplug manager within the hypervisor tracks the last accessed state of devices by guests, allowing for safe hot unplug operations by determining if the guest has accessed the device since the last reset, enabling immediate removal without waiting for acknowledgment if the guest has not accessed the device, and notifying the guest if it has.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the guest operating system is notified of the hot unplug request and asked to prepare for device removal, then the removal process is safe and reliable, but the removal time becomes excessively long especially when the guest is slow or lacks hot unplug processing functionality

Engineering Contradiction:
Improvesafe device removalVSAvoiddevice removal time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The hypervisor performs preliminary actions by tracking device access states and pre-validating removal safety conditions before the actual hot unplug operation. The device unplug manager maintains state information indicating whether the guest has accessed the device since the last reset, allowing the hypervisor to determine in advance whether removal is safe without waiting for guest acknowledgment.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent extracts the safety validation logic from the guest operating system and places it in the hypervisor's device unplug manager. By maintaining state tracking and access information in the hypervisor rather than relying on the guest, the system removes the bottleneck of guest processing while preserving safety through centralized state management.

Inventive Principle:
Principle #2Taking out (Extraction)

2Reliability

If the hypervisor waits for guest acknowledgment before removing the device, then data loss is prevented, but productivity and operational efficiency decrease

Engineering Contradiction:
Improvedata loss preventionVSAvoiddevice removal efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The device unplug manager implements a feedback mechanism by tracking whether the guest has accessed the device since the last reset. This state information provides feedback to the hypervisor about current device usage, enabling intelligent decisions about safe removal without requiring explicit guest acknowledgment for every hot unplug operation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system enables self-service hot unplug operations where the hypervisor autonomously determines removal safety based on tracked state information. When the state indicates the guest has not accessed the device, the hypervisor can immediately proceed with removal without waiting for guest service or acknowledgment, thereby improving productivity while maintaining data integrity.

Inventive Principle:
Principle #25Self-service

3Adaptability or versatility

If the guest operating system is slow or lacks hot unplug processing functionality, then the system maintains compatibility with various guests, but the device removal process becomes inefficient and time-consuming

Engineering Contradiction:
Improveguest compatibilityVSAvoidremoval process speed
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The device unplug manager acts as an intermediary layer between the hypervisor and the guest operating system. It maintains state tracking and access information independently of the guest's capabilities, allowing the hypervisor to make informed removal decisions without being constrained by the guest's speed or functionality. This intermediary mechanism preserves compatibility while enabling efficient removal operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The hypervisor performs preliminary validation of removal safety by checking the state information maintained by the device unplug manager before initiating hot unplug. This preliminary action eliminates the need to wait for the guest's processing speed, as the safety determination is already made based on pre-tracked state information about device access since the last reset.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS8856788B2Activity based device removal management
Publication Date: 2014.10.07 RED HAT ISRAEL
  • US8856788B2 patent drawing
  • US8856788B2 patent drawing
  • US8856788B2 patent drawing

AI summary

Methods and systems for managing a removal of a device from a guest managed by a hypervisor in virtualized computing environment. A hypervisor maintains in a memory a last accessed state associated with a virtual machine executing a guest. The last accessed state is cleared by the hypervisor when the virtual machine is reset and the last accessed state is set when the hypervisor receives a request from the guest to access a device. The hypervisor receives a request to remove the device from the guest of the virtual machine and remove the device from the guest when the last accessed state is clear.