From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id F3F19A683; Sun, 30 Aug 2026 06:45:50 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 201C7A5F9; Sun, 30 Aug 2026 06:45:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by atuin.qyliss.net (Postfix) with ESMTPS id 66456A625 for ; Sun, 30 Aug 2026 06:45:45 +0000 (UTC) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-861f30636f9so7639857b3.0 for ; Sat, 29 Aug 2026 23:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788072344; x=1788677144; darn=spectrum-os.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Vn6R3+Oie6xpjth4x9j1PKNa9C44col1LZlOOA/Sxok=; b=E0fGDJQKIudzohucRLtGfmQkpgUImkC0GaHTjgJPjL4cvWSMobczxg0oid4hcGe7sK vdQACZYXBQ40rbvhsox8lRYjEWV1QEXrxKrGo+JAzBWCs0u9O4VdqT9mhEkwkYZP2mi/ 4gdo7AauFX2dGh4LAKSMszXBmkLwMJzUC3fBnghSBTpTQpxvUJ2/iEJc+Bphr7MPJf/H /sxQI5UW5q3xxXtBkoDqxxtQU7dUADy1CTqD7wIRxiJ5sBhzrqU7swVoE9Oau/NLrXUy JkhfTTzNDZt8acqYdl5kBeLXLUueV9ar4LZOWK0WUdSxnZZpxFwIXEoI+4GsbVWIg0lF aMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788072344; x=1788677144; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Vn6R3+Oie6xpjth4x9j1PKNa9C44col1LZlOOA/Sxok=; b=m/EYEIMxzC6mdmfWMsdD4cWwOruX4b1uefC38A8Yki36QTHl1XJYfbtLsLR0swwY48 oIP41xLC+++h2Eeghoi2QtC/QB4PlWR+xl9UT8w8cSdRKnSPvNcITO5eNNZ8YB9fHhiJ TJyFDWaH8pGKRYFJ88tOfw+BG6vP0oWTbR4JmmepMaXlKM4HygQD9IPW9Zb22geViG1k hDTx377yViL98L+M7JRtDODVrIfQqm1RzQluBDJ3xF6YYbUbX8Rsoa60pyecCneq88c4 CrdCVtC7u6LlR383G/Fu7LAE4pggVVqF7Q5RIwZwWKDwE8UqZlxIJPBJkmoM0cyNXWwl 5+JA== X-Gm-Message-State: AFuF++nL4dX0v9Ocxeq6JTDOuvoe1b0vgaxEDEZs1K7RuKoiI2ldiN37 obNVVMJv+/tYgJDcjWTONfJOuluOn6X++UkN/RcIownQSPzW+XVOy66G6JHX/w== X-Gm-Gg: AYBFou3omvTQSnL2yuG54W4vL7WaKI7tDL/U5vff6yhbKA40mbhiGHbvTbfm8Lz1ibP x7aZzMEw39YT4SNyMtvdBllb21KPPwZ1vWoyxVSaWgra/V3MGMfQ4YTGmOXOBCzMKV+Khvlf5Bp dMhKI7SbiBkSoqONLOVdJ7xXxD6/cIcvy2YZkZfhU0filZWLQ+vJ/27A1cbgxFF0Ai56JDC4+ME +naCUUUnEHKlQsBCZv1A6KfVb6JipisjCKdBv8nFrF9LxqadSoAMlnv0O0d24bMH50+rcDJDJKv vzp7JSWhXStA0ISF93JI9dWMHH0BX8gBroBfmZCSQK1ONv9bJ5H3v5kURES5I9ZEXf09Wi4rjQ3 B+zh6TNH7uNa4TB8BfJFdgD/QCemTokymJDfe12o9yM7v8zzMuxtAPTGMCBBrvm4Wmbc66HXAi1 0BBabBfm4H8Cl/XOFM4A6m3LmxYceEsj8CxmoGae7j6ikGIT18Us0D3VMl8fQxS20SAJgtsYcgv Q== X-Received: by 2002:a05:690e:4196:b0:66e:5d2f:8235 with SMTP id 956f58d0204a3-66e5d2f830fmr1798347d50.35.1788072344113; Sat, 29 Aug 2026 23:45:44 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-66e4eb3de46sm3666826d50.3.2026.08.29.23.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2026 23:45:42 -0700 (PDT) From: Demi Marie Obenour Date: Sun, 30 Aug 2026 02:06:49 -0400 Subject: [PATCH v8 15/18] host/rootfs: vhost-user-fs: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260830-cgroups-v8-15-239b09ba7013@gmail.com> References: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> In-Reply-To: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788069995; l=2786; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=q2hwSSIU1j/8z9/qoJ3WRsQwb4Q1krP5wfsnVG+togs=; b=OmkAKSCAvT3T69Ov9vn20LCs/WHosCU88wDQIrpSnvR0iSmBcqsJLfBPzQnt9C5wV/29IwTtB cwY/nc9lX/aAWR2Z6DTmhRyEeyvfSa85CfCliCcdevB0SH0elsdJvd/ X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: L4RVMZ2CL6VMOTE6VLVEC5TVQ477EE3T X-Message-ID-Hash: L4RVMZ2CL6VMOTE6VLVEC5TVQ477EE3T X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Hits: member-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; emergency CC: Demi Marie Obenour , Alyssa Ross X-Mailman-Version: 3.3.10 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Demi Marie Obenour --- host/rootfs/file-list.mk | 1 + .../service/vm-services/template/data/service/vhost-user-fs/finish | 5 +++++ .../service/vm-services/template/data/service/vhost-user-fs/run | 2 ++ 3 files changed, 8 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index ea88f25aa4d5b96d29ed86975db12c2b047a0468..e9b15f7ed466da0535809717de3c655b5f93d0f7 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -34,6 +34,7 @@ FILES = \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/down \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run \ + image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/notification-fd \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish new file mode 100755 index 0000000000000000000000000000000000000000..8b63639fb196abfbb703f7ac6dc974f9838124d9 --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WS3 +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour +# SPDX-License-Identifier: EUPL-1.2+ + +cgroup-purge $3 diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run index cb059aebc8dfe2c8a5b059d5bfea884de53bf922..666a2dbf9e9598f82f3ae4c01bfe2b3f05a70335 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run @@ -2,6 +2,8 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021-2025 Alyssa Ross +cgroup-setup -- $1 + s6-ipcserver-socketbinder -a 0700 -B env/virtiofsd.sock importas -i VM VM -- 2.55.0