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 1125CA6C0; Sun, 30 Aug 2026 06:46:03 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 4F789A6AC; Sun, 30 Aug 2026 06:45:59 +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 B1E58A65A for ; Sun, 30 Aug 2026 06:45:58 +0000 (UTC) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-86162c086f8so7983737b3.1 for ; Sat, 29 Aug 2026 23:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788072357; x=1788677157; 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=mn+PE1+w4Zp0IkNGepUGUC4klE1ibX9MmUgQXoZX9YU=; b=CEmd1Tp0ZfCI6iZHywd2MeLxpMZlssyJwnbVK0CkYfQtrchpPuziXbQ2x/PMyIWEGA 59fUuMpMIUqc662nNlQrT937JHPh780XNYzsFKp2K1f0+beyhA8O0Kkn432KZQ9YgLHT +7BMh5I+KH148FCa+aoMDVLUlzZ8yMQPpHAjxZ5HLrSD5Hd/z2sD2L0TTY/CNi9qba1b UTYukn1UtqB1eFkXpGH6LJ94OkVO+Yf4qyn8HXdAX2q/r35nSJWvKFkKLbAZsfwxiMzI HaAyUUKos8/l3fUXp0gMhJcnMmD7OazZziDsbw61ig8Cn2okgq7/9qYi0e64zKOUmfed ag7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788072357; x=1788677157; 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=mn+PE1+w4Zp0IkNGepUGUC4klE1ibX9MmUgQXoZX9YU=; b=J/QnYEB5qBWCflWZQi84iWQHe+1P29TCrTwXTx1wCGBfxk8x+RMLKypqyn6sdBGDq9 Og8Tj33BH6ZpHkJVvWXOWVrHKIxtqwyrkTd6J6PJT5WM2B2v7vJSVmddqW+zE516MPyo lYFs+pZBFWqncoVCbkgMid1FCSVP4W6lq1k/gXHGDhxcYg+r0nG4dzFipHbCv3bfmsGZ MsToJXcFqu6ozuTyAPae4UW0X4OC4nGL42kbARByuVx/SImXOk5aw/86Bermqzo0Bzat AkONn7QENurGZVAjQ/57fK5QKFhhKWNDmbHT4edKqUSGcrbMOFf8MEVKnk2U9nB+YhKn 315Q== X-Gm-Message-State: AFuF++neooZ8G7Vs4FOgc1f3ZkbXtbp42jQzHs4+TT3nbGWLiwT9bnpt wmXXLo/IobR51VuQeusbe3DZeSWF+ryCfakEJ264G/kkcbOzswZo2qehwOu/tA== X-Gm-Gg: AYBFou28z9xdnFKRLz8rXoAg7Xzu5g2+n6MvtoO+qjkRAvOy14XICFwJGnamPx473U+ uhHB+ByYhi+eRL6htMyI1tmu+jA8H7ZTPcv3RbLdfUHpYXg+GZp0wyqviDXlP4GfcLmqaPWeQer sxQVZxwkp+NucAmbiwEa5FiQVZzyTEfC9iwnsMeoK77u7rCdtweswuJuIyvNT3Nbm/11ZOsRO0I HNwclDGjZ8Nmz/QaYxVf1y2VOLmk+/7wtSqes4gmmHebpijDjPW8QNdbrRHq0IBBEFs6sz7aFyU q9IzSAjAIXnMsGw7ypsRtg+DUO0S6KTUtNqpJCNpMAp2wxEbBZBXLMklh5xtsUJBKZ2ybqeC+yH LEHBsckboYThcES+RAMz01KuniSniJaTFCN/mzxJNc7f4dKnpXVpwPdrjpyg/MNAlHTE913oclx qcTaQjuwbzi5U53eLiwOPe7jEkQD7IotzZAeYsTMB4jaCgd9GodbBsUYwPIl0wdlu8Cl89NX6FA OnwtOOkMDfw X-Received: by 2002:a05:690c:6e08:b0:855:f387:98dc with SMTP id 00721157ae682-864f42404dcmr2738327b3.11.1788072357655; Sat, 29 Aug 2026 23:45:57 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-85e65f146dcsm30031237b3.23.2026.08.29.23.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2026 23:45:56 -0700 (PDT) From: Demi Marie Obenour Date: Sun, 30 Aug 2026 02:06:50 -0400 Subject: [PATCH v8 16/18] 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: <20260830-cgroups-v8-16-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=2861; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=GMvGr1D4RazUCFeIKDqGWp8jm8QOJwWZLnYMyJmyC9I=; b=f+HN3JmLHAmWruooMEORGJZZJAqBPx6A99gtKotsIfY4as59q0eVZHpwyVHXB+iidEGF+n05w Qefy1SjxlU8DAyz/WL68AHd5lMcRP6hnqGkwajeQDoTOPgfilv3qPfG X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: K6544OYQCKYGN4MRAQJQVHQNMWR6FZZ4 X-Message-ID-Hash: K6544OYQCKYGN4MRAQJQVHQNMWR6FZZ4 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..6103505edd3fc7a45a7aeb7d74afe98431b9ae74 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 vhost-user-gpu + s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock multisubstitute { -- 2.55.0