]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Software disabled APIC should still deliver NMIs
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:54 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Nov 2014 11:16:19 +0000 (12:16 +0100)
commit79cebb638c79e47dd491ffb865556e6662719ef6
treec5c58dc63c355445fd84ba8628fe986099ffd709
parent7d420be536ae40f5a2e3bf93f5dd1c3e0f37588c
KVM: x86: Software disabled APIC should still deliver NMIs

Currently, the APIC logical map does not consider VCPUs whose local-apic is
software-disabled.  However, NMIs, INIT, etc. should still be delivered to such
VCPUs. Therefore, the APIC mode should first be determined, and then the map,
considering all VCPUs should be constructed.

To address this issue, first find the APIC mode, and only then construct the
logical map.

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