Virtual Device Remapping Between Physical And Emulated Implementations
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional techniques lack the ability to switch between device implementations for virtual devices in a virtual machine (VM) without the VM being aware of the change, particularly when migrating the VM to a destination node lacking the necessary physical device support.
Innovation Solution
Implementing a device monitor that manages the switch between hardware and software device implementations transparently by using a device monitor to map and remap virtual devices to either physical or emulated devices based on availability and resource utilization, ensuring the VM remains unaware of the switch.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a virtual device is mapped to a physical device implementation, then device performance is improved, but device availability deteriorates when the physical device is unavailable or when migrating to a node without the physical device
Solution Approach 1:
The system dynamically changes the device implementation parameter between physical and emulated modes based on availability conditions. When the physical device becomes unavailable or during migration to a node without the physical device, the mapping is switched from the physical device to an emulated device implementation, maintaining device functionality while adapting to changing conditions
Solution Approach 2:
The virtualization layer acts as an intermediary between the virtual device and the physical device. It provides a pass-through interface that can transparently switch between direct physical device access and emulated device access, allowing the virtual device to maintain its functionality regardless of physical device availability
2Reliability
If a device implementation switch is implemented, then device availability is improved, but system complexity increases
Solution Approach 1:
The device monitor automatically monitors device availability conditions and performs self-service switching between physical and emulated device implementations without requiring manual intervention or complex external control mechanisms. The system autonomously detects when switching is needed and executes the remapping operation
Solution Approach 2:
The virtualization layer implements a universal device interface that can support multiple implementation types (physical and emulated) through a single unified mechanism. This multi-functionality allows the same virtual device interface to work with different backend implementations without increasing overall system complexity
3Productivity
If a virtual device is mapped to a physical device, then device performance is improved, but adaptability deteriorates when migrating to nodes without the physical device
Solution Approach 1:
The device mapping is made dynamic rather than static, allowing the virtual device to adapt its implementation based on the destination node's capabilities. During migration, the system dynamically evaluates whether the physical device is available at the destination node and switches to an emulated implementation if necessary, enabling seamless migration while maintaining performance when possible
Data Source
AI summary
Various embodiments set forth techniques for managing devices in a virtual environment. The techniques include mapping a virtual device of a virtual computing instance to a first device implementation. The techniques further include, in response to a trigger condition, remapping the virtual device to a second device implementation. The remapping is transparent to the virtual computing instance.


