Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Consider using config fragments for kernel #234

Closed
egernst opened this issue Oct 25, 2018 · 4 comments
Closed

Consider using config fragments for kernel #234

egernst opened this issue Oct 25, 2018 · 4 comments
Assignees

Comments

@egernst
Copy link
Member

egernst commented Oct 25, 2018

Today we maintain a full defconfig per architecture, which makes it difficult to identify what is required for Kata at a minimum, versus what is pulled in as a default during the build process, versus what is a nice have for device support. Having a minimally configured kernel is very important from a footprint and security perspective. It'll be hard if we aren't clear/explicit.

Similarly, for new architectures are developers coming to Kata, it can be difficult to understand what options are needed to bootstrap a Kata-able kernel (example: yocto devs bringing up Kata).

Based on this, I think we should consider reworking how the kernel configuration is maintained for Kata project.

Ideally we would use a hierarchy of fragments, such as:

-required features for Kata
-base device enabling (ie, baseline of NICs, other hardware)
-architecture enabling (per architecture)

In the build process we'd be able to start with no-config or defconfig, and then add the appropriate fragments as needed (making use of merge_config.sh).

@egernst
Copy link
Member Author

egernst commented Oct 25, 2018

/cc @jon @jodh-intel @jcvenegas @bergwolf @sameo -- Feedback?

@grahamwhaley
Copy link
Contributor

If we can make it work, then yes, I think that would be OK. Notes though:

  • I don't necessarily like the idea of starting with a defconfig, and prefer a noconfig or tinyconfig (on the grounds of kernel size) - but I'm not sure if that is feasible for all architectures
  • tbh, I don't think there are that many architectures that support VMs, and we already probably have the majority of the ones that matter - so, the point might be moot, or soon would be with the addition of one or two more architectures?

But, it would be nice to have a clean definitive list of CONFIGs we need, and why (and if some are optional and what they enable etc.)

@egernst
Copy link
Member Author

egernst commented Oct 29, 2018

@jodh-intel agreed, and this has indeed been an open and oft-discussed. config_merge.sh is a standard part of linux build process, though, which I think would be beneficial.

@grahamwhaley grahamwhaley self-assigned this Jan 22, 2019
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Jan 22, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Jan 23, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Feb 8, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Feb 12, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Feb 27, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 9, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 17, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit that referenced this issue Apr 24, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: #234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit that referenced this issue Apr 24, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: #234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit that referenced this issue Apr 24, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: #234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 25, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 25, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 29, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue Apr 30, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue May 3, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue May 8, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue May 9, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
grahamwhaley pushed a commit to grahamwhaley/kata-containers-packaging that referenced this issue May 13, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit to devimc/kata-packaging that referenced this issue Jul 19, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit to devimc/kata-packaging that referenced this issue Jul 22, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
devimc pushed a commit to devimc/kata-packaging that referenced this issue Jul 24, 2019
Add the framework to build kernel config files from trees
of kernel fragments.

If no fragment directory is found for the requested kernel
version and architecture then revert to looking for a whole
prebuilt kernel config file instead.

Fixes: kata-containers#234

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants