Skip to content

Commit 430e31b

Browse files
committed
Include a patch reverting vsock TX credit cap
Commit c0e42fb0e054c2b2ec4ee80f48ccd256ae0227ce backports "vsock/virtio: cap TX credit to local buffer size", which breaks libkrun's vsock implementation since we don't expect the peer to not honor our buf_alloc value. This causes us to miss sending credit updates, leading to the kernel thinking the socket has ran out of space. Temporarily revert it until we have a libkrun release supporting this behavior. Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent b1b5526 commit 430e31b

30 files changed

Lines changed: 82 additions & 29 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 18d2a787f2160edb05cd536fb74109e47ff8e2b8 Mon Sep 17 00:00:00 2001
1+
From 657f3ea1bfeb76ddc6bc4af9eb23dc77a1ff8a1a 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 84452765ffa7957a573d4782eced150043dbf7d6 Mon Sep 17 00:00:00 2001
1+
From 85875d63186b73e8b524204ee10385f979f49d48 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 aa4dfd6648a87fc12da362ab2381accd31ce212e Mon Sep 17 00:00:00 2001
1+
From 702d45def09ba1783735f654a6686c1aa1f601e9 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 d0d3b5b18f81c9660e201b056909e0f52c519546 Mon Sep 17 00:00:00 2001
1+
From 3b114c42aaf912e8da93252c5562f7635a8b2199 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/25] krunfw: Don't panic when init dies
4+
Subject: [PATCH 01/26] 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/25] krunfw: Ignore run_cmd on orderly reboot
4+
Subject: [PATCH 02/26] 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/25] vsock/dgram: generalize recvmsg and drop
4+
Subject: [PATCH 03/26] 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/25] vsock: refactor transport lookup code
4+
Subject: [PATCH 04/26] 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/25] vsock: support multi-transport datagrams
4+
Subject: [PATCH 05/26] 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/25] vsock: make vsock bind reusable
4+
Subject: [PATCH 06/26] 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)