OSDN Git Service

KVM: add X86_LOCAL_APIC dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Oct 2017 10:28:18 +0000 (12:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:03:49 +0000 (11:03 +0100)
commit6f2f10ea6ed781681f66c6554868620158e94ea3
tree8999a5c9a9671d91cfef7d6743771baf829907e9
parent9975bd33e12b37f986d47234b1b5dd56c805ed53
KVM: add X86_LOCAL_APIC dependency

commit e42eef4ba38806b18c4a74f0c276fb2e0b548173 upstream.

The rework of the posted interrupt handling broke building without
support for the local APIC:

ERROR: "boot_cpu_physical_apicid" [arch/x86/kvm/kvm-intel.ko] undefined!

That configuration is probably not particularly useful anyway, so
we can avoid the randconfig failures by adding a Kconfig dependency.

Fixes: 8b306e2f3c41 ("KVM: VMX: avoid double list add with VT-d posted interrupts")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/Kconfig