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 EBB735678; Fri, 21 Aug 2026 06:54:17 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 805C75640; Fri, 21 Aug 2026 06:54:14 +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-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by atuin.qyliss.net (Postfix) with ESMTPS id 142D1563E for ; Fri, 21 Aug 2026 06:54:14 +0000 (UTC) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-7ff05e5d009so10300467b3.1 for ; Thu, 20 Aug 2026 23:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787295253; x=1787900053; 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=s4Q9H7l0DAmIFOG79M1d+4ExGF4wdngSwwbuKailZxpNkyXCvg9cU0U3smtrK4H5JP p6dSwIkPe70LivjrwIZxAX1wUCi8VI60LQTKM5yKDb5FW1tq0S9YTSwdM/0Tzvajv/do vPRWCU+xfnixP7q8m3JN1KMv1YGFnYQr202doNo3PVO982JyRVav6nc6iphLVlfwiE5p lqq+yRqyAtsXsFJ4CGJwjub0g99vDoa+Xs1ah8lcijbovU72KNerDS9bcSpfIFZiimMp lhYqMLLRFtws9lFpFveyRN8sFofevEtCee68NeblRyny7ixjk+CH+SQF6m3IcJgdgnue XcXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787295253; x=1787900053; 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=TKNohaltp4vnLvjfhj3hFHEV/e02EdrT46nP0V9ovEfW63pVyU71z5AOQGTNbJ5786 D6CuL9yGhsO9c61w/HWRRr14QdqV+fwYevG4vV/AOYs9D0ubg7aSvRsBlM32JAvLxuaQ wj7QAreYd9Uml2R+IMM0rrCq8fMiJyiveWW7yyv0A8pN0+zEcX8Jju7YTCICsG87SfNO MfjdyThCU2HMi8Q2Ou48IOkun1PC3i3TkGt5tKyDweVC3X2pCYQ+EDhlQqM/idazcvDC m1AldpTirG/BmGjzIfs7EuoJmsWZkNhYEbn03tvz/luISL4wSgrXvtJNqmOCMoucABAo eGcQ== X-Gm-Message-State: AFuF++kg0dP2SvSti9F2Dpk988bq/OqvM8yH1fJngGnXVnUOXvh9WPp9 QL30p3ZZ2ppOxZhSP77DuE+EWw0bmL/3CNQ7WN2PztLLWkEu8H3RqmIGVXotPBWb X-Gm-Gg: AR+sD10/MrJnwxhrY33fjUX+TcaSopE2mtpNy9X8bi2Nsg8laUr5Ip6EHLSxwYo2Mba Gg1WVzzQQT5ZR8nkywdVm99eJVx2oXeSVXM5y5pbPUQledE+139eOr9DiLanaQ6LK+PWDKg4Z7p qVSsPJSX2r/wXhApz5JMt3XMMSsNRvU4W+ntGJwPdMQPWjE2IccnyvR6LYlZKEb6nD4oLGHoQky WZ5UcPbH/1mZIMYy46P4kxaBOmDfYTP+qkJW+kSXyFItlaPJw2E+U0ldOdywaOc2PYnImiFRlom I16SQkRnYaNAld7jtQ0ALMxUbgu0AuwgnfiLdclypFHwx1GBIVIcyhZv8vQ7u6G26Pi/lYUzMwz wM3LHX4zTGfC9anxnauNeOVNchCIRjAS5U6uXzKfHlCT1TuDIB7ZW0xpknOcs930ayMiOqToSV2 FnH42mBxl1Fz8I45WdCFbOjnxF5tnfvp36LSntfvtOjtQSIE1qMmxPDXUE1RdWS6chmG9SYa0f3 Q== X-Received: by 2002:a05:690c:c61a:b0:809:fd83:a88b with SMTP id 00721157ae682-849f090e374mr15024427b3.3.1787295252625; Thu, 20 Aug 2026 23:54:12 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-84517821a70sm35394307b3.31.2026.08.20.23.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 23:54:11 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 21 Aug 2026 02:51:59 -0400 Subject: [PATCH v7 16/19] 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: <20260821-cgroups-v7-16-7f1870dedefc@gmail.com> References: <20260821-cgroups-v7-0-7f1870dedefc@gmail.com> In-Reply-To: <20260821-cgroups-v7-0-7f1870dedefc@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1787295104; l=2786; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=q2hwSSIU1j/8z9/qoJ3WRsQwb4Q1krP5wfsnVG+togs=; b=VurxHZkf5hhHhYT0hkrV35PYV322ZEmgrMyjzfn9JgtxLRmQslpIiBCdi9Ir7kFWfmyJLZAPw 26e6WrL3SSRCvcHg8yRk6NrD8x47w91aMHh5KD0mYEk7en9P6EPII/V X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: ZY6QK7QI4IRNFL2F4EUTH6I6FV4OO7RE X-Message-ID-Hash: ZY6QK7QI4IRNFL2F4EUTH6I6FV4OO7RE 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