提出了一种软硬件协同设计的去特权化方式,用来减少系统虚拟机中特权指令和敏感指令产生的额外开销。其主要思想是使用修改操作系统源代码的软件去特权化方式减少敏感指令的额外开销,使用修改硬件方式减少非敏感指令的特权指令的额外开销。两者配合使用可最大限度减少虚拟机中这两类指令的额外开销,从而能提高系统虚拟机性能。在MIPS架构CPU的测试板上的实验显示,使用这种方法之后虚拟机的特权指令和敏感指令造成的异常数减少了近97%,同时SPECCINT2000测试集中大部分程序性能提升100%以上。
To reduce the overhead of privileged instructions and sensitive instructions in virtual machines, this paper presents a hardware-software co-design method to deprivilege these instructions. The main idea is to modify the source code of the operating system to deprivilege sensitive instructions and modify hardwares to deprivilege privi- leged insensitive instructions. The two ways are coordinated to minimize the overhead of these instructions, in order to improve the performance of virtual machines. The results of the experiments on the software-hardware co-design method conducted on the boards with MIPS CPUs showed that the exceptions caused by the privileged instructions and sensitive instructions decreased by nearly 97% and was improved by more than 100%. the performance of majority of programs in SPEC CINT2000