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 7572922175; Sun, 02 Nov 2025 15:00:41 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 8FC0322197; Sun, 02 Nov 2025 15:00:39 +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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) by atuin.qyliss.net (Postfix) with ESMTPS id AA42522195 for ; Sun, 02 Nov 2025 15:00:38 +0000 (UTC) Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 76D4B1D00149; Sun, 2 Nov 2025 10:00:37 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Sun, 02 Nov 2025 10:00:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm2; t=1762095637; x=1762182037; bh=akttBIZ8XtLtEkjaQ1odg MjDUrsdNX+yurqgK5GQ88g=; b=eZo8PNSvfV5qyRQP9jrdHO+kUxBizZe+QHgVT HIP75P60fiTiOXU/ZF+yAfOjh6co6avfp7T2twcckFVzBFWXxiGN8KI4IomRGn0m KDHjpxxfYCwuqxwPdmrl8Y3Mkwuum/NgG2gX1cmJeeJW96ihmBgh/NfYE+vRBu7J foyNrBlIRl8h10CHy8NeQnaZE5OSrk7aJ2mj1VQP/ckQR+UXAJZr1P7S3orXQtTd ImghrquQqJ8cl5dd6rQxAWOTN540NZC8ybS1OyXRVYY3hD/0weERPnyUCtdulR6x EbwJlulY5RsjtbFlWOEdEvhIMsrEhWpABPnLDg65qDHiFfQmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1762095637; x=1762182037; bh=akttBIZ8XtLtEkjaQ1odgMjDUrsdNX+yurq gK5GQ88g=; b=v50c7YyT+4svPRcHxd1RVbaHTIFAue2SoK6yli1PNHSQxQDdyOq +VzbvT3O0mCcezzRNuQm33AOwvfvEqQ0uZy15znck5LWnek19wAtS6w+VXT3t00N G3Sa70y/jBrsTTPoZa3Du4gGaYts0otn8PqIoTfqH3vyRa8NDCzO7I/UFHP+NESA XLIjMPMxf34Spk7XdAIsBopST31gqUpA1l+zzF3TZh7mz1kX6crknY/4EQn96SFn mY0jqHK164Fti05+u+C94+3wZT6Gt90aKCB6TmIcH1bAaYDrZz3l18v4OrUnOJi4 wYUS/s/m2vZSO72biHS0DlRJ9ofikswINrA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddujeehheehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepheekgfdtve ettdekuddugeeugfdujeehuefgleegtedthfffudfhheduhfduuefhnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeih uhhrvghkrgestgihsggvrhgthhgrohhsrdguvghvpdhrtghpthhtohepuggvmhhiohgsvg hnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhu mhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 2 Nov 2025 10:00:36 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 1B15663CDB3D; Sun, 02 Nov 2025 16:00:35 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 1/2] host/rootfs: assign-devices: silence errors Date: Sun, 2 Nov 2025 16:00:17 +0100 Message-ID: <20251102150018.1242022-1-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: SDLJWHHEGG533D2TQNLJQNQMTCT7GFZJ X-Message-ID-Hash: SDLJWHHEGG533D2TQNLJQNQMTCT7GFZJ X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; 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; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Demi Marie Obenour , Yureka Lilian X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The expected warnings frequently confuse people. Signed-off-by: Alyssa Ross --- host/rootfs/image/usr/bin/assign-devices | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/host/rootfs/image/usr/bin/assign-devices b/host/rootfs/image/usr/bin/assign-devices index 1332a40..58dd3cc 100755 --- a/host/rootfs/image/usr/bin/assign-devices +++ b/host/rootfs/image/usr/bin/assign-devices @@ -5,4 +5,9 @@ elglob -0 devices /sys/bus/pci/drivers/vfio-pci/????:??:??.? forx -pE device { $devices } +# This script is designed to be re-entrant and called multiple times. +# This means we expect to sometimes get an error due to the device +# already having been added. If there's a different error, +# cloud-hypervisor will probably log it itself anyway. +redirfd -w 2 /dev/null ch-remote --api-socket /run/vm/by-name/sys.netvm/vmm add-device path=${device} base-commit: e0f5aad7901d150b1abe381ffd99d554e65e758b -- 2.51.0