]> Pileus Git - ~andy/linux/commit
KVM: x86: Fix APIC map calculation after re-enabling
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 29 Dec 2013 01:29:30 +0000 (02:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:22 +0000 (12:24 -0800)
commit9e23c5bb1507d413f86652feea3fb1c41cb6f99b
tree7d243e16136db8c880826b62d68123d7219c12b9
parentd5985f143875f7d4dc718fa664b70666667877d9
KVM: x86: Fix APIC map calculation after re-enabling

commit e66d2ae7c67bd9ac982a3d1890564de7f7eabf4b upstream.

Update arch.apic_base before triggering recalculate_apic_map. Otherwise
the recalculation will work against the previous state of the APIC and
will fail to build the correct map when an APIC is hardware-enabled
again.

This fixes a regression of 1e08ec4a13.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/lapic.c