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 653FE3964; Wed, 15 Jul 2026 10:00:08 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 4614B1E35; Sat, 11 Jul 2026 20:14:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Flag: YES X-Spam-Level: *** X-Spam-Status: Yes, score=3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,UNWANTED_LANGUAGE_BODY autolearn=no autolearn_force=no version=4.0.1 X-Spam-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [2607:f8b0:4864:20:0:0:0:112a listed in] [list.dnswl.org] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * [demiobenour(at)gmail.com] * 4.0 UNWANTED_LANGUAGE_BODY BODY: Message written in an undesired * language * [Languages detected: ro] * -0.0 DMARC_PASS DMARC pass policy 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 E9C3B1E1D for ; Sat, 11 Jul 2026 20:14:41 +0000 (UTC) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-81e6f0b4610so25778687b3.2 for ; Sat, 11 Jul 2026 13:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783800881; x=1784405681; 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=HdcEFV8i/SdVzvqWuGPPLVALrcR6zCvcNtbvyi+oMIk=; b=qO23DvGtzAvFh0GJTHlP7K1Fd8LyTjmvgsVvGWr2xfxOc8nunncPFRSiGE2ILJ9lWb BO+r2JxYQvUTPE6Cz/AAnrZ2GIJpXbcjX/YHdXpLSV5Bid3GLoTNoXhve6PApvUBuoG/ UTJHI/Bm/Z6XdWFP2kGNDtRV4eDtHmEWRGenaZ2lGKe9c6LhHV/Pya05U6h+fKrRVFR1 r25anvCve3mTxMbkCzAKb6usvlCMegeK4Dg6vP01w6D90Rg/2h4AJjgipmB5G66schLk eTUZHGIZXA/mWCoatt+0HHGmlAxAoN1z2d8ZVgWWuDsrCyEN1tVSAMs6La798lqJqRGZ ebbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783800881; x=1784405681; 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=HdcEFV8i/SdVzvqWuGPPLVALrcR6zCvcNtbvyi+oMIk=; b=LkvIF7i9w0/pppo5uvluT3tGJL4gJ3X54pWb6lIIB5VfZyb/h1isCQ8DXy22KbyQm4 4ytOIvjRWMPtcl12veJfbGaUNM/untRk+XlR7msGI9Rh4r4KuQ4K7ahJbUFV9RGoNr0d NorqPzIOVa0OXUWnaZepyMcYZT8tQlkpl2L464OdaLkJpJHab+PGR/s6rnWXvSnCC++a xjy09HYQwmqCYBZeqm1Shjk3RRId6HlY7oOYLjPVP/pelsM7mifpUkqHQz/esbRY3WtE eUMksBJPO35RVLY9TvUcD3seBfAgjJ8HWEivo3x6byuZvnTji1mXyC1VHiQZi8tMO0dB 7D6A== X-Gm-Message-State: AOJu0YzIQFwIBQMYhHsZ3ofTiqoKwrxFuOYrCXYbiHs94vpw8dltjFOG iowenTIuX9tSYjkvVwc12tUZ4nqlOBIGraRp7mfnKIzcxNm5RuomietgrUTvTQ== X-Gm-Gg: AfdE7clbKbvyj2os63G6+/M5TnbCCJxb2H4UtTrkRdWJhP+1hIjDivbofqZQc7h1tAZ kUnnJvU+dvhbjLZ1lsYSsHMFvdOnkxPNBIw/0cBCAMRK33jk4IlZCuLMePN32tHJT6dBYeSqLev dC5IWAtmTS5v62BTZyUfnu1gUIEP9C5ZtTkMccb8ZbWun1ncrR46TP/5bzCnX4X1kcy9QROzYr2 MSWckOkaQkhBilzcH8OUGGg+oiyBOLmwyANgT4GET+GCfQqONsLRU/pxSA7Or/Ktdb4E7RwuBbq H0xgJQhV5HHRI3NclPP3tQppoV9PzPt4uFPegAeU4tfWMPpWWzOzlZtj6qAZ4cjO1IKI2avFwtv HIdaozKVaZV/R3dcI3MchXU5FYTQ4r/Tsh+FrAW8f9SRcshmG2Zs2OABTFMvUhOyr0Z2CBvi//f Xxe0ANMRoEYJhOh8TZ4EbPHBFnYw== X-Received: by 2002:a05:690c:b1e:b0:814:47f2:1ff with SMTP id 00721157ae682-81e90023ccfmr27221647b3.27.1783800880834; Sat, 11 Jul 2026 13:14:40 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81e7cb44c06sm52690797b3.25.2026.07.11.13.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 13:14:39 -0700 (PDT) From: Demi Marie Obenour Date: Sat, 11 Jul 2026 16:12:21 -0400 Subject: [PATCH v3 17/22] 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: <20260711-cgroups-v3-17-5cba61a20cba@gmail.com> References: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> In-Reply-To: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783800724; l=2781; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=Kmtg91K3dxUBAdvMTC0RtViP3KBYI+SF+D9f6Sfgul0=; b=GQCiq3zHKrgwxVNamlQ5SOUtuodH+OrBqM0atHdneadHLxpOi0U7XxfhS5yeP4166fo1ILZPk zAWL3ZDRywqDnIkVzxgkgzgIr+0VbhcXPIsLixh0onGVAM8O2CtrZbD X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-4 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 Message-ID-Hash: BTHTLKSANKOBVZ2SDQ27JJXECYQR5H2B X-Message-ID-Hash: BTHTLKSANKOBVZ2SDQ27JJXECYQR5H2B X-Mailman-Approved-At: Wed, 15 Jul 2026 10:00:06 +0000 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: Use vm-service-run for this. Signed-off-by: Demi Marie Obenour --- host/rootfs/file-list.mk | 1 + .../vm-services/template/data/service/vhost-user-gpu/finish | 1 + .../service/vm-services/template/data/service/vhost-user-gpu/run | 9 +++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 31a536c5174c20e8a566b36471372fd97e579bd1..15e92bd32887beb547fc88d431c36b09b220c3ad 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -80,6 +80,7 @@ LINKS = \ image/etc/s6-linux-init/run-image/service/serial-getty-generator/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish \ 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-gpu/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/finish \ image/etc/s6-linux-init/run-image/service/vmm/template/run \ image/lib \ 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 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /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 @@ +/usr/bin/cgroup-setup \ No newline at end of file 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..49978bf9e4e600198cd3f8704c33229518a8fa60 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 @@ -1,14 +1,11 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2025 Alyssa Ross # SPDX-FileCopyrightText: 2025 Demi Marie Obenour -s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock +vm-service-run -multisubstitute { - importas -Siu VM - importas -Si WAYLAND_DISPLAY -} +s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock if { chown vmm-${VM} env/crosvm.sock } -- 2.55.0