提交 f9a48e6a 编写于 作者: A Avi Kivity 提交者: Marcelo Tosatti

KVM: Set cr0.et when the guest writes cr0

Follow the hardware.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 edcafe3c
......@@ -428,6 +428,8 @@ static bool pdptrs_changed(struct kvm_vcpu *vcpu)
void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
{
cr0 |= X86_CR0_ET;
if (cr0 & CR0_RESERVED_BITS) {
printk(KERN_DEBUG "set_cr0: 0x%lx #GP, reserved bits 0x%lx\n",
cr0, kvm_read_cr0(vcpu));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册