CONFIG_LOONGARCH
- Selects
ACPI - Selects
ACPI_GENERIC_GSI if ACPI - Selects
ACPI_MCFG if ACPI - Selects
ACPI_HOTPLUG_CPU if ACPI_PROCESSOR && - Selects
ACPI_IOVT if ACPI - Selects
ACPI_PPTT if ACPI - Selects
ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI - Selects
ARCH_BINFMT_ELF_STATE - Selects
ARCH_NEEDS_DEFER_KASAN - Selects
ARCH_DISABLE_KASAN_INLINE - Selects
ARCH_ENABLE_MEMORY_HOTPLUG - Selects
ARCH_HAS_PMD_SOFTLEAVES if TRANSPARENT_HUGEPAGE - Selects
ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI - Selects
ARCH_HAS_CPU_FINALIZE_INIT - Selects
ARCH_HAS_CURRENT_STACK_POINTER - Selects
ARCH_HAS_DEBUG_VM_PGTABLE - Selects
ARCH_HAS_FAST_MULTIPLIER - Selects
ARCH_HAS_FORTIFY_SOURCE - Selects
ARCH_HAS_KCOV - Selects
ARCH_HAS_KERNEL_FPU_SUPPORT if && - Selects
ARCH_HAS_NMI_SAFE_THIS_CPU_OPS - Selects
ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE - Selects
ARCH_HAS_PREEMPT_LAZY - Selects
ARCH_HAS_PTE_SPECIAL if - Selects
ARCH_HAS_SET_MEMORY - Selects
ARCH_HAS_SET_DIRECT_MAP - Selects
ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST - Selects
ARCH_HAS_UBSAN - Selects
ARCH_HAS_VDSO_ARCH_DATA - Selects
ARCH_INLINE_READ_LOCK if !PREEMPTION - Selects
ARCH_INLINE_READ_LOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_READ_LOCK_IRQSAVE if !PREEMPTION - Selects
ARCH_INLINE_READ_UNLOCK if !PREEMPTION - Selects
ARCH_INLINE_READ_UNLOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_READ_UNLOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_READ_UNLOCK_IRQRESTORE if !PREEMPTION - Selects
ARCH_INLINE_WRITE_LOCK if !PREEMPTION - Selects
ARCH_INLINE_WRITE_LOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_WRITE_LOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_WRITE_LOCK_IRQSAVE if !PREEMPTION - Selects
ARCH_INLINE_WRITE_UNLOCK if !PREEMPTION - Selects
ARCH_INLINE_WRITE_UNLOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_WRITE_UNLOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE if !PREEMPTION - Selects
ARCH_INLINE_SPIN_TRYLOCK if !PREEMPTION - Selects
ARCH_INLINE_SPIN_TRYLOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_SPIN_LOCK if !PREEMPTION - Selects
ARCH_INLINE_SPIN_LOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_SPIN_LOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_SPIN_LOCK_IRQSAVE if !PREEMPTION - Selects
ARCH_INLINE_SPIN_UNLOCK if !PREEMPTION - Selects
ARCH_INLINE_SPIN_UNLOCK_BH if !PREEMPTION - Selects
ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION - Selects
ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION - Selects
ARCH_KEEP_MEMBLOCK - Selects
ARCH_MIGHT_HAVE_PC_PARPORT - Selects
ARCH_MIGHT_HAVE_PC_SERIO - Selects
ARCH_STACKWALK - Selects
ARCH_SUPPORTS_ACPI - Selects
ARCH_SUPPORTS_ATOMIC_RMW - Selects
ARCH_SUPPORTS_HUGETLBFS if - Selects
ARCH_SUPPORTS_INT128 if CC_HAS_INT128 - Selects
ARCH_SUPPORTS_LTO_CLANG - Selects
ARCH_SUPPORTS_LTO_CLANG_THIN - Selects
ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS - Selects
ARCH_HAS_PTE_PROTNONE if - Selects
ARCH_SUPPORTS_NUMA_BALANCING if - Selects
ARCH_SUPPORTS_RT - Selects
ARCH_SUPPORTS_SCHED_SMT if - Selects
ARCH_SUPPORTS_SCHED_MC if - Selects
ARCH_USE_BUILTIN_BSWAP - Selects
ARCH_USE_CMPXCHG_LOCKREF - Selects
ARCH_USE_MEMTEST - Selects
ARCH_USE_QUEUED_RWLOCKS - Selects
ARCH_USE_QUEUED_SPINLOCKS - Selects
ARCH_WANT_DEFAULT_BPF_JIT if HAVE_EBPF_JIT - Selects
ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT - Selects
ARCH_WANT_LD_ORPHAN_WARN - Selects
ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP if - Selects
ARCH_WANTS_NO_INSTR - Selects
ARCH_WANTS_THP_SWAP if HAVE_ARCH_TRANSPARENT_HUGEPAGE - Selects
BUILDTIME_TABLE_SORT - Selects
COMMON_CLK - Selects
CPU_PM - Selects
EDAC_SUPPORT - Selects
- Selects
GENERIC_ATOMIC64 if - Selects
GENERIC_CLOCKEVENTS - Selects
GENERIC_CMOS_UPDATE - Selects
GENERIC_CPU_AUTOPROBE - Selects
GENERIC_CPU_DEVICES - Selects
GENERIC_CPU_VULNERABILITIES - Selects
GENERIC_ENTRY - Selects
GENERIC_GETTIMEOFDAY if - Selects
GENERIC_IOREMAP if !ARCH_IOREMAP - Selects
GENERIC_IRQ_MATRIX_ALLOCATOR - Selects
GENERIC_IRQ_MULTI_HANDLER - Selects
GENERIC_IRQ_PROBE - Selects
GENERIC_IRQ_SHOW - Selects
GENERIC_LIB_ASHLDI3 - Selects
GENERIC_LIB_ASHRDI3 - Selects
GENERIC_LIB_CMPDI2 - Selects
GENERIC_LIB_LSHRDI3 - Selects
GENERIC_LIB_UCMPDI2 - Selects
GENERIC_LIB_DEVMEM_IS_ALLOWED - Selects
GENERIC_PCI_IOMAP - Selects
GENERIC_SCHED_CLOCK - Selects
GENERIC_SMP_IDLE_THREAD - Selects
GPIOLIB - Selects
HAS_IOPORT - Selects
HAVE_ALIGNED_STRUCT_PAGE if - Selects
HAVE_ARCH_AUDITSYSCALL - Selects
HAVE_ARCH_BITREVERSE if && BITREVERSE - Selects
HAVE_ARCH_JUMP_LABEL - Selects
HAVE_ARCH_JUMP_LABEL_RELATIVE - Selects
HAVE_ARCH_KASAN if - Selects
HAVE_ARCH_KFENCE if - Selects
HAVE_ARCH_KGDB if PERF_EVENTS - Selects
HAVE_ARCH_KSTACK_ERASE - Selects
HAVE_ARCH_MMAP_RND_BITS if - Selects
HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET - Selects
HAVE_ARCH_SECCOMP - Selects
HAVE_ARCH_SECCOMP_FILTER - Selects
HAVE_ARCH_TRACEHOOK - Selects
HAVE_ARCH_TRANSPARENT_HUGEPAGE if - Selects
HAVE_ARCH_USERFAULTFD_MINOR if && USERFAULTFD - Selects
HAVE_ASM_MODVERSIONS - Selects
HAVE_CMPXCHG_DOUBLE - Selects
HAVE_CMPXCHG_LOCAL - Selects
HAVE_CONTEXT_TRACKING_USER - Selects
HAVE_C_RECORDMCOUNT - Selects
HAVE_DEBUG_KMEMLEAK - Selects
HAVE_DEBUG_STACKOVERFLOW - Selects
HAVE_DMA_CONTIGUOUS - Selects
HAVE_DYNAMIC_FTRACE - Selects
HAVE_DYNAMIC_FTRACE_WITH_ARGS - Selects
HAVE_FTRACE_REGS_HAVING_PT_REGS - Selects
HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS - Selects
HAVE_DYNAMIC_FTRACE_WITH_REGS - Selects
HAVE_EBPF_JIT if - Selects
HAVE_EFFICIENT_UNALIGNED_ACCESS if !ARCH_STRICT_ALIGN - Selects
HAVE_EXIT_THREAD - Selects
HAVE_GENERIC_TIF_BITS - Selects
HAVE_GUP_FAST - Selects
HAVE_FTRACE_GRAPH_FUNC - Selects
HAVE_FUNCTION_ARG_ACCESS_API - Selects
HAVE_FUNCTION_ERROR_INJECTION - Selects
HAVE_FUNCTION_GRAPH_FREGS - Selects
HAVE_FUNCTION_GRAPH_TRACER - Selects
HAVE_FUNCTION_TRACER - Selects
HAVE_GCC_PLUGINS - Selects
HAVE_HW_BREAKPOINT if PERF_EVENTS - Selects
HAVE_IOREMAP_PROT - Selects
HAVE_IRQ_EXIT_ON_IRQ_STACK - Selects
HAVE_IRQ_TIME_ACCOUNTING - Selects
HAVE_KPROBES - Selects
HAVE_KPROBES_ON_FTRACE - Selects
HAVE_KRETPROBES - Selects
HAVE_LIVEPATCH - Selects
HAVE_MOD_ARCH_SPECIFIC - Selects
HAVE_NMI - Selects
HAVE_OBJTOOL if AS_HAS_EXPLICIT_RELOCS && AS_HAS_THIN_ADD_SUB && - Selects
HAVE_PCI - Selects
HAVE_PERF_EVENTS if - Selects
HAVE_PERF_REGS - Selects
HAVE_PERF_USER_STACK_DUMP - Selects
HAVE_POSIX_CPU_TIMERS_TASK_WORK - Selects
HAVE_REGS_AND_STACK_ACCESS_API - Selects
HAVE_RELIABLE_STACKTRACE if - Selects
HAVE_RETHOOK - Selects
HAVE_RSEQ - Selects
HAVE_RUST if !KASAN - Selects
HAVE_SAMPLE_FTRACE_DIRECT - Selects
HAVE_SAMPLE_FTRACE_DIRECT_MULTI - Selects
HAVE_SETUP_PER_CPU_AREA if - Selects
HAVE_STACK_VALIDATION if HAVE_OBJTOOL - Selects
HAVE_STACKPROTECTOR - Selects
HAVE_SYSCALL_TRACEPOINTS - Selects
HAVE_TIF_NOHZ - Selects
HAVE_VIRT_CPU_ACCOUNTING_GEN - Selects
HOTPLUG_SMT if - Selects
IRQ_FORCED_THREADING - Selects
IRQ_LOONGARCH_CPU - Selects
LOCK_MM_AND_FIND_VMA - Selects
MMU_GATHER_MERGE_VMAS if - Selects
MODULES_USE_ELF_RELA if - Selects
NEED_PER_CPU_EMBED_FIRST_CHUNK - Selects
NEED_PER_CPU_PAGE_FIRST_CHUNK - Selects
NUMA_MEMBLKS if - Selects
OF - Selects
OF_EARLY_FLATTREE - Selects
PCI - Selects
PCI_DOMAINS_GENERIC - Selects
PCI_ECAM if ACPI - Selects
PCI_LOONGSON - Selects
PCI_MSI_ARCH_FALLBACKS - Selects
PCI_QUIRKS - Selects
PERF_USE_VMALLOC - Selects
RTC_LIB - Selects
SPARSE_IRQ - Selects
SYSCTL_ARCH_UNALIGN_ALLOW - Selects
SYSCTL_ARCH_UNALIGN_NO_WARN - Selects
SYSCTL_EXCEPTION_TRACE - Selects
SWIOTLB if - Selects
THREAD_INFO_IN_TASK - Selects
TRACE_IRQFLAGS_SUPPORT - Selects
USE_PERCPU_NUMA_NODE_ID - Selects
USER_STACKTRACE_SUPPORT - Selects
VDSO_DATASTORE - Selects
VDSO_GETRANDOM - Selects
ZONE_DMA32 if
Kernel type and options
Kernel type
CONFIG_32BIT 32-bit kernel
Select this option if you want to build a 32-bit kernel.
CONFIG_64BIT 64-bit kernel
Select this option if you want to build a 64-bit kernel.
If
32-bit kernel sub-type
CONFIG_32BIT_REDUCED 32-bit kernel for LA32R
Select this option if you want to build a 32-bit kernel for LoongArch32 Reduced (LA32R).
CONFIG_32BIT_STANDARD 32-bit kernel for LA32S
Select this option if you want to build a 32-bit kernel for LoongArch32 Standard (LA32S).
CONFIG_GENERIC_BUG
- Depends on
BUG
CONFIG_GENERIC_BUG_RELATIVE_POINTERS
- Depends on
CONFIG_GENERIC_CALIBRATE_DELAY
CONFIG_GENERIC_CSUM
CONFIG_GENERIC_HWEIGHT
CONFIG_L1_CACHE_SHIFT
CONFIG_LOCKDEP_SUPPORT
CONFIG_STACKTRACE_SUPPORT
CONFIG_MACH_LOONGSON32
CONFIG_MACH_LOONGSON64
CONFIG_FIX_EARLYCON_MEM
CONFIG_PGTABLE_2LEVEL
CONFIG_PGTABLE_3LEVEL
CONFIG_PGTABLE_4LEVEL
CONFIG_PGTABLE_LEVELS
CONFIG_SCHED_OMIT_FRAME_POINTER
CONFIG_AS_HAS_EXPLICIT_RELOCS
CONFIG_AS_HAS_FCSR_CLASS
CONFIG_AS_HAS_THIN_ADD_SUB
CONFIG_AS_HAS_LSX_EXTENSION
CONFIG_AS_HAS_LASX_EXTENSION
CONFIG_AS_HAS_LBT_EXTENSION
CONFIG_AS_HAS_LVZ_EXTENSION
CONFIG_AS_HAS_SCQ_EXTENSION
CONFIG_CC_HAS_ANNOTATE_TABLEJUMP
CONFIG_RUSTC_HAS_ANNOTATE_TABLEJUMP
- Depends on
RUST
CONFIG_HIGHMEM High Memory Support
- Depends on
- Selects
KMAP_LOCAL
Page Table Layout
Allows choosing the page table layout, which is a combination of page size and page table levels. The size of virtual memory address space are determined by the page table layout.
CONFIG_4KB_2LEVEL 4KB with 2 levels
This option selects 4KB page size with 2 level page tables, which support a maximum of 32 bits of application virtual memory.
- Selects
HAVE_PAGE_SIZE_4KB - Selects
PGTABLE_2LEVEL
CONFIG_4KB_3LEVEL 4KB with 3 levels
This option selects 4KB page size with 3 level page tables, which support a maximum of 39 bits of application virtual memory.
- Depends on
- Selects
HAVE_PAGE_SIZE_4KB - Selects
PGTABLE_3LEVEL
CONFIG_4KB_4LEVEL 4KB with 4 levels
This option selects 4KB page size with 4 level page tables, which support a maximum of 48 bits of application virtual memory.
- Depends on
- Selects
HAVE_PAGE_SIZE_4KB - Selects
PGTABLE_4LEVEL
CONFIG_16KB_2LEVEL 16KB with 2 levels
This option selects 16KB page size with 2 level page tables, which support a maximum of 36 bits of application virtual memory.
- Selects
HAVE_PAGE_SIZE_16KB - Selects
PGTABLE_2LEVEL
CONFIG_16KB_3LEVEL 16KB with 3 levels
This option selects 16KB page size with 3 level page tables, which support a maximum of 47 bits of application virtual memory.
- Depends on
- Selects
HAVE_PAGE_SIZE_16KB - Selects
PGTABLE_3LEVEL
CONFIG_64KB_2LEVEL 64KB with 2 levels
This option selects 64KB page size with 2 level page tables, which support a maximum of 42 bits of application virtual memory.
- Selects
HAVE_PAGE_SIZE_64KB - Selects
PGTABLE_2LEVEL
CONFIG_64KB_3LEVEL 64KB with 3 levels
This option selects 64KB page size with 3 level page tables, which support a maximum of 55 bits of application virtual memory.
- Depends on
- Selects
HAVE_PAGE_SIZE_64KB - Selects
PGTABLE_3LEVEL
CONFIG_CMDLINE Built-in kernel command line
For most platforms, the arguments for the kernel's command line are provided at run-time, during boot. However, there are cases where either no arguments are being provided or the provided arguments are insufficient or even invalid.
When that occurs, it is possible to define a built-in command line here and choose how the kernel should use it later on.
Kernel command line type
Choose how the kernel will handle the provided built-in command line.
CONFIG_CMDLINE_BOOTLOADER Use bootloader kernel arguments if available
Prefer the command-line passed by the boot loader if available. Use the built-in command line as fallback in case we get nothing during boot. This is the default behaviour.
CONFIG_CMDLINE_EXTEND Use built-in to extend bootloader kernel arguments
The built-in command line will be appended to the command- line arguments provided during boot. This is useful in cases where the provided arguments are insufficient and you don't want to or cannot modify them.
CONFIG_CMDLINE_FORCE Always use the built-in kernel command string
Always use the built-in command line, even if we get one during boot. This is useful in case you need to override the provided command line on systems where you don't have or want control over it.
CONFIG_BUILTIN_DTB Enable built-in dtb in kernel
Some existing systems do not provide a canonical device tree to the kernel at boot time. Let's provide a device tree table in the kernel, keyed by the dts filename, containing the relevant DTBs.
Built-in DTBs are generic enough and can be used as references.
- Depends on
OF - Selects
GENERIC_BUILTIN_DTB
CONFIG_BUILTIN_DTB_NAME Source file for built-in dtb
Base name (without suffix, relative to arch/loongarch/boot/dts/) for the DTS file that will be used to produce the DTB linked into the kernel.
- Depends on
CONFIG_DMI Enable DMI scanning
This enables SMBIOS/DMI feature for systems, and scanning of DMI to identify machine quirks.
CONFIG_EFI EFI runtime service support
This enables the kernel to use EFI runtime services that are available (such as the EFI variable services).
- Selects
UCS2_STRING - Selects
EFI_RUNTIME_WRAPPERS
CONFIG_EFI_STUB EFI boot stub support
This kernel feature allows the kernel to be loaded directly by EFI firmware without the use of a bootloader.
- Depends on
- Selects
EFI_GENERIC_STUB
CONFIG_SMP Multi-Processing support
This enables support for systems with more than one CPU. If you have a system with only one CPU, say N. If you have a system with more than one CPU, say Y.
If you say N here, the kernel will run on uni- and multiprocessor machines, but will use only one CPU of a multiprocessor machine. If you say Y here, the kernel will run on many, but not all, uniprocessor machines. On a uniprocessor machine, the kernel will run faster if you say N here.
See also the SMP-HOWTO available at <http://www.tldp.org/docs.html#howto>.
If you don't know what to do here, say N.
- Depends on
CONFIG_HOTPLUG_CPU Support for hot-pluggable CPUs
Say Y here to allow turning CPUs off and on. CPUs can be controlled through /sys/devices/system/cpu. (Note: power management support will enable this option automatically on SMP systems. ) Say N if you want to disable CPU hotplug.
- Depends on
- Selects
GENERIC_IRQ_MIGRATION
CONFIG_NR_CPUS Maximum number of CPUs (2-2048)
This allows you to specify the maximum number of CPUs which this kernel will support.
- Range
2 2048 - Depends on
CONFIG_NUMA NUMA Support
Say Y to compile the kernel with NUMA (Non-Uniform Memory Access) support. This option improves performance on systems with more than one NUMA node; on single node systems it is generally better to leave it disabled.
- Selects
- Depends on
CONFIG_NODES_SHIFT
- Depends on
CONFIG_ARCH_FORCE_MAX_ORDER Maximum zone order
The kernel memory allocator divides physically contiguous memory blocks into "zones", where each zone is a power of two number of pages. This option selects the largest power of two that the kernel keeps in the memory allocator. If you need to allocate very large blocks of physically contiguous memory, then you may need to increase this value.
The page size is not necessarily 4KB. Keep this in mind when choosing a value for this option.
CONFIG_ARCH_IOREMAP Enable LoongArch DMW-based ioremap()
We use generic TLB-based ioremap() by default since it has page protection support. However, you can enable LoongArch DMW-based ioremap() for better performance.
CONFIG_ARCH_WRITECOMBINE Enable WriteCombine (WUC) for ioremap()
LoongArch maintains cache coherency in hardware, but when paired with LS7A chipsets the WUC attribute (Weak-ordered UnCached, which is similar to WriteCombine) is out of the scope of cache coherency machanism for PCIe devices (this is a PCIe protocol violation, which may be fixed in newer chipsets).
This means WUC can only used for write-only memory regions now, so this option is disabled by default, making WUC silently fallback to SUC for ioremap(). You can enable this option if the kernel is ensured to run on hardware without this bug.
You can override this setting via writecombine=on/off boot parameter.
CONFIG_ARCH_STRICT_ALIGN Enable -mstrict-align to prevent unaligned accesses
Not all LoongArch cores support h/w unaligned access, we can use -mstrict-align build parameter to prevent unaligned accesses.
CPUs with h/w unaligned access support: Loongson-2K2000/2K3000 and all of Loongson-3 series processors based on LoongArch.
CPUs without h/w unaligned access support: Loongson-2K0300/2K0500/2K1000.
If you want to make sure whether to support unaligned memory access on your hardware, please read the bit 20 (UAL) of CPUCFG1 register.
This option is enabled by default to make the kernel be able to run on all LoongArch systems. But you can disable it manually if you want to run kernel only on systems with h/w unaligned access support in order to optimise for performance.
- Visible if
EXPERT
CONFIG_CPU_HAS_AMO
CONFIG_CPU_HAS_FPU
CONFIG_CPU_HAS_LSX Support for the Loongson SIMD Extension
Loongson SIMD Extension (LSX) introduces 128 bit wide vector registers and a set of SIMD instructions to operate on them. When this option is enabled the kernel will support allocating & switching LSX vector register contexts. If you know that your kernel will only be running on CPUs which do not support LSX or that your userland will not be making use of it then you may wish to say N here to reduce the size & complexity of your kernel.
If unsure, say Y.
- Depends on
AS_HAS_LSX_EXTENSION &&
CONFIG_CPU_HAS_LASX Support for the Loongson Advanced SIMD Extension
Loongson Advanced SIMD Extension (LASX) introduces 256 bit wide vector registers and a set of SIMD instructions to operate on them. When this option is enabled the kernel will support allocating & switching LASX vector register contexts. If you know that your kernel will only be running on CPUs which do not support LASX or that your userland will not be making use of it then you may wish to say N here to reduce the size & complexity of your kernel.
If unsure, say Y.
- Depends on
CPU_HAS_LSX - Depends on
AS_HAS_LASX_EXTENSION &&
CONFIG_CPU_HAS_LBT Support for the Loongson Binary Translation Extension
Loongson Binary Translation (LBT) introduces 4 scratch registers (SCR0 to SCR3), x86/ARM eflags (eflags) and x87 fpu stack pointer (ftop). Enabling this option allows the kernel to allocate and switch registers specific to LBT.
If you want to use this feature, such as the Loongson Architecture Translator (LAT), say Y.
- Depends on
AS_HAS_LBT_EXTENSION &&
CONFIG_CPU_HAS_PREFETCH
CONFIG_ARCH_SUPPORTS_KEXEC
CONFIG_ARCH_SUPPORTS_KEXEC_FILE
CONFIG_ARCH_SELECTS_KEXEC_FILE
- Depends on
KEXEC_FILE - Selects
KEXEC_ELF - Selects
- Selects
HAVE_IMA_KEXEC if IMA
CONFIG_ARCH_SUPPORTS_CRASH_DUMP
CONFIG_ARCH_DEFAULT_CRASH_DUMP
CONFIG_ARCH_SELECTS_CRASH_DUMP
- Depends on
CRASH_DUMP - Selects
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION
CONFIG_RELOCATABLE Relocatable kernel
This builds the kernel as a Position Independent Executable (PIE), which retains all relocation metadata required, so as to relocate the kernel binary at runtime to a different virtual address from its link address.
- Depends on
- Selects
ARCH_HAS_RELR
CONFIG_RANDOMIZE_BASE Randomize the address of the kernel (KASLR)
Randomizes the physical and virtual address at which the kernel image is loaded, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals.
The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
If unsure, say N.
- Depends on
CONFIG_RANDOMIZE_BASE_MAX_OFFSET Maximum KASLR offset
When KASLR is active, this provides the maximum offset that will be applied to the kernel image. It should be set according to the amount of physical RAM available in the target system.
This is limited by the size of the lower address memory, 256MB.
- Visible if
EXPERT - Depends on
- Range
0x0 0x10000000
CONFIG_PARAVIRT Enable paravirtualization code
This changes the kernel so it can modify itself when it is run under a hypervisor, potentially improving performance significantly over full virtualization. However, when run without a hypervisor the kernel is theoretically slower and slightly larger.
- Depends on
AS_HAS_LVZ_EXTENSION && - Selects
HAVE_PV_STEAL_CLOCK_GEN
CONFIG_PARAVIRT_TIME_ACCOUNTING Paravirtual steal time accounting
Select this option to enable fine granularity task steal time accounting. Time spent executing other tasks in parallel with the current vCPU is discounted from the vCPU power. To account for that, there can be a small performance impact.
If in doubt, say N here.
- Depends on
CONFIG_ARCH_SELECT_MEMORY_MODEL
CONFIG_ARCH_FLATMEM_ENABLE
- Depends on
!
CONFIG_ARCH_SPARSEMEM_ENABLE
Say Y to support efficient handling of sparse physical memory, for architectures which are either NUMA (Non-Uniform Memory Access) or have huge holes in the physical address space for other reasons. See <file:Documentation/mm/numa.rst> for more.
- Selects
SPARSEMEM_VMEMMAP_ENABLE
CONFIG_ARCH_MEMORY_PROBE
- Depends on
MEMORY_HOTPLUG
CONFIG_MMU
CONFIG_ARCH_MMAP_RND_BITS_MIN
CONFIG_ARCH_MMAP_RND_BITS_MAX
CONFIG_ARCH_SUPPORTS_UPROBES
CONFIG_KASAN_SHADOW_OFFSET
- Depends on
KASAN
Power management options
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245
- arch/alpha/Kconfig:89
- arch/arc/Kconfig:70
- arch/arm/Kconfig:319
- arch/arm64/Kconfig:278
- arch/csky/Kconfig:160
- arch/hexagon/Kconfig:57
- arch/loongarch/Kconfig:787
- arch/m68k/Kconfig:84
- arch/microblaze/Kconfig:93
- arch/mips/Kconfig:3046
- arch/nios2/Kconfig:69
- arch/openrisc/Kconfig:54
- arch/parisc/Kconfig:106
- arch/powerpc/Kconfig:30
- arch/riscv/Kconfig:292
- arch/s390/Kconfig:2
- arch/sh/mm/Kconfig:4
- arch/sparc/Kconfig:140
- arch/um/Kconfig:52
- arch/x86/Kconfig:356
- arch/xtensa/Kconfig:94