forked from Minki/linux
KVM: x86: check LAPIC presence when building apic_map
We forgot to re-check LAPIC after splitting the loop in commit173beedc16
(KVM: x86: Software disabled APIC should still deliver NMIs, 2014-11-02). Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Fixes:173beedc16
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
02512b2bd6
commit
df04d1d191
@ -192,6 +192,9 @@ static void recalculate_apic_map(struct kvm *kvm)
|
||||
u16 cid, lid;
|
||||
u32 ldr, aid;
|
||||
|
||||
if (!kvm_apic_present(vcpu))
|
||||
continue;
|
||||
|
||||
aid = kvm_apic_id(apic);
|
||||
ldr = kvm_apic_get_reg(apic, APIC_LDR);
|
||||
cid = apic_cluster_id(new, ldr);
|
||||
|
Loading…
Reference in New Issue
Block a user