简体   繁体   English

叶指令(处理器/组件)

[英]Leaf instructions (Processor/Assembly)

I'm not sure if SO is the best place to ask this question. 我不确定SO是否是问这个问题的最佳地点。 If not, please let me know which sister site I should go to. 如果没有,请告诉我应该去哪个姐妹网站。

I've been reading a paper about Intel's Trusted Execution Technology (TXT) and it has the following text that I can't seem to figure out: 我一直在阅读有关英特尔可信执行技术(TXT)的论文,但其中的一些文字似乎无法弄清:

"Intel created a new 'leaf' instruction called GETSEC, which can be customized to invoke various leaf operations (including SENTER)" “英特尔创建了一条名为GETSEC的新'叶'指令,可以对其进行自定义以调用各种叶操作(包括SENTER)”

I can't find out anything about leaf instructions. 我找不到有关叶指令的任何信息。 What are they and why/when are they used? 它们是什么?为什么/何时使用? Any hints? 任何提示?

ps Paper's called "How low can you go? Recommendations for Hardware-Supported Minimal TCB Code Execution" by McCune et al. ps Paper被McCune等人称为“您能走多低?硬件支持的最小TCB代码执行的建议”。

Most instructions do one thing - add, subtract, move, etc. Some (rare) instructions do completely different things in different situations. 大多数指令执行一件事-加,减,移动等。某些(稀有)指令在不同情况下会做完全不同的事情。 One example of this is the CPUID instruction, which does different things depending on the initial value of EAX (and sometimes ECX too). 其中一个示例是CPUID指令,它根据EAX(有时还包括ECX)的初始值执行不同的操作。 These "different things" are called leaves (by Intel). 这些“不同的事物”称为“叶子”(被Intel称为)。

Intel's "GETSEC" instruction is like this. 英特尔的“ GETSEC”指令就是这样。 It's one instruction, but depending on the initial value of EAX it can do completely different things. 这是一条指令,但是根据EAX的初始值,它可以做完全不同的事情。 For example, if you set EAX to zero beforehand the GETSEC instruction will do the "(get) CAPABILITIES leaf function", if you set EAX to 4 beforehand the GETSEC instruction will do the "SENTER leaf function", and if you set EAX to 5 beforehand the GETSEC instruction will do the "SEXIT leaf function". 例如,如果您预先将EAX设置为零,则GETSEC指令将执行“(get CAPABILITIES叶子功能”),如果您将EAX预先设置为4,则GETSEC指令将执行“ SENTER叶子功能”,并且如果将EAX设置为5之前,GETSEC指令将执行“ SEXIT叶子功能”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM