Skip to content

Commit

Permalink
KVM: disable tpr/cr8 sync when in-kernel APIC is used
Browse files Browse the repository at this point in the history
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
He, Qing authored and Avi Kivity committed Oct 13, 2007
1 parent a3d7f85 commit 5cd4f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,8 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved);

/* re-sync apic's tpr */
set_cr8(vcpu, kvm_run->cr8);
if (!irqchip_in_kernel(vcpu->kvm))
set_cr8(vcpu, kvm_run->cr8);

if (vcpu->pio.cur_count) {
r = complete_pio(vcpu);
Expand Down

0 comments on commit 5cd4f6f

Please sign in to comment.