KVM: lapic: don't recalculate apic map table twice when enabling LAPIC
authorWanpeng Li <wanpeng.li@hotmail.com>
Wed, 3 Aug 2016 04:04:13 +0000 (12:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Aug 2016 15:51:40 +0000 (17:51 +0200)
commit187ca84b4b02d8b8a4f2117f1c6b209ef1ee90fc
tree671feb8822a5f6cb78ed2ccd6ca64258bbd8dffc
parentba913e4f72fc9cfd03dad968dfb110eb49211d80
KVM: lapic: don't recalculate apic map table twice when enabling LAPIC

APIC map table is recalculated during reset APIC ID to the initial value
when enabling LAPIC. This patch move the recalculate_apic_map() to the
next branch since we don't need to recalculate apic map twice in current
codes.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c