Hypervisor Dynamic Pause Loop Exiting
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Virtual machines managed by hypervisors face inefficiencies due to limited hardware features for pause loop exiting, which are restricted to software with the highest privilege level, leading to wasted processing time during spin locks.
Innovation Solution
Implementing a software-based dynamic pause loop exiting mechanism within the hypervisor, where thresholds for enabling and disabling pause exiting are set to optimize virtual machine management, allowing pause exiting for software without the highest privilege level and adjusting these thresholds based on elapsed time to balance resource usage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If hardware pause loop exiting features are used, then processing efficiency is improved, but accessibility is limited to software with the highest privilege level
Solution Approach 1:
The patent introduces a hypervisor as an intermediary layer between the hardware pause loop exiting feature and the virtual machine software. The hypervisor captures and handles pause instructions from virtual machine software that lacks the highest privilege level, effectively mediating access to the hardware feature. This allows software without special privilege levels to benefit from efficient pause loop exiting while maintaining the hardware security model.
Solution Approach 2:
The patent implements a software-based pause exiting mechanism in the hypervisor that replicates the functionality of hardware pause loop exiting. By copying the essential behavior of the hardware feature at the software level, the system enables pause exiting capability for virtual machine software that cannot directly access hardware features, thus extending accessibility while preserving the efficiency benefit.
2Productivity
If pause exiting is frequently enabled, then virtual machine management efficiency is improved, but resource allocation stability deteriorates
Solution Approach 1:
The patent implements dynamic threshold adjustment for enabling and disabling pause exiting based on system conditions and elapsed time. The hypervisor monitors system state and adjusts the thresholds dynamically, allowing pause exiting to be enabled when beneficial for efficiency while disabling it when stability is prioritized. This dynamic approach resolves the contradiction by adapting the system behavior to current conditions rather than using fixed settings.
Solution Approach 2:
The patent changes the parameters (thresholds) for enabling and disabling pause exiting based on system state and elapsed time. By adjusting these parameters dynamically, the system can optimize virtual machine management efficiency when needed while maintaining resource allocation stability when required, thus resolving the contradiction between efficiency improvement and stability maintenance.
Data Source
AI summary
A method performed by a physical computing system includes, with a hypervisor, determining a first time difference between when pause exiting was last enabled for the virtual machine and present time. The method further includes, with the hypervisor, in response to determining that the first time difference is greater than an enablement threshold, enabling pause exiting. The method further includes, with the hypervisor, with pause loop exiting enabled, determining a second time difference between when pause exiting was last disabled and the present time. The method further includes, with the hypervisor, disabling pause exiting in response to determining that the second time difference exceeds a disablement threshold.


