From: "Tim Orling" <ticotimo@gmail.com>
To: meta-virtualization@lists.yoctoproject.org
Cc: Tim Orling <ticotimo@gmail.com>
Subject: [meta-virtualization][PATCH] linux-yocto: add cgroup-hugetlb config
Date: Sat, 14 Nov 2020 19:49:22 -0800 [thread overview]
Message-ID: <20201115034922.30940-1-ticotimo@gmail.com> (raw)
From: Tim Orling <ticotimo@gmail.com>
Add kernel config fragment for CONFIG_CGROUP_HUGETLB
This is a recommended config for Kubernetes and k8s
will throw a warning if it is not present.
Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg | 5 +++++
recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc | 5 +++++
recipes-kernel/linux/linux-yocto_virtualization.inc | 1 +
3 files changed, 11 insertions(+)
create mode 100644 recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg
create mode 100644 recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc
diff --git a/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg
new file mode 100644
index 0000000..417ca24
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.cfg
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: MIT
+#
+# This requires CONFIG_HUGETLBFS
+
+CONFIG_CGROUP_HUGETLB=y
diff --git a/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc
new file mode 100644
index 0000000..7d1f999
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/cgroup-hugetlb.scc
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Enable hugetlb cgroup"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware cgroup-hugetlb.cfg
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc
index f050b3f..42a10b3 100644
--- a/recipes-kernel/linux/linux-yocto_virtualization.inc
+++ b/recipes-kernel/linux/linux-yocto_virtualization.inc
@@ -5,6 +5,7 @@ SRC_URI += "file://xt-checksum.scc \
file://vswitch.scc \
file://lxc.scc \
file://docker.scc \
+ file://cgroup-hugetlb.scc \
"
KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}"
--
2.25.0
next reply other threads:[~2020-11-15 3:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-15 3:49 Tim Orling [this message]
2020-11-19 16:08 ` [meta-virtualization][PATCH] linux-yocto: add cgroup-hugetlb config Bruce Ashfield
2020-11-19 16:50 ` Tim Orling
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=20201115034922.30940-1-ticotimo@gmail.com \
--to=ticotimo@gmail.com \
--cc=meta-virtualization@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.