Skip to contentSkip to conversation

KVM: add X86_LOCAL_APIC dependency

PATCH Applied Arnd Bergmann 2 participants 2 messages Oct 4, 2017 – Oct 5, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: add X86_LOCAL_APIC dependency

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")
---
 arch/x86/kvm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kvm/Kconfig +1 -0
index 3ea624452f93..3c48bc8bf08c 100644
@@ -23,6 +23,7 @@ config KVM
 	depends on HIGH_RES_TIMERS
 	# for TASKSTATS/TASK_DELAY_ACCT:
 	depends on NET && MULTIUSER
+	depends on X86_LOCAL_APIC
 	select PREEMPT_NOTIFIERS
 	select MMU_NOTIFIER
 	select ANON_INODES
Signature · 1 line
2.9.0
#1 lore raw

2017-10-04 12:28+0200, Arnd Bergmann:

Quoted 7 lines

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.

Yeah, and we can follow up by removing few ifdefs.

Quoted 1 line
Fixes 8b306e2f3c41 ("KVM: VMX: avoid double list add with VT-d posted interrupts")

The offending cpu_physical_id() was there even before, so it is probably the change of condition in pi_post_block that violated dead code detection.

Quoted 2 lines

---

Applied, thanks.