diff options
author | Xiangyu Chen <xiangyu.chen@windriver.com> | 2024-01-07 20:56:07 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-01-19 14:29:24 +0000 |
commit | e4e20721887f91dd43bd47ce8e897b8629c57e0e (patch) | |
tree | 091e869bfe371a04ae51925d466beef59a760b58 | |
parent | f33765288da11bcefa64dd4991a8392756cb3139 (diff) | |
download | meta-virtualization-e4e20721887f91dd43bd47ce8e897b8629c57e0e.tar.gz |
criu: add kernel configuration features
criu needs to turn on sock diag features in kernel to do the system dump[1].
Ref:
[1] https://criu.org/Linux_kernel
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux-yocto/criu.cfg | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/criu.scc | 4 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/criu.cfg b/recipes-kernel/linux/linux-yocto/criu.cfg new file mode 100644 index 00000000..314addfa --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/criu.cfg | |||
@@ -0,0 +1,8 @@ | |||
1 | #Networking options options for sock-diag subsystem | ||
2 | CONFIG_UNIX_DIAG=y | ||
3 | CONFIG_INET_DIAG=y | ||
4 | CONFIG_INET_UDP_DIAG=y | ||
5 | CONFIG_PACKET_DIAG=y | ||
6 | CONFIG_NETLINK_DIAG=y | ||
7 | CONFIG_NETFILTER_XT_MARK=y | ||
8 | CONFIG_TUN=y | ||
diff --git a/recipes-kernel/linux/linux-yocto/criu.scc b/recipes-kernel/linux/linux-yocto/criu.scc new file mode 100644 index 00000000..87a88113 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/criu.scc | |||
@@ -0,0 +1,4 @@ | |||
1 | define KFEATURE_DESCRIPTION "Enable Networking Features needed by criu." | ||
2 | define KFEATURE_COMPATIBILITY board | ||
3 | |||
4 | kconf non-hardware criu.cfg | ||
diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 84a7bd84..a37759ef 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc | |||
@@ -6,6 +6,7 @@ SRC_URI += "file://xt-checksum.scc \ | |||
6 | file://lxc.scc \ | 6 | file://lxc.scc \ |
7 | file://docker.scc \ | 7 | file://docker.scc \ |
8 | file://cgroup-hugetlb.scc \ | 8 | file://cgroup-hugetlb.scc \ |
9 | file://criu.scc \ | ||
9 | " | 10 | " |
10 | KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}" | 11 | KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 'features/kvm/qemu-kvm-enable.scc', '', d)}" |
11 | 12 | ||