Skip to content

Commit 1c15b52

Browse files
committed
vsock: backport SIOCINQ support
Backport SIOCINQ support for vsock, and extend TSI to support ioctls on top of vsock sockets. Fixes: containers/libkrun#657 Signed-off-by: Sergio Lopez <slp@redhat.com>
1 parent e0647fa commit 1c15b52

38 files changed

Lines changed: 265 additions & 71 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 ff5dbd901b0688a006fafcba07449d4a116b7317 Mon Sep 17 00:00:00 2001
1+
From 1b8951549a0a2f83eaad338de50b91294cfbeb13 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 dd2119161ec3510a5ca2946dcadd5043f19ff4ed Mon Sep 17 00:00:00 2001
1+
From a8f382f4f103c2b8407877982c3259d95bc32a01 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 45bce0f81b5111fac6e6979a8709e8bd87661ef4 Mon Sep 17 00:00:00 2001
1+
From 4147420d99395414ccf3daa60c83462d21246a03 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 126c045600e62f2e1bda8568cee52de30b6d0aff Mon Sep 17 00:00:00 2001
1+
From 9929b02ac95570117dc150386109a2a23538ceba 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 db20a79e5810bc9fc77655acde5c8e13e7942ba9 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/32] krunfw: Don't panic when init dies
4+
Subject: [PATCH 01/34] 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 2e7df3e03121c97e16bb72de31e8b5ba9908971a 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/32] krunfw: Ignore run_cmd on orderly reboot
4+
Subject: [PATCH 02/34] 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 8ca8db16da5001752ca7d782a60d9af85e7899b7 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/32] vsock/dgram: generalize recvmsg and drop
4+
Subject: [PATCH 03/34] 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 0530d4f1e7c9112d492330d74bab3426ef4f5cf6 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/32] vsock: refactor transport lookup code
4+
Subject: [PATCH 04/34] 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 365643863f3166d827024d4b6067222a6453d015 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/32] vsock: support multi-transport datagrams
4+
Subject: [PATCH 05/34] 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 cc6d6e946fdfd0e5aa2e1a9a1c6f4ecc199c2181 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/32] vsock: make vsock bind reusable
4+
Subject: [PATCH 06/34] 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)