发明授权
- 专利标题: Method for monitoring and emulating privileged instructions of programs in a virtual machine
- 专利标题(中): 用于监视和仿真虚拟机中程序的特权指令的方法
-
申请号: US10211148申请日: 2002-08-02
-
公开(公告)号: US07210144B2公开(公告)日: 2007-04-24
- 发明人: Eric P. Traut
- 申请人: Eric P. Traut
- 申请人地址: US WA Redmond
- 专利权人: Microsoft Corporation
- 当前专利权人: Microsoft Corporation
- 当前专利权人地址: US WA Redmond
- 代理机构: Woodcock Washburn LLP
- 主分类号: G06F9/455
- IPC分类号: G06F9/455 ; G06F9/46 ; G06F12/00 ; G06F12/14 ; G06F17/30
摘要:
A method for monitoring and emulating privileged instructions of a program that is being executed at a privilege level in a virtual machine is disclosed. A privilege level associated with a received instruction is determined. The instruction privilege level is compared to the program execution privilege level. If the instruction privilege level is valid with respect to the program execution privilege level, the instruction is executed. If the instruction privilege level is invalid with respect to the program execution privilege level: the instruction result is emulated; the number of times the instruction has been received from the program is checked; and if the instruction has been received more than a specified number of times, the instruction is overwritten with one or more instructions with a valid privilege level with respect to the program execution privilege level.