From: Xiangyu Chen <[email protected]>

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 <[email protected]>
---
 recipes-kernel/linux/linux-yocto/criu.cfg           | 8 ++++++++
 recipes-kernel/linux/linux-yocto/criu.scc           | 4 ++++
 recipes-kernel/linux/linux-yocto_virtualization.inc | 1 +
 3 files changed, 13 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-yocto/criu.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/criu.scc

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 @@
+#Networking options options for sock-diag subsystem
+CONFIG_UNIX_DIAG=y
+CONFIG_INET_DIAG=y
+CONFIG_INET_UDP_DIAG=y
+CONFIG_PACKET_DIAG=y
+CONFIG_NETLINK_DIAG=y
+CONFIG_NETFILTER_XT_MARK=y
+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 @@
+define KFEATURE_DESCRIPTION "Enable Networking Features needed by criu."
+define KFEATURE_COMPATIBILITY board
+
+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 \
            file://lxc.scc \
             file://docker.scc \
            file://cgroup-hugetlb.scc \
+           file://criu.scc \
            "
 KERNEL_FEATURES:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'kvm', 
'features/kvm/qemu-kvm-enable.scc', '', d)}"
 
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8527): 
https://lists.yoctoproject.org/g/meta-virtualization/message/8527
Mute This Topic: https://lists.yoctoproject.org/mt/103576949/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to