Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5cd4f6fd authored by He, Qing's avatar He, Qing Committed by Avi Kivity
Browse files

KVM: disable tpr/cr8 sync when in-kernel APIC is used



Signed-off-by: default avatarQing He <qing.he@intel.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent a3d7f85f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2005,6 +2005,7 @@ 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 */
	if (!irqchip_in_kernel(vcpu->kvm))
		set_cr8(vcpu, kvm_run->cr8);

	if (vcpu->pio.cur_count) {