]> git.baikalelectronics.ru Git - kernel.git/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)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 30 Dec 2013 20:58:17 +0000 (18:58 -0200)
commitd3704bf6d0d1c2340c7d11cf09908394d7d7c23e
tree5d507fbd9a8412f053fb58e812a0366830d5cf1e
parent8dff8f6cb96d9cced495152c1b59d7c92fb1107d
KVM: x86: Fix APIC map calculation after re-enabling

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 b468919ac2.

Cc: stable@vger.kernel.org
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/lapic.c