KVM: x86: recalculate_apic_map after enabling apic
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 18 Aug 2014 21:03:00 +0000 (00:03 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Aug 2014 13:12:29 +0000 (15:12 +0200)
commit1e1b6c26443547b05925ae4a4494884c92eb7d95
treeacbc152358699e6ac0883a9b8f6d4b3cfd08cc2d
parentfae0ba2157340635fd99912c0c3b7a28c355c588
KVM: x86: recalculate_apic_map after enabling apic

Currently, recalculate_apic_map ignores vcpus whose lapic is software disabled
through the spurious interrupt vector. However, once it is re-enabled, the map
is not recalculated. Therefore, if the guest OS configured DFR while lapic is
software-disabled, the map may be incorrect. This patch recalculates apic map
after software enabling the lapic.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c