Skip to content

x86/kconfig: Enable various kernel features in the defconfig, add the 'x86_32' subarchitecture build target and misc cleanups

Ingo Molnar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15x86/kconfig/64: Refresh defconfigarch/x86/configs/x86_64_defconfig+1 -80 replies
2/15x86/kconfig/32: Refresh defconfigarch/x86/configs/i386_defconfig+3 -110 replies
3/15x86/kconfig: Rename x86_64_defconfig to defconfig.x86_64 and i386_defconfig to defconfig.i386Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst arch/x86/Makefile arch/x86/configs/defconfig.i386 +2 more+5 -50 replies
4/15x86/kbuild: Introduce the 'x86_32' subarchitectureMakefile arch/x86/Kconfig arch/x86/Makefile +2 more+18 -80 replies
5/15x86/kbuild: Remove ancient 'arch/i386/' and 'arch/x86_64/' directory removal 'archclean' targetarch/x86/Makefile+0 -40 replies
6/15x86/tools: insn_decoder_test.c: Emit standard build success messagesarch/x86/tools/insn_decoder_test.c+1 -10 replies
7/15x86/tools: insn_sanity.c: Emit standard build success messagesarch/x86/tools/insn_sanity.c+2 -20 replies
8/15x86/kconfig/64: Enable the KVM host in the defconfigarch/x86/configs/defconfig.x86_64+5 -00 replies
9/15x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN and Intel TDXarch/x86/configs/defconfig.x86_64+6 -03 replies
9/15x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN, Intel TDX and Hyper-Varch/x86/configs/defconfig.x86_64+13 -11 reply
10/15x86/kconfig/64: Enable BPF support in the defconfigarch/x86/configs/defconfig.x86_64+7 -00 replies
11/15x86/kconfig/64: Enable popular MM options in the defconfigarch/x86/configs/defconfig.x86_64+20 -00 replies
12/15x86/kconfig/64: Enable popular kernel debugging options in the defconfigarch/x86/configs/defconfig.x86_64+43 -33 replies
13/15x86/kconfig/64: Enable popular scheduler, cgroups and namespaces options in the defconfigarch/x86/configs/defconfig.x86_64+22 -30 replies
14/15x86/kconfig/64: Enable popular generic kernel options in the defconfigarch/x86/configs/defconfig.x86_64+2 -00 replies
15/15x86/kconfig/32: Synchronize the x86-32 defconfig to the x86-64 defconfigarch/x86/configs/defconfig.x86_32+110 -60 replies

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchKirill A. ShutemovCarlos Bilbao
1/15
2/15
3/15
4/15
5/15
6/15
7/15
8/15
9/15A-b A-b A-b
9/15A-b A-b A-b
10/15
11/15
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] x86/kconfig: Enable various kernel features in the defconfig, add the 'x86_32' subarchitecture build target and misc cleanups

Historically the x86 defconfigs aimed to be distro kernel work-alikes with fewer drivers and a substantially shorter build time. We regularly ask our contributors to test their changes on x86 defconfigs, and we frequently analyze code generation on such kernels as well.

In practice, over the past couple of years this goal has diverged from what actual modern Linux distributions do these days, and this series aims to correct that divergence.

Perform a thorough modernization of the x86 defconfigs, and apply some cleanups to the x86 build system as well:

- Enable various kernel features that the most popular Linux distributions have enabled in their generic kernels these days: KVM host, BPF support, UBSAN, various MM options, debugging options, various scheduler and cgroups options, support for a number of guest OS platforms, and other options.

- More specifically, these changes enable a rough superset of the kernel features enabled by Ubuntu, Fedora/RHEL kernels.

- Clean up the organization of the defconfig files as well.

- Add the ARCH=x86_32 build target

- Synchronize the x86_32 defconfig to the x86_64 defconfig:
this file is really just a random set of options configured many years ago with no relevance to anything people are using today anymore. Just follow the 64-bit options to the extent possible, to have at least one modern frame of reference.

- Clean up a number of kbuild details

This series can also be accessed through my Git tree:

git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git WIP.x86/kconfig

Thanks,

Ingo

================>
Ingo Molnar (15):
x86/kconfig/64: Refresh defconfig
x86/kconfig/32: Refresh defconfig
x86/kconfig: Rename x86_64_defconfig to defconfig.x86_64 and i386_defconfig to defconfig.i386 x86/kbuild: Introduce the 'x86_32' subarchitecture
x86/kbuild: Remove ancient 'arch/i386/' and 'arch/x86_64/' directory removal 'archclean' target x86/tools: insn_decoder_test.c: Emit standard build success messages
x86/tools: insn_sanity.c: Emit standard build success messages
x86/kconfig/64: Enable the KVM host in the defconfig
x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN and Intel TDX x86/kconfig/64: Enable BPF support in the defconfig
x86/kconfig/64: Enable popular MM options in the defconfig
x86/kconfig/64: Enable popular kernel debugging options in the defconfig
x86/kconfig/64: Enable popular scheduler, cgroups and namespaces options in the defconfig x86/kconfig/64: Enable popular generic kernel options in the defconfig
x86/kconfig/32: Synchronize the x86-32 defconfig to the x86-64 defconfig

 .../verify-bugs-and-bisect-regressions.rst         |   2 +-
 Makefile                                           |   7 +-
 arch/x86/Kconfig                                   |   2 +-
 arch/x86/Makefile                                  |  18 +--
 .../configs/{i386_defconfig => defconfig.x86_32}   | 130 ++++++++++++++++++---
 .../configs/{x86_64_defconfig => defconfig.x86_64} | 120 ++++++++++++++++---
 arch/x86/tools/insn_decoder_test.c                 |   2 +-
 arch/x86/tools/insn_sanity.c                       |   4 +-
 drivers/gpu/drm/ci/build.yml                       |   2 +-
 tools/scripts/Makefile.arch                        |   7 +-
 10 files changed, 244 insertions(+), 50 deletions(-)
 rename arch/x86/configs/{i386_defconfig => defconfig.x86_32} (69%)
 rename arch/x86/configs/{x86_64_defconfig => defconfig.x86_64} (70%)
Signature · 1 line
2.45.2