]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commite66d2ae7c67bd9ac982a3d1890564de7f7eabf4b
tree5d507fbd9a8412f053fb58e812a0366830d5cf1e
parentf41bfc9423aac4e589d2b3bedf26b3c249c61146
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 1e08ec4a13.

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