From: Demi Marie Obenour <demiobenour@gmail.com>
To: Alyssa Ross <hi@alyssa.is>, devel@spectrum-os.org
Cc: Yureka Lilian <yureka@cyberchaos.dev>
Subject: Re: [PATCH 1/2] host/rootfs: assign-devices: silence errors
Date: Sun, 2 Nov 2025 15:09:30 -0500 [thread overview]
Message-ID: <1ce14685-cdd9-43e0-9849-6bd1e4f057e7@gmail.com> (raw)
In-Reply-To: <20251102150018.1242022-1-hi@alyssa.is>
[-- Attachment #1.1.1: Type: text/plain, Size: 1247 bytes --]
On 11/2/25 10:00, Alyssa Ross wrote:
> The expected warnings frequently confuse people.
Ideally there would be a way to suppress only "device already added
errors", but since there is not:
> 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
Reviewed-by: Demi Marie Obenour <demiobenour@gmail.com>
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-11-02 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-02 15:00 [PATCH 1/2] host/rootfs: assign-devices: silence errors Alyssa Ross
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 ` Demi Marie Obenour [this message]
2025-11-02 20:49 ` [PATCH 1/2] host/rootfs: assign-devices: silence errors 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=1ce14685-cdd9-43e0-9849-6bd1e4f057e7@gmail.com \
--to=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
--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).