qemu-cr16/hw/vfio-user
Vladimir Sementsov-Ogievskiy 1ed8903916 treewide: handle result of qio_channel_set_blocking()
Currently, we just always pass NULL as errp argument. That doesn't
look good.

Some realizations of interface may actually report errors.
Channel-socket realization actually either ignore or crash on
errors, but we are going to straighten it out to always reporting
an errp in further commits.

So, convert all callers to either handle the error (where environment
allows) or explicitly use &error_abort.

Take also a chance to change the return value to more convenient
bool (keeping also in mind, that underlying realizations may
return -1 on failure, not -errno).

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[DB: fix return type mismatch in TLS/websocket channel
     impls for qio_channel_set_blocking]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2025-09-19 12:46:07 +01:00
..
container.c vfio/container.c: use QOM casts where appropriate 2025-09-08 16:46:31 +02:00
container.h vfio-user/container.h: rename VFIOUserContainer bcontainer field to parent_obj 2025-09-08 16:46:31 +02:00
device.c vfio-user: add coalesced posted writes 2025-06-26 08:55:38 +02:00
device.h vfio-user: implement VFIO_USER_DEVICE_RESET 2025-06-26 08:55:38 +02:00
Kconfig
meson.build vfio-user: implement VFIO_USER_DEVICE_GET_INFO 2025-06-26 08:55:38 +02:00
pci.c vfio-user/pci.c: use QOM casts where appropriate 2025-09-08 16:46:31 +02:00
protocol.h vfio-user: add coalesced posted writes 2025-06-26 08:55:38 +02:00
proxy.c treewide: handle result of qio_channel_set_blocking() 2025-09-19 12:46:07 +01:00
proxy.h vfio-user: add coalesced posted writes 2025-06-26 08:55:38 +02:00
trace-events vfio-user: add coalesced posted writes 2025-06-26 08:55:38 +02:00
trace.h vfio-user: implement message receive infrastructure 2025-06-26 08:55:38 +02:00