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

Commit 6e24a6ef authored by Marcelo Tosatti's avatar Marcelo Tosatti
Browse files

KVM: LAPIC: make sure IRR bitmap is scanned after vm load



The vcpus are initialized with irr_pending set to false, but
loading the LAPIC registers with pending IRR fails to reset
the irr_pending variable.

Cc: stable@kernel.org
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent fae3a353
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1150,6 +1150,7 @@ void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu)
	hrtimer_cancel(&apic->lapic_timer.timer);
	hrtimer_cancel(&apic->lapic_timer.timer);
	update_divide_count(apic);
	update_divide_count(apic);
	start_apic_timer(apic);
	start_apic_timer(apic);
	apic->irr_pending = true;
}
}


void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu)
void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu)