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 264236867; Wed, 22 Jul 2026 02:17:24 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id D2F5068FB; Wed, 22 Jul 2026 02:17:21 +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-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by atuin.qyliss.net (Postfix) with ESMTPS id 72059685C for ; Wed, 22 Jul 2026 02:17:21 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-7ff05e5d009so138321347b3.1 for ; Tue, 21 Jul 2026 19:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784686640; x=1785291440; 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=i2NcXI04UrhpfRvVGqAma+LBIz4i0ovpc0UcpsDhUGM=; b=NS5kApzT3H8gdqCV9m8p69NVfUp7hi1epR1aWwpuOsV6KfJaVSwIQR3GHJxm2JQv6K RwEm/o94gJiubRiaWwUtt3/FmaUcPe4e56WPVhefzdBES9S6PmgyQm+si2Xi16m4z73B RGJEcrblWdbt6kafUQTbiH9VcJg0EGj8+dBR/C4QoMtlKrIbk+GY6uCgk5IxVDr1tO77 ybjZY0swtfDcmxKYIEio6XAZJeoAYnHxSq8eQLZKih75LnknBR4NFwM8kKUgcTX7er3A mMyKrhI6kGNGArNf8DAzF90qbNfCMwbeaNCKtUiouVvAnj2bjbwMA8cny0YXGPeSbhtr Bj/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784686640; x=1785291440; 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=i2NcXI04UrhpfRvVGqAma+LBIz4i0ovpc0UcpsDhUGM=; b=I/vRbjdaj0573ff/3l6SdI+O9yvkcOuzWZ9Jxx3hn2/o8qPh/3OgKKB++RlYM6PP8f 4bWEI+TVxy8V9vmm2Qfs+212iU8W/wP5UXcR2XldkCD8drSfdihXV2EZVTH8Sk2ljPMN V7TNJoy/SP9DzBxXJwY0eMhagjGTPnVpoXhlScEKCwYdV+7OTy4NfG2cJR+SKTOAkT5U eSNQCMpqc5wlDKjHSCfYRsAhAjp5U1OBn5gQxIlMt15kHdCttQLv34iuYPg1gQ/3Y9SL ewztYD8VYY2TzP2mepyRxKEhDyG497LKXeoW34ZYtCLWdty1YFHklcTr1G60Xg3mDe0J uTiA== X-Gm-Message-State: AOJu0YzJd3VMmqpgcJYyD0MT5IxRFq2IW9PSs2W4OtyEYY2Z5tqBLMDp z1KcIXs8OiUkla+YBje/Jy5gQ/lpfeba/CaUF4ZoFouLm+YuoIDRnYqTjqF67g== X-Gm-Gg: AR+sD10CqV/BcxRWBv6KAiQEwHDZpE0gS5WS1N89UXp76HRxl0KB6N1zesItx2cQKh7 FCuaEioqXn9fJQ6gRCz8Mmv3ou+joYUt7JrgRy1bNYV5AgRPep3/oL6Jr1lBbR8wk6TGbmKi3u+ RhTiDUvZVmueNowLSifwdJt3RYaeSgnSoNPa6sC5azbSqhxssgspVZps465DFT7G0e/Vy3UjmWa Dkg1xO2V1DWzPVkZWkb05oWErX2gyvnQfDhBkSbJ7NaYF6zkXHcRua+/2Lx2trS4/EQEIuiAzky 0bSdQCtNAERQsMc8y8lsuOCDjMXbz4xRIv6hrG9g0N1MZ4tjbDMjF8/WEQ1xaFMJ9GGtOQRXvyl dhCkBARq1ka5bzCklBeD0kcsqK0JAZGzD2Po1hhpHJD2NEi43rAAQcNtK/xR6H9s29gJnPe3rEa NJv+jvziwgMOpnyTU= X-Received: by 2002:a05:690c:4b08:b0:81f:3dab:372f with SMTP id 00721157ae682-81f3dab37ccmr176277b3.12.1784686639721; Tue, 21 Jul 2026 19:17:19 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81f33c397c9sm6935647b3.14.2026.07.21.19.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 19:17:18 -0700 (PDT) From: Demi Marie Obenour Date: Tue, 21 Jul 2026 21:59:20 -0400 Subject: [PATCH v4 15/20] 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: <20260721-cgroups-v4-15-46b2e5fff7b6@gmail.com> References: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> In-Reply-To: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784685545; l=2960; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=/t4bQIy2umckG9teyyl0B9pgB2ZvQ4w0dj3VlqZYwIs=; b=EaNXo54bLmXJ5Rb+MBAAN5VUmKrQvjfTfx3oRh+/2E/tnq6yeBqxyZntcnqNkbALtiRfC3sj+ lwpZcBIowuPBBPZwsRYqSznYoNVu7MRl6hpkWJeL+wqt+SqI6G0rXuP X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: FT5FDGRQDZF7PKSNMKML7J4F5UP6MYBL X-Message-ID-Hash: FT5FDGRQDZF7PKSNMKML7J4F5UP6MYBL 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: 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 | 5 +++++ .../service/vm-services/template/data/service/vhost-user-fs/run | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 4835a84593f5e006a7b86170a065903a9dd324aa..9a0f231611e4046737141a86ed5b39523c73a022 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..4d5b454e97c3584d0644c2d738514f13b1c53957 --- /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-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +cgroup-s6-finish $@ 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