摘要
研究了虚拟机退出及恢复运行时的开销问题,提出了一种用于降低虚拟机切换时进行保存及恢复现场的开销的延迟存储方法。该方法的主要思想是利用修改虚拟机软件源代码的方式,通过判断虚拟机恢复运行时是否依然是上次退出时的同一个虚拟机,来减少需要保存和恢复的寄存器数量。这个方法不需要对硬件设计进行改动,可以支持多核操作系统和多个虚拟机同时运行的情况,因此具有广泛的适用性。在龙芯3A1500处理器平台上的试验结果显示,上述延迟存储方法与现有方法相比,可以降低虚拟机退出开销65%,虚拟机整体性能提升3%到10%。
The cost of virtual machines' exit and restoration was studies, and a method based on delay storing was proposed to reduce the cost of saving and restoring registers when virtual machines exit or resume. The main mechanism of the method is to reduce the amount of registers to be saved and restored by changing the source code of the virtual machine software and judging whether the virtual machine in resuming is still the same one that exited last time. The proposed method needs no hardware change, and supports muhicore operating systems and concurrent operation of multiple virtual machines, leading to a wide applicability. The results of the test conducted on the Loongson 3A1500 platform demonstrated that the cost of virtual machine exit of the proposed method was reduced by 65% compared with the existing method, and the performance of the whole virtual machine was increase by 3% to 10%.
出处
《高技术通讯》
CAS
CSCD
北大核心
2015年第6期593-598,共6页
Chinese High Technology Letters
基金
"核高基"科技重大专项课题(2009ZX01028-002-003
2009ZX01029-001-003
2010ZX01036-001-002
2012ZX01029-001-002-002
2014ZX01020201)
国家自然科学基金(61221062
61100163
61133004
61173001
61232009
61222204
61432016)
863计划(2012AA010901
2012AA011002
2012AA012202
2013AA014301)资助项目
关键词
系统虚拟化
虚拟态
虚拟机退出
延迟存储
system-level virtualization, guest mode, virtual machine exit, delay storing