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 4092FBD11; Fri, 31 Jul 2026 22:00:59 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 2F492BB9A; Fri, 31 Jul 2026 22:00:50 +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-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by atuin.qyliss.net (Postfix) with ESMTPS id EF83BBAFB for ; Fri, 31 Jul 2026 22:00:47 +0000 (UTC) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-81eef95653fso14775447b3.2 for ; Fri, 31 Jul 2026 15:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535246; x=1786140046; 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=RQU9PuCkRZ9exFBAR9qZjIesnnHDdiM0WBNNa+ITmjQ=; b=aMvGxz+VcpMJ7G4VU3Iwekuauwmild2TxBNKUbKbVzPkGOcVxyn8e1+k4+2NWanTc4 /i4s6WW61edw9reWtLu27C027eQGvUAkPrWneiL27hRuDCO2QT9sQ80DeMuz14OsYwIU 7YReoTu3TsqKQ3PfqfAdi71k9EJIraKCNpV4/tDL+JzGeOjE90Dqlg6NbC6Bdlb/kqOd tH+H4mo2e3H0zNRhrdGIokmcmZD7YORpVIzktSZpPfcFuozzsdi6xqJaPorBq6IMW9bE i4r31/Z/7KaO3+gJ3mleDEVts96Xh+x7/53jTsqmDVymSKmn99RmQqiN6L5uzty6jeRY O7VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535246; x=1786140046; 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=RQU9PuCkRZ9exFBAR9qZjIesnnHDdiM0WBNNa+ITmjQ=; b=EioSiowp8KKvMNrz3HAXHHASsKtXt6WJhrZrUFN01P9MQx0lAMiJuz1sUF64kEGr6G 6ptJbMrhMwn09cd0wxaHWES0SiiXb4SjX6Xh6RbavItKcIYzAdVqQFkQLp/yd0yfbGs4 5+lWnUKTnF9S49kSnDytOuMJ5rtU7hWtERQAth4VMJ0aWVcJ9fIXIy+gaw8jvSpYYB/6 Im7jPVlZ/xumPUvofJif374gnMJhe991846v+G5uXxO9nKmqOmNKOguQbrZIwmyilYFi m0hu9nUK+SUWXNVK7MmVrIMcWKkkbUvOPHEfkIs4PHH7jcU2ljPpcMmKfxUDal0lJq5H NyIg== X-Gm-Message-State: AOJu0Yzg+PFu6GKirD5jcyI2USaggD690s11Rv6Nn157VO+cqrTjkVSZ 1Cp7+3ZV+jK+G7b4UFdTYakL2ZK3hRJqdZ8CFgKl4P4AsqcXD0xdSxM1qU0m/g== X-Gm-Gg: AR+sD11YebinKxlPgZ/xGkWZMJktYg5Kyir4LP6/VObg2gDY4l8WOBreFrQlkhnR4Th XEeFyUNmuFWv8zOgvawL+lyZoKrAeGzNm5EMPnD0DHzEnOxLHXr8mC/FtNFi0CGuRfZFbQAcFVF x09I3RXzDsJiC3SxWXkKwC34fo8E9Sylm+lU/K601jzzaX2OnaTaFmp2wre8Mms3lzYjYMBv/rH mJIvs51CNiWlrUKCfPAQLIVAjXpnF+51qVOB1taGqdTR9RMua0Oy2rLCMjMZMMdW+ivdp8z5sAn MTtFxQH74GsC9ZyHt52PcGYnHAoF712uIgsP9VaS3Y9snVCohCJaccyXHn1oQTQCend5B9PzDLV XIXq6Tfe2m8Rh5DzvuGbOmQL108+OcPzjXDFT54GA86o4bChLOFsq8lr2KRYmOcaJHkuTsaphZL cbfb65gP8zEWYMu7UNjI9SHqREF7/llb/p2f8R6wzp5fZ2zlgs36P65XMuOPYHGc6Y0ZbZ+H/k3 7b+jJopstEF X-Received: by 2002:a05:690c:6901:b0:7fd:e030:2407 with SMTP id 00721157ae682-81fd4bb8014mr20084017b3.29.1785535246119; Fri, 31 Jul 2026 15:00:46 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81fcd0d5ec2sm14370077b3.23.2026.07.31.15.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:44 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:57 -0400 Subject: [PATCH v5 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: <20260731-cgroups-v5-17-b325bac9d34f@gmail.com> References: <20260731-cgroups-v5-0-b325bac9d34f@gmail.com> In-Reply-To: <20260731-cgroups-v5-0-b325bac9d34f@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785534880; l=2868; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=lz2IqoxYT5tJ+yGiZlDc5jY21E3wRTSNj75u3ZYHU7A=; b=rGcLEnEV/thnX6pHycC+D6IXxxMNRFX/yb2IttyRcCNrRJ04sBQf1gFCBBImXCbG0fJuZh2ro vzWyElbsIxeBVRazEPET0V5mPJJc8sk8B8CNXKchEpOz96yOuPm/ahV X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: W4EL7R33DOBBZ7HRELN7ZDB6MG4S4RE7 X-Message-ID-Hash: W4EL7R33DOBBZ7HRELN7ZDB6MG4S4RE7 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..2e53d99eda295a9f7943ec419952eb8c8416431c --- /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-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +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