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 0C7FA394C; Wed, 15 Jul 2026 09:59:38 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 705221D74; Sat, 11 Jul 2026 20:14:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Flag: YES X-Spam-Level: *** X-Spam-Status: Yes, score=3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,UNWANTED_LANGUAGE_BODY autolearn=no autolearn_force=no version=4.0.1 X-Spam-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [2607:f8b0:4864:20:0:0:0:1134 listed in] [list.dnswl.org] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * [demiobenour(at)gmail.com] * 4.0 UNWANTED_LANGUAGE_BODY BODY: Message written in an undesired * language * [Languages detected: ro fr] * -0.0 DMARC_PASS DMARC pass policy Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by atuin.qyliss.net (Postfix) with ESMTPS id 802DD1D61 for ; Sat, 11 Jul 2026 20:14:39 +0000 (UTC) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-81e6f0b4610so25778417b3.2 for ; Sat, 11 Jul 2026 13:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783800878; x=1784405678; 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=qqQN4BqpLHw3sd3eUYiZrgzTncY9ubtZEBBv+oEWQhc=; b=Wbi1MdbgKVjqWWE5NcDKpf5NAzqKUOVUJLjHAutJig70XZCB6qva5GM8tiCPXjY0yS RvCNJnnJMr3lL6vUypTc2wdVBPf/yZ2qhZe9WeLetl57FCF2xdhhnY2FmjEsWKmesEU8 vYj9W1GEI0pKE6hBO+l5OtEtDBMUoIeK2J+jQAd0JzOZTSEmxpayKZtotnInSzDPBF6s hKO8M/rvnMvWVcGHEpIQugRukF2kyId9dSgPQ6J/iJnWvyY0M/5BbWcN1fl6fjyVS6KY 5PmDQEEen3UgZbsFFJNKrc5jYSL6FtPgoM1w6eZNTgEwoLdMkCWBmyeiq8FAjGOYdPPx Q/JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783800878; x=1784405678; 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=qqQN4BqpLHw3sd3eUYiZrgzTncY9ubtZEBBv+oEWQhc=; b=DKjgUsMO4QJ04nTUXK7VAqtD+84uuVqDW+9lLoZnqy6mA7IgF27WVBEoFfzQUMAq7Z SqNuH0zywfQbz3KU4BWtaGPxJBXBARcbEY4kiWWtrRctaw0MB4C7y71uGCazjSyaa7Ln X8SBQX8t5ZafW7SAJK7rx4fOsYfnIF5U1+GBc6+NNebcxrO39SwcWBMWpT356HTLbdBx W/FRicRrIrvBQGKf0bvwFNaYH7oxJj3iTkEmzlf970oKVB8Kfedl96QTSIc1az3/T6Lr WyMREhhabhTsIMzXyxi/oh4DEy79nOHxyFdXQxn5/vCD3p07Rjmtibi6G9V67LtuNGN5 2TEA== X-Gm-Message-State: AOJu0Yw7LcdqgAmjLbbi27KUJEyjODe+IdR4qDiZVEUlsVo8TLArYkD7 itrn1hUAnHjLESo7XaFYR/H/YwupOTDe32GuOipm4UzTVN+tUg9nQzsoNF9ZUA== X-Gm-Gg: AfdE7cmNYu6BLhm5aS8VUUvyJGEHs1ClhzTWVbAW/dexNbysaWRRSXQNRVgDEaudpoN UV5/SGpshE1yc3Zil/TVpB7mc1Be4nCHkvCc1BeEYAIbK5zBN6Hen24e0eL3sVIH/FPdALQO8zH hAQXxtkTmOG61G9fkalilJnDcfDf5izFsS6pmxa3kyKJZfbsCUWGUQ2zUEwypgJW1yh+1f05Lc2 0ASt0Y+jciX/9Yl2EWypn68mWkTNJDJSOy7pO5XRBCB+9845LwEM6VcRSn/zG0m+FZmRNg5CjUn mlOBbZKzm771VrJWawaWDOo5XGeJTyMbbpkkt0FN6xO1Muzeiwop7oT5f98aCjahhV9GUjAsqto EPTEflkAtUQOyqoaaie+PvqvyrRzfGrF5QwqWl7GjakwgFSoZWkgQUHdq9sECAiZ8YMbCVoZ6Py gWBYoONMBoaiOeGricAI0MDQ6LYg== X-Received: by 2002:a05:690e:155b:10b0:664:b514:a086 with SMTP id 956f58d0204a3-667d7b8dbc5mr2300999d50.52.1783800878288; Sat, 11 Jul 2026 13:14:38 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-667c2efa583sm5828149d50.15.2026.07.11.13.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 13:14:36 -0700 (PDT) From: Demi Marie Obenour Date: Sat, 11 Jul 2026 16:12:20 -0400 Subject: [PATCH v3 16/22] 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: <20260711-cgroups-v3-16-5cba61a20cba@gmail.com> References: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> In-Reply-To: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783800724; l=2578; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=9sZPLsp5KeTjGkg05730GE65bTtFaD5XXoacv7BNCto=; b=6jBJa93cq1TWIIKt2wKfV1QFB/pCj6HHzFwrqR/zcnPKHP85ksPMdnrzdeOhlOk8LM3+EK9ig fmuzU4DBwb9B6DRQts5kWlYJ6Vwx/hz64frroCg4p9z1XgpYnDxl5Q2 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-4 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 Message-ID-Hash: FVUXGNOFSBC6MUBZWUEVCSC5YTEZNKVJ X-Message-ID-Hash: FVUXGNOFSBC6MUBZWUEVCSC5YTEZNKVJ X-Mailman-Approved-At: Wed, 15 Jul 2026 09:59:35 +0000 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: Use the vm-service-run script. Signed-off-by: Demi Marie Obenour --- host/rootfs/file-list.mk | 1 + .../service/vm-services/template/data/service/vhost-user-fs/finish | 1 + .../service/vm-services/template/data/service/vhost-user-fs/run | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 96960f7e58bef0ed081f4b2ef060765e412a871f..31a536c5174c20e8a566b36471372fd97e579bd1 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -79,6 +79,7 @@ LINKS = \ image/etc/s6-linux-init/run-image/opengl-driver \ image/etc/s6-linux-init/run-image/service/serial-getty-generator/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish \ + 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/finish \ image/etc/s6-linux-init/run-image/service/vmm/template/run \ image/lib \ 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 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /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 @@ +/usr/bin/cgroup-setup \ No newline at end of file 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..66aeef5d1bd7399c9969e38ce1a9ad32f4ba56b8 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 @@ -1,10 +1,11 @@ -#!/bin/execlineb -WS1 +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021-2025 Alyssa Ross +vm-service-run + s6-ipcserver-socketbinder -a 0700 -B env/virtiofsd.sock -importas -i VM VM if { chown vmm-${VM} env/virtiofsd.sock } if { fdmove 1 3 echo } -- 2.55.0