Skip to content

Commit c8f1e96

Browse files
sean-jcMarc Zyngier
authored andcommitted
KVM: arm64: Unconditionally include generic KVM's Kconfig
Unconditionally "source" the generic KVM Kconfig instead of wrapping it with KVM=y. A future patch will select HAVE_KVM so that referencing HAVE_KVM in common kernel code doesn't break, and because KVM=y and HAVE_KVM=n is weird. Source the generic KVM Kconfig unconditionally so that HAVE_KVM and KVM don't end up with a circular dependency. Note, all but one of generic KVM's "configs" are of the HAVE_XYZ nature, and the one outlier correctly takes a dependency on CONFIG_KVM, i.e. the generic Kconfig is intended to be included unconditionally. No functional change intended. Signed-off-by: Sean Christopherson <[email protected]> [maz: made NVHE_EL2_DEBUG depend on KVM] Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b6a68b9 commit c8f1e96

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

arch/arm64/kvm/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#
55

66
source "virt/lib/Kconfig"
7+
source "virt/kvm/Kconfig"
78

89
menuconfig VIRTUALIZATION
910
bool "Virtualization"
@@ -43,19 +44,14 @@ menuconfig KVM
4344

4445
If unsure, say N.
4546

46-
if KVM
47-
48-
source "virt/kvm/Kconfig"
49-
5047
config NVHE_EL2_DEBUG
5148
bool "Debug mode for non-VHE EL2 object"
49+
depends on KVM
5250
help
5351
Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
5452
Failure reports will BUG() in the hypervisor. This is intended for
5553
local EL2 hypervisor development.
5654

5755
If unsure, say N.
5856

59-
endif # KVM
60-
6157
endif # VIRTUALIZATION

0 commit comments

Comments
 (0)