]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.32.3/kvm-lapic-make-sure-irr-bitmap-is-scanned-after-vm-load.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.3 / kvm-lapic-make-sure-irr-bitmap-is-scanned-after-vm-load.patch
1 From 6e24a6eff4571002cd48b99a2b92dc829ce39cb9 Mon Sep 17 00:00:00 2001
2 From: Marcelo Tosatti <mtosatti@redhat.com>
3 Date: Mon, 14 Dec 2009 17:37:35 -0200
4 Subject: KVM: LAPIC: make sure IRR bitmap is scanned after vm load
5
6 From: Marcelo Tosatti <mtosatti@redhat.com>
7
8 commit 6e24a6eff4571002cd48b99a2b92dc829ce39cb9 upstream.
9
10 The vcpus are initialized with irr_pending set to false, but
11 loading the LAPIC registers with pending IRR fails to reset
12 the irr_pending variable.
13
14 Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
15 Signed-off-by: Avi Kivity <avi@redhat.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17
18 ---
19 arch/x86/kvm/lapic.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/arch/x86/kvm/lapic.c
23 +++ b/arch/x86/kvm/lapic.c
24 @@ -1156,6 +1156,7 @@ void kvm_apic_post_state_restore(struct
25 hrtimer_cancel(&apic->lapic_timer.timer);
26 update_divide_count(apic);
27 start_apic_timer(apic);
28 + apic->irr_pending = true;
29 }
30
31 void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu)