patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH 1/2] host/rootfs: assign-devices: silence errors
@ 2025-11-02 15:00 Alyssa Ross
  2025-11-02 15:00 ` [PATCH 2/2] host/rootfs: /etc/mdev/net/add: make idempotent Alyssa Ross
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alyssa Ross @ 2025-11-02 15:00 UTC (permalink / raw)
  To: devel; +Cc: Demi Marie Obenour, Yureka Lilian

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-02 20:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 1/2] host/rootfs: assign-devices: silence errors Demi Marie Obenour
2025-11-02 20:49 ` Alyssa Ross

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).