linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 3/3] arm64: configs: Add virtconfig
       [not found]   ` <CAK7LNASRz-apG_pNwvNOqxXy+-tp+WGHV--g6yYU-UQnZx5tgA@mail.gmail.com>
@ 2023-02-13 15:15     ` Arnd Bergmann
  0 siblings, 0 replies; only message in thread
From: Arnd Bergmann @ 2023-02-13 15:15 UTC (permalink / raw)
  To: Masahiro Yamada, Mark Brown
  Cc: Catalin Marinas, Will Deacon, Nathan Chancellor,
	Nick Desaulniers, Nicolas Schier, soc, Mark Rutland,
	Peter Zijlstra, linux-arm-kernel, linux-kbuild, linux-kernel

On Sat, Feb 11, 2023, at 08:37, Masahiro Yamada wrote:
> On Sat, Feb 11, 2023 at 4:54 AM Mark Brown <broonie@kernel.org> wrote:
>>
>> Provide a slimline configuration intended to be booted on virtual
>> machines, with the goal of providing a light configuration which will
>> boot on and enable features available in mach-virt.  This is defined in
>> terms of the standard defconfig, with an additional virt.config fragment
>> which disables options unneeded in a virtual configuration.
>>
>> As a first step we just disable all the ARCH_ configuration options,
>> disabling the build of all the SoC specific drivers.  This results in a
>> kernel that builds about 25% faster in my testing, if this approach
>> works for people we can add further options.
>>
>> Signed-off-by: Mark Brown <broonie@kernel.org>
>> ---
>>  arch/arm64/Makefile            |  6 ++++++
>>  arch/arm64/configs/virt.config | 39 +++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 45 insertions(+)

I like this a lot, I think that is very helpful and we can always build on
top of it later with other fragments.

We could still combine this with another Kconfig option that
just hides all the real SoC options, which would turn this fragment
into a one-line file and avoid having to update it whenever platforms
get added.

> Yeah, I have a _local_ script to apply
> a similar config fragragment.
>
> When I run QEMU, I disable unneeded CONFIG_ARCH_*,
> and also disable unneeded sub-systems.
>
> Not only me, many people are doing similar in their local env,
> I guess.
>
>
> Of course, I will not upstream my set of CONFIG options
> since it is just my preference.
> After all, this depends on people in my opinion.

Do you have an opinion on the other two patches? If those
look good to you, maybe I can just merge all three through the
soc/defconfig branch for 6.3.

      Arnd

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-13 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230203-arm64-defconfigs-v1-0-cd0694a05f13@kernel.org>
     [not found] ` <20230203-arm64-defconfigs-v1-3-cd0694a05f13@kernel.org>
     [not found]   ` <CAK7LNASRz-apG_pNwvNOqxXy+-tp+WGHV--g6yYU-UQnZx5tgA@mail.gmail.com>
2023-02-13 15:15     ` [PATCH 3/3] arm64: configs: Add virtconfig Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).