CPU virtualization technology
The physical CPU in the computer server is virtualized into a virtual CPU, the system operation can use one or more virtual CPUs at the same time, and the virtualized CPUs in the computer server system can be isolated from each other. At present, many computer operating systems are built based on the X86 architecture. In the system R&D and design, the CPU mainly involves four levels in the running process, namely Ring0, Ring1, Ring2, and Ring3. Among them, Ring0 belongs to the instruction level, which can effectively execute any instruction. For example, the modification of CPU operation is completed in Ring0. The virtualized X86 system needs to set a virtual layer between the operating system and the hardware at the same time. Ring0 can only run in the virtual layer under normal circumstances, so that some special instructions cannot directly act on the hardware. Virtualization technology can effectively execute various instructions. Advanced binary code dynamic translation machine is used in computer server virtualization, which can effectively execute both ordinary instructions and privileged instructions. The application of more advanced pre-insertion instructions directly acts on the virtual machine, and the virtual machine performs instruction translation and then performs related operations. Compared with traditional virtualization technology, this approach realizes multi-system operation, which is the current implementation of CPU virtualization. key technologies.