qemu-cr16/hw/remote
Markus Armbruster 789f1adefb hw/remote/vfio-user: Clean up error reporting
VFU_OBJECT_ERROR() reports the error with error_setg(&error_abort,
...) when auto-shutdown is enabled, else with error_report().

Issues:

1. The error is serious enough to warrant aborting the process when
auto-shutdown is enabled, yet harmless enough to permit carrying on
when it's disabled.  This makes no sense to me.

2. Like assert(), &error_abort is strictly for programming errors.  Is
this one?  Vladimir Sementsov-Ogievskiy tells me it's not.  Should we
exit(1) instead?

3. qapi/error.h advises "don't error_setg(&error_abort, ...), use
assert()."

This patch addresses just 3.  It adds a FIXME comment for the other
two.

Cc: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20250923091000.3180122-6-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[FIXME comment added, commit message adjusted accordingly]
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
2025-09-30 14:43:53 +02:00
..
iohub.c remote: Remove unused remote_iohub_finalize 2024-10-03 17:26:06 +03:00
iommu.c include/system: Move exec/address-spaces.h to system/address-spaces.h 2025-04-23 14:08:21 -07:00
Kconfig vfio-user: build library 2022-06-15 16:42:33 +01:00
machine.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
memory.c include/system: Move exec/ram_addr.h to system/ram_addr.h 2025-04-23 14:08:24 -07:00
meson.build meson: remove CONFIG_ALL 2023-12-31 09:11:28 +01:00
message.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
mpqemu-link.c io: Add flags argument to qio_channel_readv_full_all_eof 2025-02-14 15:19:04 -03:00
proxy-memory-listener.c include/system: Move exec/ram_addr.h to system/ram_addr.h 2025-04-23 14:08:24 -07:00
proxy.c treewide: handle result of qio_channel_set_blocking() 2025-09-19 12:46:07 +01:00
remote-obj.c treewide: handle result of qio_channel_set_blocking() 2025-09-19 12:46:07 +01:00
trace-events hw/remote: Fix vfu_cfg trace offset format 2023-06-09 23:38:16 +03:00
trace.h multi-process: define MPQemuMsg format and transmission functions 2021-02-10 09:23:28 +00:00
vfio-user-obj-stub.c hw/remote: move stub vfu_object_set_bus_irq out of stubs/ 2023-10-18 10:01:01 +02:00
vfio-user-obj.c hw/remote/vfio-user: Clean up error reporting 2025-09-30 14:43:53 +02:00