aboutsummaryrefslogtreecommitdiff
path: root/drivers/kvm
diff options
context:
space:
mode:
authorYang, Sheng <sheng.yang@intel.com>2007-08-16 13:01:00 +0300
committerAvi Kivity <avi@qumranet.com>2007-10-13 10:18:23 +0200
commit253abdee5ec2edd0a7f6dc2358bef42e3fdf1f39 (patch)
treea9823774dcf3fa7a66c1895b78528d3239eaa71b /drivers/kvm
parent7e66f350cfc853043bfa71b281581dd6f92fa347 (diff)
KVM: Communicate cr8 changes to userspace
This allows running 64-bit Windows. Signed-off-by: Sheng Yang <sheng.yang@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm')
-rw-r--r--drivers/kvm/vmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index a9b4cb51dec..cd999c0a24c 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1831,7 +1831,8 @@ static int handle_cr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
vcpu_load_rsp_rip(vcpu);
set_cr8(vcpu, vcpu->regs[reg]);
skip_emulated_instruction(vcpu);
- return 1;
+ kvm_run->exit_reason = KVM_EXIT_SET_TPR;
+ return 0;
};
break;
case 2: /* clts */