节点文献

基于VT-x的处理器虚拟化技术研究

Research on Technology of CPU Virtualization Based on VT-x

【作者】 时光

【导师】 郭玉东;

【作者基本信息】 解放军信息工程大学 , 计算机应用技术, 2010, 硕士

【摘要】 随着系统资源在规模上的不断扩展,计算机领域面临着如何充分利用硬件资源的重大问题。虚拟化技术作为一种新型计算模式成为解决此类问题的关键,虚拟机监控器(VMM)是实施虚拟化的基础。目前VMM采用了多种手段实现处理器虚拟化和虚拟机管理,其中Intel VT-x技术在硬件级别上提供了相当程度的支持。由于VT-x技术与其他多种处理器虚拟化方法共存,同时硬件平台和应用环境也存在较大差异,因此需要在采用VT-x技术的基础上兼顾到其它多种影响因素,以最大程度的发挥硬件潜能。本文在一种协作型VMM框架下,完成了基于VT-x平台的处理器虚拟化和虚拟机管理两大子系统的设计与实现,主要解决了以下四个方面问题:1、通过在在多处理器平台上采用基于主体的处理器划分方式,隔离了VMM和IO处理机(IOPM)对处理器的控制冲突,使处理器分配方式能够满足协作模型的特殊需求。2、设计了基于VT-x的处理器虚拟化方案,在处理器操作模式转换的基础上,完成虚拟处理器(VCPU)执行环境构造。VCPU行为限制,有效实现了处理器虚拟化。进一步提出一种用户可配置虚拟机控制结构的方案,以提升某些应用环境中的虚拟化性能。3、针对协作模型对VCPU调度的影响,在对各种VCPU调度算法比对筛选的基础上,提出了一种静态分配与动态调度相结合的调度策略,并依此设计了改进型的s-credit调度算法,能够较好的兼顾I/O密集型和计算密集型应用。4、依据协作模型的特点,设计出一种轻量级的虚拟机管理结构,体积小巧层次清晰,并建立了用户交互模型,能够为用户提供便利的虚拟机管理接口。本文在VMM原型系统中完成了上述工作,对I/O密集型和计算密集型应用在虚拟化系统中的效率进行了测试。进一步在对VCPU退出测试的基础上,将退出原因进行基于概率的分类统计,为性能优化提供了参考依据。实验结果表明,本文完成的相关工作可以满足协作型VMM对处理器的各种需求,在处理器虚拟化及虚拟机管理方面具备较高的效率。

【Abstract】 Computer field faced an important problem that how to use hardware resource adequately with incessant enlargement of system resource in dimensions. Virtualization becomes a key to solve this problem as a new-style mode of computing, Virtual Machine Monitor (VMM) is the base to implement virtualization.VMM adopt various approaches to implement CPU virtualization and Virtual Machine management at present, thereinto technology of Intel VT-x provides support with meetly degree in the level of hardware. Technology of VT-x coexist with other approaches of CPU virtualization, hardware platform and application environment have biggish different at the same time, thus it is need to consider diversiform influencing factors in the base of technology of VT-x, consequently exert the potential of hardware farthest.In the frame of a VMM based cooperation model,this thesis accomplish the design and implementation of two function that CPU virtualization and Virtual Machine management in the platform based VT-x , the four contributions of this thesis are that:First, this thesis adopts the approach of mainstay based CPU partition in the platform of multi-core, it can isolate the control conflict of CPU between VMM and IO process machine (IOPM), thus make the allocation quomodo of CPU meet the request of cooperation model.Second, this thesis designs VT-x based CPU virtualization solution. Based on CPU operation mode conversion, it completes Virtual CPU (VCPU) executing environment establish, VCPU behavior limits. It effectively implements CPU virtualization. Furthermore, it proposes a customized VM control architecture solution in order to increase the virtualization performance in certain application environments.Third, aiming at the influence of VCPU schedule caused by cooperation model and after comparing various VCPU schedule algorithms, this thesis proposes a schedule model in which static allocation and dynamic schedule are combined, based on which it designs an advanced s-credit schedule algorithm, with well considering the application of I/O denseness and computing denseness at the same time.Fourth, according to the character of cooperation model, this thesis designs a lightweight Virtual Machine management architecture, which has clear arrangement with small volume, and establishes user interaction model, that can provide users convenient virtual machine management interfaces.This thesis accomplishes task above in the prototype system of VMM, and efficiency of application including I/O denseness and computing denseness in system of virtualization are tested. Based on exit tests of VCPU, it further classified statistics the probabilities of exit causes. The result shows that interrelated task in this thesis can meet various need of VMM in CPU, and have upper efficiency in CPU virtualization and management of Virtual Machine.

节点文献中: 

本文链接的文献网络图示:

本文的引文网络