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 885F0961B; Thu, 06 Aug 2026 01:20:31 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 9CD479541; Thu, 06 Aug 2026 01:20:27 +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-yx1-xb132.google.com (mail-yx1-xb132.google.com [IPv6:2607:f8b0:4864:20::b132]) by atuin.qyliss.net (Postfix) with ESMTPS id 06E3B952F for ; Thu, 06 Aug 2026 01:20:27 +0000 (UTC) Received: by mail-yx1-xb132.google.com with SMTP id 956f58d0204a3-66896892b6cso2404168d50.0 for ; Wed, 05 Aug 2026 18:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785979226; x=1786584026; 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=BcwvLI5ZD7rSnE1SuDeHn/LdRUhtx2639nZhRzBY8/4=; b=D4e811Jwfn+bjo42ZSGb3vVmWyxeDFgymyG5lCj7/iMSI6sCf1m256270xEVQA27Jz MqTBwIb86fAWHVQx4Q/ydT44OEAssbbeBxppCM36qkmDKR0iHVuiqAoA5uGYIIKGOJTi /IrRRoXpaCcAumb33jmHxYjByQjpBYHzFOYLtS2qmedMkYi2BCTKRBY8yNW1jqAVn7AQ rR+v5VOA4oGmfQiNwWSe4LIsANPN97Fsd0U3C4NnZJ2SfABkoSjmGv8jbwe/56k0xghT Y5pZ1kGQi88W/+acHClTInmdFB0r9v6fF3Fu1V19OSHqJwqpgS4R6ExRaC2gYCh9Pi5m 6LWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785979226; x=1786584026; 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=BcwvLI5ZD7rSnE1SuDeHn/LdRUhtx2639nZhRzBY8/4=; b=gInknR4UbkWIMaFTWt96D5fPWWCajwHKxHl0mVtBChmXUqi9EEGJiTyLa5yUZjlptj 03BGGVdrY743QV2HLKldLJaX3nvltaBryXpcGEYs6IlUUtF5QM6OK07aTZ+jUjNGLp51 hrE8LXrzynJUoAH/SdSVdnrmoQWLfJymhhMMyrIldi+PfQ7XwMKUoTnSRbz8kY++EKbr aB/ZnBNHgjW7TwFbZKp8uO0ZKqQdJUsB71P/jgOVgNOti+3Nn4ZvotyYu3yrIuIYcl9o FfLvDEfpCu2Tk7G5HNXbNK5JUpFSo41ehvz8lhor9ep3TCRrj5+op9gPwLKZX+6H3Bq7 GNYg== X-Gm-Message-State: AOJu0YxpK3oOt0rkOlxyorNMu083fwaV+VB5AvJfEDBCRBoNQVTgutGP HeNUp52pMoviIfAAFbzxCCnMxEBUAhzVOnA8duoqdms0LwE6Z5i7Q9QBuzW9BA== X-Gm-Gg: AR+sD11uVvnteJSrGHUyHukQD58iqdSk153tgg4GbTMSykYr0iI297AWS1C6X83bHHO KtBYXCfQHZ/op1lexX9qfQbmsA3MwyhKH31FB6AhN6C+ZxjVs5XIVMmXd4o6CYrpwkqVEA3+mXP dG/1qjXb7d9EVmx+WoB89N2QfpAvPbL82H58Mb2Z7AwdBThpCAifuHpvXJ6vyw9CQhdGz7kWA7I AvPpokf+/TeNKSvLwJSlhBsswJobI7fSZ6mZYhIJWfGX4uAaYzk5xG4iPP74JV8RVNe721hI5K3 9DUxPDf6BToqP2D7K8fBGdmb8+livcg8eFTaSbXg03Rc+m7xB7TrlB8b8CuIptXrSyJSW/Cam/U njK8ICnZVgA0YMWS4TDNBhUOiUdYrenJah7xk0T+hgml76fmHQMQH/l7BMcAg3WlzQyu/VJI3fQ RDgRIniw3Ax7Vf7dH0Xwy5PrNbLXzxJwZRofmgd7v4Pf0WEa2fv0KAb9qK1BVBRJGY3Qg9UQPLi RpD4TN2nwFe X-Received: by 2002:a05:690e:80f:20b0:669:9498:301e with SMTP id 956f58d0204a3-6699ab00bc9mr4905787d50.27.1785979225849; Wed, 05 Aug 2026 18:20:25 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-669913d50ccsm4113536d50.9.2026.08.05.18.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 18:20:25 -0700 (PDT) From: Demi Marie Obenour Date: Wed, 05 Aug 2026 21:16:24 -0400 Subject: [PATCH v6 17/19] host/rootfs: vhost-user-gpu: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260805-cgroups-v6-17-086c0f00f55f@gmail.com> References: <20260805-cgroups-v6-0-086c0f00f55f@gmail.com> In-Reply-To: <20260805-cgroups-v6-0-086c0f00f55f@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785978967; l=2868; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=8yaBcx+/aQ+nTbFkfvZgtS6ooLN9oskJmxyBd1ars3c=; b=3xnCvvudnu2pHDuOKPq6BdPupRBVth37xdO5y0i2+O0jvGsXdyZVVu7F1YcgCpKcrLm/0arJW kHMc5xwdXTWARaYx5bvwxZ6ewNKl3/fflzTmGKnmDy1m32tVC2/K8d4 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: JHDHKH5VEUOIOZIG5POZGL4JJ5FYGIJN X-Message-ID-Hash: JHDHKH5VEUOIOZIG5POZGL4JJ5FYGIJN 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-gpu/finish | 5 +++++ .../service/vm-services/template/data/service/vhost-user-gpu/run | 2 ++ 3 files changed, 8 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index e9b15f7ed466da0535809717de3c655b5f93d0f7..9560265b06c083e3e39fb6bbfa93778ac93f041a 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -37,6 +37,7 @@ FILES = \ 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/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/notification-fd \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish new file mode 100755 index 0000000000000000000000000000000000000000..199ba1ea2f91b4a3cf4fb3344d9d8bbf98d19bde --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WP +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour +# SPDX-License-Identifier: EUPL-1.2+ + +cgroup-purge vhost-user-gpu diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run index c3bfafe02ec6d2ee418fe56b033bbc4c7a73b186..a8ec06122e47605e7230c864ef22ef84c7de54b2 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run @@ -3,6 +3,8 @@ # SPDX-FileCopyrightText: 2025 Alyssa Ross # SPDX-FileCopyrightText: 2025 Demi Marie Obenour +cgroup-setup --leaf vhost-user-gpu + s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock multisubstitute { -- 2.55.0