Skip to content

Commit b1b5526

Browse files
committed
Include patchs reverting nonlinear SKBs on vsock
The vsock implementation in libkrun can't deal with packets splitted among multiple descriptors. Until we add support for it, let's revert the patches in the kernel triggering this behavior. Fixes: containers/libkrun#535 Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent 7d95aa8 commit b1b5526

29 files changed

Lines changed: 197 additions & 26 deletions

File tree

patches-tee/0001-virtio-enable-DMA-API-if-memory-is-restricted.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 70b8ab2d1d4ba865efe08ba1307f694b9f154859 Mon Sep 17 00:00:00 2001
1+
From 18d2a787f2160edb05cd536fb74109e47ff8e2b8 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@sinrega.org>
33
Date: Fri, 10 Sep 2021 13:05:01 +0200
44
Subject: [PATCH 1/4] virtio: enable DMA API if memory is restricted

patches-tee/0002-x86-sev-write-AP-reset-vector.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b7bfb048dc9df54f4dc742e4787766a7fd2e39f8 Mon Sep 17 00:00:00 2001
1+
From 84452765ffa7957a573d4782eced150043dbf7d6 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Thu, 20 Oct 2022 10:23:16 +0200
44
Subject: [PATCH 2/4] x86/sev: write AP reset vector

patches-tee/0003-Implement-driver-to-retrieve-secrets-from-cmdline.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 8dfe0e6ed7600a8cd1e2caa7b1e61116493d5001 Mon Sep 17 00:00:00 2001
1+
From aa4dfd6648a87fc12da362ab2381accd31ce212e Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Wed, 3 Aug 2022 12:35:12 +0200
44
Subject: [PATCH 3/4] Implement driver to retrieve secrets from cmdline

patches-tee/0004-x86-sev-Avoid-using-native_cpuid.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c388e16aabfa5e989d0ca71c95ac24acfd72d2d4 Mon Sep 17 00:00:00 2001
1+
From d0d3b5b18f81c9660e201b056909e0f52c519546 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Wed, 5 Jun 2024 16:20:08 +0200
44
Subject: [PATCH 4/4] x86/sev: Avoid using native_cpuid

patches/0001-krunfw-Don-t-panic-when-init-dies.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 817f5791591a123e06fa85993aa24f2e4367c506 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Thu, 2 Mar 2023 07:34:49 +0100
4-
Subject: [PATCH 01/22] krunfw: Don't panic when init dies
4+
Subject: [PATCH 01/25] krunfw: Don't panic when init dies
55

66
In libkrun, the isolated process runs as PID 1. When it exits,
77
trigger an orderly reboot instead of panic'ing.

patches/0002-krunfw-Ignore-run_cmd-on-orderly-reboot.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From db750d64e3f36576b667b67e979ec800a1eec872 Mon Sep 17 00:00:00 2001
22
From: Sergio Lopez <slp@redhat.com>
33
Date: Mon, 16 May 2022 16:04:27 +0200
4-
Subject: [PATCH 02/22] krunfw: Ignore run_cmd on orderly reboot
4+
Subject: [PATCH 02/25] krunfw: Ignore run_cmd on orderly reboot
55

66
We don't really support restarting the conventional way, so ignore
77
"run_cmd" so we can fall back to an emergency sync and reboot.

patches/0003-vsock-dgram-generalize-recvmsg-and-drop-transport-dg.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 56ef3652b6666b91c1c66fa94aedac70a934bfb2 Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:28 +0000
4-
Subject: [PATCH 03/22] vsock/dgram: generalize recvmsg and drop
4+
Subject: [PATCH 03/25] vsock/dgram: generalize recvmsg and drop
55
transport->dgram_dequeue
66

77
This commit drops the transport->dgram_dequeue callback and makes

patches/0004-vsock-refactor-transport-lookup-code.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 385e0bdc508313f07f59bbe26cf91ed6d97eaf39 Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:29 +0000
4-
Subject: [PATCH 04/22] vsock: refactor transport lookup code
4+
Subject: [PATCH 04/25] vsock: refactor transport lookup code
55

66
Introduce new reusable function vsock_connectible_lookup_transport()
77
that performs the transport lookup logic.

patches/0005-vsock-support-multi-transport-datagrams.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 774a9ccd77a3adb0f736f3f2323bde3d0b06b210 Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:30 +0000
4-
Subject: [PATCH 05/22] vsock: support multi-transport datagrams
4+
Subject: [PATCH 05/25] vsock: support multi-transport datagrams
55

66
This patch adds support for multi-transport datagrams.
77

patches/0006-vsock-make-vsock-bind-reusable.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 4038db5595d575390c8a0d283ae647bf9d3e96c9 Mon Sep 17 00:00:00 2001
22
From: Bobby Eshleman <bobby.eshleman () bytedance ! com>
33
Date: Sat, 10 Jun 2023 00:58:31 +0000
4-
Subject: [PATCH 06/22] vsock: make vsock bind reusable
4+
Subject: [PATCH 06/25] vsock: make vsock bind reusable
55

66
This commit makes the bind table management functions in vsock usable
77
for different bind tables. For use by datagrams in a future patch.

0 commit comments

Comments
 (0)