mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org, "H . Peter Anvin" <hpa@zytor.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Borislav Petkov <bp@alien8.de>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH 00/15] x86/kconfig: Enable various kernel features in the defconfig, add the 'x86_32' subarchitecture build target and misc cleanups
Date: Tue, 6 May 2025 09:45:00 +0200	[thread overview]
Message-ID: <20250506074500.GI4198@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20250505110946.1095363-1-mingo@kernel.org>

On Mon, May 05, 2025 at 01:09:31PM +0200, Ingo Molnar wrote:
> 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

One thing I'd been pondering for a while, but have absolutely no
bandwidth for what so ever, is a more fragment based config setup.

Much like we now have defconfig, kvm_guest.config, debug.config
and xen.config etc..

My main 'complain' is more that defconfig is too fat already, and here
you are making it fatter still -- notably, I don't need i915 in most of
the kernels I build (my test machines are all headless).

Could we not instead move things out into fragments, so that people can
compose the bits they need?

The other day, I was looking for a kvm_host.config fragment, to pair with
the kvm_guest.config we do have.

Similarly, all that UBSAN, MM and assorted debug cruft is already in
debug.config (although I do think debug.config is *too* heavy).



  parent reply	other threads:[~2025-05-06  7:45 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05 11:09 Ingo Molnar
2025-05-05 11:09 ` [PATCH 01/15] x86/kconfig/64: Refresh defconfig Ingo Molnar
2025-05-05 11:09 ` [PATCH 02/15] x86/kconfig/32: " Ingo Molnar
2025-05-05 11:09 ` [PATCH 03/15] x86/kconfig: Rename x86_64_defconfig to defconfig.x86_64 and i386_defconfig to defconfig.i386 Ingo Molnar
2025-05-05 11:09 ` [PATCH 04/15] x86/kbuild: Introduce the 'x86_32' subarchitecture Ingo Molnar
2025-05-05 11:09 ` [PATCH 05/15] x86/kbuild: Remove ancient 'arch/i386/' and 'arch/x86_64/' directory removal 'archclean' target Ingo Molnar
2025-05-05 11:09 ` [PATCH 06/15] x86/tools: insn_decoder_test.c: Emit standard build success messages Ingo Molnar
2025-05-05 11:09 ` [PATCH 07/15] x86/tools: insn_sanity.c: " Ingo Molnar
2025-05-05 11:09 ` [PATCH 08/15] x86/kconfig/64: Enable the KVM host in the defconfig Ingo Molnar
2025-05-05 11:09 ` [PATCH 09/15] x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN and Intel TDX Ingo Molnar
2025-05-05 11:55   ` Kirill A. Shutemov
2025-05-06 13:34   ` Vitaly Kuznetsov
2025-05-06 17:02     ` [PATCH -v2 09/15] x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN, Intel TDX and Hyper-V Ingo Molnar
2025-05-08  1:43       ` Michael Kelley
2025-05-07 19:55   ` [PATCH 09/15] x86/kconfig/64: Enable more virtualization guest options in the defconfig: enable Xen, Xen_PVH, Jailhouse, ACRN and Intel TDX Carlos Bilbao
2025-05-05 11:09 ` [PATCH 10/15] x86/kconfig/64: Enable BPF support in the defconfig Ingo Molnar
2025-05-05 11:09 ` [PATCH 11/15] x86/kconfig/64: Enable popular MM options " Ingo Molnar
2025-05-05 11:09 ` [PATCH 12/15] x86/kconfig/64: Enable popular kernel debugging " Ingo Molnar
2025-05-05 12:56   ` Sam James
2025-05-05 23:30   ` Ivan Shapovalov
2025-05-06 11:23     ` Ingo Molnar
2025-05-05 11:09 ` [PATCH 13/15] x86/kconfig/64: Enable popular scheduler, cgroups and namespaces " Ingo Molnar
2025-05-05 11:09 ` [PATCH 14/15] x86/kconfig/64: Enable popular generic kernel " Ingo Molnar
2025-05-05 11:09 ` [PATCH 15/15] x86/kconfig/32: Synchronize the x86-32 defconfig to the x86-64 defconfig Ingo Molnar
2025-05-06  7:45 ` Peter Zijlstra [this message]
2025-05-06 11:30   ` [PATCH 00/15] x86/kconfig: Enable various kernel features in the defconfig, add the 'x86_32' subarchitecture build target and misc cleanups Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250506074500.GI4198@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome