| Gone through decades of doldrums from the birth of 1960s to now, virtualization tchnology once developed with the development of computer technology after 1990s. Operating systems has always faced a challenge from the conflict between the independence and interoperability of resources for the application from the interaction, that is, each application would like to run the system in a relatively independent environment, free from interference from other applications, while allowing to share and exchange system resources with other applications for easy and effective way. Conventional computer operating system lack of effective support for independence between applications,so the goals to run multiple independent operating systems on a computer platform is the development of virtualization technology.Virtualization technology has been rapidly developed in recent years, it can improbe improve processor utilization and processor vendors have introduced hardware support for virtualization, the processor, chipset and so on. Virtualization technology is now becoming widely used as a software layer.This thesis studies the basic theory and mechanisms of virtualization technologies, studyies the implementation principle of full virtualization, and the implementation techniques of processor and memory virtualization;and see the Hardware Virtualization technology as the target, study VMX virtual machine operating mode, and discuss Linux-based KVM virtualization solutions in depth.Based on the study and summarize the principle and key technologies of the Linux-based KVM virtual machine implementation, this thesis focuses on the memory virtualization technology and the EPT mechanism based Intel VT-x virtualization technology, combined with the methods of EPT page table address translation, with the specific demand, proposed and implemented a virtual memory optimization program in the EPT mechanism, and the optimization scheme is applied to actual projects. Based on the research process, do the analysis and testing for the conversion process on the Linux page addresses and virtual machine EPT page table address translation.Experiments and analysis show that the pre-allocation of the page table can be achieved to allocate fixed memory size effect for the client through the optimization of EPT.Based on the processor virtualization technology, the thesis also carried out the research of the VMCS Intel VT-x technology, and as a starting point for research of the creation of a virtual processor, a concrete realization of initialization and operation, and research the binding technology between virtual machine and processor core rely on VMCS technology and the process binding technology of Linux, designed and implemented a binding solution between a virtual machine and the processor core.In this thesis, extensive testing were carried out for the solutions the optimization and implementations, including the EPT optimization of the memory virtualization, virtual machine bound implementation and require memory for client machine and test data for statistical Analysis. The results of the analysis showed that the proposed optimization scheme EPT page tables and virtual machine bound achieved results, with practical significance. |