gpt4 book ai didi

x86 - 设置 LDTR 让 Intel VT 开心?

转载 作者:行者123 更新时间:2023-12-03 21:43:31 24 4
gpt4 key购买 nike

我在 linux 内核 (arch/x86/boot/pmjump.S) 中找到了这段代码

# Set up TR to make Intel VT happy       
ltr %di //Here1

# Clear registers to allow for future extensions to the
# 32-bit boot protocol
xorl %ecx, %ecx
xorl %edx, %edx
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %edi, %edi

# Set up LDTR to make Intel VT happy
lldt %cx //Here2

这些如何让英特尔 VT 高兴?

为什么那些让英特尔 vt 高兴?

谢谢你 :)

最佳答案

据我了解,他们想要 LDTR 中的有效值(NULL 选择器有效)。在两者之间切换时,对主机和访客状态有一定的限制。也许他们也想避免那里出现意外。

关于x86 - 设置 LDTR 让 Intel VT 开心?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8112560/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com