aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 8f8bfc9160e3..02af24e8350c 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -2005,7 +2005,8 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
2005 sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved); 2005 sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved);
2006 2006
2007 /* re-sync apic's tpr */ 2007 /* re-sync apic's tpr */
2008 set_cr8(vcpu, kvm_run->cr8); 2008 if (!irqchip_in_kernel(vcpu->kvm))
2009 set_cr8(vcpu, kvm_run->cr8);
2009 2010
2010 if (vcpu->pio.cur_count) { 2011 if (vcpu->pio.cur_count) {
2011 r = complete_pio(vcpu); 2012 r = complete_pio(vcpu);