Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa5b6ec9 authored by Laura Abbott's avatar Laura Abbott Committed by Will Deacon
Browse files

lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL



DEBUG_VIRTUAL currently depends on DEBUG_KERNEL && X86. arm64 is getting
the same support. Rather than add a list of architectures, switch this
to ARCH_HAS_DEBUG_VIRTUAL and let architectures select it as
appropriate.

Acked-by: default avatarIngo Molnar <mingo@kernel.org>
Reviewed-by: default avatarMark Rutland <mark.rutland@arm.com>
Tested-by: default avatarMark Rutland <mark.rutland@arm.com>
Suggested-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 0c744ea4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,7 @@ config X86
	select ARCH_CLOCKSOURCE_DATA
	select ARCH_CLOCKSOURCE_DATA
	select ARCH_DISCARD_MEMBLOCK
	select ARCH_DISCARD_MEMBLOCK
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
	select ARCH_HAS_DEBUG_VIRTUAL
	select ARCH_HAS_DEVMEM_IS_ALLOWED
	select ARCH_HAS_DEVMEM_IS_ALLOWED
	select ARCH_HAS_ELF_RANDOMIZE
	select ARCH_HAS_ELF_RANDOMIZE
	select ARCH_HAS_FAST_MULTIPLIER
	select ARCH_HAS_FAST_MULTIPLIER
+4 −1
Original line number Original line Diff line number Diff line
@@ -622,9 +622,12 @@ config DEBUG_VM_PGFLAGS


	  If unsure, say N.
	  If unsure, say N.


config ARCH_HAS_DEBUG_VIRTUAL
	bool

config DEBUG_VIRTUAL
config DEBUG_VIRTUAL
	bool "Debug VM translations"
	bool "Debug VM translations"
	depends on DEBUG_KERNEL && X86
	depends on DEBUG_KERNEL && ARCH_HAS_DEBUG_VIRTUAL
	help
	help
	  Enable some costly sanity checks in virtual to page code. This can
	  Enable some costly sanity checks in virtual to page code. This can
	  catch mistakes with virt_to_page() and friends.
	  catch mistakes with virt_to_page() and friends.