From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Cc: Demi Marie Obenour <demiobenour@gmail.com>,
Yureka Lilian <yureka@cyberchaos.dev>
Subject: [PATCH 1/2] host/rootfs: assign-devices: silence errors
Date: Sun, 2 Nov 2025 16:00:17 +0100 [thread overview]
Message-ID: <20251102150018.1242022-1-hi@alyssa.is> (raw)
The expected warnings frequently confuse people.
Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
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
next reply other threads:[~2025-11-02 15:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-02 15:00 Alyssa Ross [this message]
2025-11-02 15:00 ` [PATCH 2/2] host/rootfs: /etc/mdev/net/add: make idempotent Alyssa Ross
2025-11-02 20:08 ` Demi Marie Obenour
2025-11-02 20:49 ` Alyssa Ross
2025-11-02 20:09 ` [PATCH 1/2] host/rootfs: assign-devices: silence errors Demi Marie Obenour
2025-11-02 20:49 ` Alyssa Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251102150018.1242022-1-hi@alyssa.is \
--to=hi@alyssa.is \
--cc=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=yureka@cyberchaos.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).