首页> 外国专利> Virtualization of a non-privileged instruction that behaves differently when executed by privileged code than by non-privileged code

Virtualization of a non-privileged instruction that behaves differently when executed by privileged code than by non-privileged code

机译:非特权指令的虚拟化,其特权代码执行时与非特权代码执行时行为不同

摘要

In various embodiments of the present invention, a virtual monitor can arrange to properly emulate execution of a cover instruction by operating-system code, or other code assuming to run at highest privilege level, by monitoring a window of instruction execution in which a cover instruction may be executed. Upon occurrence of an interruption, the virtual monitor may configure performance monitoring by the IA-64 processor to count the number of times a cover instruction is executed. When a subsequent attempt is made by a routine executing at a privilege level lower than the highest privilege level to read the contents of a special control register into which the contents of the CFM register would have been stored had a cover instruction been executed under conditions obtainable only to code running at the highest privilege level, the virtual monitor can determine whether or not a cover instruction was, in fact, executed by the non-privilege routine and can properly emulate access to the special control register by the routine running at less than highest privilege level. In alternative embodiments, other non-privileged instructions that behave different depending on the privilege level of the processor at the time they execute can be virtualized by the virtualization technique used for the cover instruction.
机译:在本发明的各个实施例中,虚拟监视器可以布置成通过监视其中包括掩蔽指令的指令执行窗口,来通过操作系统代码或假定以最高特权级别运行的其他代码来适当地模拟掩蔽指令的执行。可以执行。在发生中断时,虚拟监视器可以通过IA-64处理器配置性能监视,以计算执行掩盖指令的次数。如果在低于最高特权级别的特权级别下执行的例程进行了后续尝试,以读取特殊控制寄存器的内容(如果在可获得的条件下执行了覆盖指令,则CFM寄存器的内容将存储在该特殊控制寄存器中)仅对于以最高特权级别运行的代码,虚拟监视器才能确定掩盖指令是否实际上是由非特权例程执行的,并且可以正确地模拟运行在低于​​特权级别的例程对特殊控制寄存器的访问。最高特权级别。在替代实施例中,可以通过用于掩盖指令的虚拟化技术来虚拟化表现不同的其他非特权指令,所述其他非特权指令在执行时取决于处理器的特权级别。

著录项

  • 公开/公告号US2006095904A1

    专利类型

  • 公开/公告日2006-05-04

    原文格式PDF

  • 申请/专利权人 ROBERT D. GARDNER;

    申请/专利号US20040903613

  • 发明设计人 ROBERT D. GARDNER;

    申请日2004-07-31

  • 分类号G06F9/455;

  • 国家 US

  • 入库时间 2022-08-21 21:45:03

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号