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 2FE395691; Fri, 21 Aug 2026 06:54:29 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 2C7D9571D; Fri, 21 Aug 2026 06:54:28 +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-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by atuin.qyliss.net (Postfix) with ESMTPS id ADAD1571C for ; Fri, 21 Aug 2026 06:54:27 +0000 (UTC) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-8111c0c7561so10825177b3.3 for ; Thu, 20 Aug 2026 23:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787295266; x=1787900066; 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=eZJVMzHfqQmeou+sEgZDNgCfCESOKm9WMOzZpMBVRJltXj9Oc/JFET+4ac1fjw1bz6 1x1arnIHjUPoxd/d9mL6bmVmHmXli1qWyli46a+b8qtqzJjxZi4CVFihzDIAqAt66K9H yrfwhF/zPSIvICJZudwNmZh50WB1lYLt/RO8OHZuSSuMvH5Duk9DFwom/xeinV/ok/7E E7R0fIcoQIt7qGVCnwUbePZ97LLDIGsKShv3Gtxl5L5DxvFiSF57/hS/LpHjWaurGp/q qBIa38AC9f+9d7JwbmioO3SAhZwwHzqUasR3UJoDTl6KkM6WaaZR1MqTTpB5ng5B4iyf aU/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787295266; x=1787900066; 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=jngSlD6pgb2L1js33AfkExar/UIYy1kazL/wZ8pHVkd0Sf6DpX/mirxs8Jpkn5jATz 6TacC+KVzYom9uqh8EXsGsQTc6E95fIpNrZTzB1Pg4rsSKh8RepiUfHb6AZQTkx8RrKM 6EfYA0qDjKVXY/1VBaQ9CzACFszLFV4d8uUSHoV5ryoAitMYjIjINy8A0HDEPBeIpsfU mELbLluykT7x2hGfe4aYpHz9NxGirsell3sVDcvmBwGc+IarZjWbEtJ+IpnOCUjudX3O DoVSrggPCP3/LR37ijYHcEBa2vNQ2DysYZzNkSco7hJuXOyEmspFnTLNkyyB1Y1B5J7S tYPQ== X-Gm-Message-State: AFuF++lzt1PwPzPsoif26LX/drCC5ohqOgDm68t0s1zhhlLXkeXxugpI 8gzVglLsyN1fSQDf4Qa3XZ9ZuYuqHJGYygQjSdZx6aNJ5D4gaMy9U0l/7qytu8M+ X-Gm-Gg: AR+sD10D39jZRxRBEbD2LOmNDdgrb1DMfW2yQQkipV1ftvlMkYEvZ0boQmLDdCOaNq0 zJDWxA9D5ARj6UCLNfwlwCILOwpD//dcO+w3JEJMlLhwSB84WTHQ5WTlh+ETNgf9rgKii5hshJk xbh43wKiZTlK8vwd3W729NvdB6oZ3fLdqShMBu8DmyVy4Vs9deTbLQby/wqvTtZ51Yuv2JpbmMe S1DNAke6Wkj8T0tQeUUsuhjEFX7dj2QWR7abyDXHmCIj967TrovjF+RqTqul/TjUgcohTXAzGpG 5cWKSU7UPT+LzizfDDX/9LIKfZxtDzbXvAXqA+AxmCVbgXvIAqMM6EVLrAa6FZgZrWY5sOu5scQ zcZBJKxQAQHJ5AKTwjm9/2d2sZOWmWVkw98zgYo8371e91uHDfZirXo9455cC8V/09cne/oAKhu 09xVnrS74gzEMEqE/BlVwSP9T4MISZLRDtT51WVxJJ8VhV0JfFnXoIBz4WpToyOyvvnXBSyUDhM A== X-Received: by 2002:a05:690c:c6cd:b0:81e:a471:e8b0 with SMTP id 00721157ae682-849f4c735c0mr15032767b3.21.1787295266305; Thu, 20 Aug 2026 23:54:26 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-84512c408a3sm35794637b3.18.2026.08.20.23.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 23:54:24 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 21 Aug 2026 02:52:00 -0400 Subject: [PATCH v7 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: <20260821-cgroups-v7-17-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=2861; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=GMvGr1D4RazUCFeIKDqGWp8jm8QOJwWZLnYMyJmyC9I=; b=39Tj/7FcrGZk05YesZr17eKEkLyqEf0ss1KlQvmb10JA4WXK29PqXRaFZAQz2HEhg6i71Jn0K yvX/0vEJTtOAuakiwA4P4ph5hWmNxWQhZ3CVdUVXLEUaBnH6N+1mD03 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: REQMOS6K6MB5EB5ARLPLWIRVAKTVSFL7 X-Message-ID-Hash: REQMOS6K6MB5EB5ARLPLWIRVAKTVSFL7 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