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:25:12 +0000 (12:25 -0800)
commit42191bc8f647618fbbc2f5782ea878f5f0730e6f
treebb97269e3a37eb76c64a20ddcfb74ccd1a38a3fa
parent366aaa038f472c47493fb6502f58377363d100bc
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