mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-17 08:53:26 +00:00
kernel: update experimental kernel to 5.10.x
Relevant changes for experimental : 42d3e2d04 virtiofs: calculate number of scatter-gather elements accurately 413daa1a3 fuse: connection remove fix bf109c640 fuse: implement crossmounts 1866d779d fuse: Allow fuse_fill_super_common() for submounts fcee216be fuse: split fuse_mount off of fuse_conn 8f622e949 fuse: drop fuse_conn parameter where possible 24754db27 fuse: store fuse_conn in fuse_req c6ff213fe fuse: add submount support to <uapi/linux/fuse.h> d78092e49 fuse: fix page dereference after free 9a752d18c virtiofs: add logic to free up a memory range d0cfb9dcb virtiofs: maintain a list of busy elements 6ae330cad virtiofs: serialize truncate/punch_hole and dax fault path 9483e7d58 virtiofs: define dax address space operations 2a9a609a0 virtiofs: add DAX mmap support c2d0ad00d virtiofs: implement dax read/write operations ceec02d43 virtiofs: introduce setupmapping/removemapping commands fd1a1dc6f virtiofs: implement FUSE_INIT map_alignment field 45f2348ec virtiofs: keep a list of free dax memory ranges 1dd539577 virtiofs: add a mount option to enable dax 22f3787e9 virtiofs: set up virtio_fs dax_device f4fd4ae35 virtiofs: get rid of no_mount_options b43b7e81e virtiofs: provide a helper function for virtqueue initialization Fixes: #1639 Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
parent
503039482b
commit
107ceca680
@ -123,12 +123,6 @@ get_kernel() {
|
||||
[ ! -d "${kernel_path}" ] || die "kernel_path already exist"
|
||||
|
||||
|
||||
if [[ ${experimental_kernel} == "true" ]]; then
|
||||
kernel_tarball="linux-${version}.tar.gz"
|
||||
curl --fail -OL "https://gitlab.com/virtio-fs/linux/-/archive/${version}/${kernel_tarball}"
|
||||
tar xf "${kernel_tarball}"
|
||||
mv "linux-${version}" "${kernel_path}"
|
||||
else
|
||||
|
||||
#Remove extra 'v'
|
||||
version=${version#v}
|
||||
@ -159,7 +153,6 @@ get_kernel() {
|
||||
tar xf "${kernel_tarball}"
|
||||
|
||||
mv "linux-${version}" "${kernel_path}"
|
||||
fi
|
||||
}
|
||||
|
||||
get_major_kernel_version() {
|
||||
@ -338,6 +331,7 @@ setup_kernel() {
|
||||
local major_kernel
|
||||
major_kernel=$(get_major_kernel_version "${kernel_version}")
|
||||
local patches_dir_for_version="${patches_path}/${major_kernel}.x"
|
||||
local experimental_patches_dir="${patches_path}/${major_kernel}.x/experimental"
|
||||
|
||||
[ -n "${arch_target}" ] || arch_target="$(uname -m)"
|
||||
arch_target=$(arch_to_kernel "${arch_target}")
|
||||
@ -347,6 +341,12 @@ setup_kernel() {
|
||||
# Apply version specific patches
|
||||
${packaging_scripts_dir}/apply_patches.sh "${patches_dir_for_version}"
|
||||
|
||||
# Apply version specific patches for experimental build
|
||||
if [ "${experimental_kernel}" == "true" ] ;then
|
||||
info "Apply experimental patches"
|
||||
${packaging_scripts_dir}/apply_patches.sh "${experimental_patches_dir}"
|
||||
fi
|
||||
|
||||
[ -n "${hypervisor_target}" ] || hypervisor_target="kvm"
|
||||
[ -n "${kernel_config_path}" ] || kernel_config_path=$(get_default_kernel_config "${kernel_version}" "${hypervisor_target}" "${arch_target}" "${kernel_path}")
|
||||
|
||||
@ -474,6 +474,8 @@ main() {
|
||||
if [ -z "$kernel_version" ]; then
|
||||
if [[ ${experimental_kernel} == "true" ]]; then
|
||||
kernel_version=$(get_from_kata_deps "assets.kernel-experimental.tag" "${kata_version}")
|
||||
#Remove extra 'v'
|
||||
kernel_version="${kernel_version#v}"
|
||||
else
|
||||
kernel_version=$(get_from_kata_deps "assets.kernel.version" "${kata_version}")
|
||||
#Remove extra 'v'
|
||||
|
@ -162,8 +162,8 @@ assets:
|
||||
|
||||
kernel-experimental:
|
||||
description: "Linux kernel with virtio-fs support"
|
||||
url: "https://gitlab.com/virtio-fs/linux.git"
|
||||
tag: "kata-v5.6-april-09-2020"
|
||||
url: "https://cdn.kernel.org/pub/linux/kernel/v4.x/"
|
||||
tag: "v5.10.25"
|
||||
|
||||
externals:
|
||||
description: "Third-party projects used by the system"
|
||||
|
Loading…
Reference in New Issue
Block a user