mirror of https://gitee.com/openkylin/linux.git
KVM: disable tpr/cr8 sync when in-kernel APIC is used
Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
a3d7f85f47
commit
5cd4f6fd85
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue