summary refs log tree commit diff stats
path: root/hw/misc/ivshmem-flat.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2025-09-16 16:13:59 +0300
committerDaniel P. Berrangé <berrange@redhat.com>2025-09-19 12:46:07 +0100
commit6f607941b1c01679d6d3dca036ddd23bbe95a44c (patch)
tree41e43a055f178ad973c38bbf8877d1a438fbb8ae /hw/misc/ivshmem-flat.c
parent5d1d32ce9d26a7cdc1c60dceb1b0c55ff9ad9b3e (diff)
downloadfocaccia-qemu-6f607941b1c01679d6d3dca036ddd23bbe95a44c.tar.gz
focaccia-qemu-6f607941b1c01679d6d3dca036ddd23bbe95a44c.zip
treewide: use qemu_set_blocking instead of g_unix_set_fd_nonblocking
Instead of open-coded g_unix_set_fd_nonblocking() calls, use
QEMU wrapper qemu_set_blocking().

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[DB: fix missing closing ) in tap-bsd.c, remove now unused GError var]
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'hw/misc/ivshmem-flat.c')
-rw-r--r--hw/misc/ivshmem-flat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/misc/ivshmem-flat.c b/hw/misc/ivshmem-flat.c
index fe4be6be17..e83e6c6ee9 100644
--- a/hw/misc/ivshmem-flat.c
+++ b/hw/misc/ivshmem-flat.c
@@ -154,7 +154,8 @@ static void ivshmem_flat_add_vector(IvshmemFTState *s, IvshmemPeer *peer,
      * peer.
      */
     peer->vector[peer->vector_counter].id = peer->vector_counter;
-    g_unix_set_fd_nonblocking(vector_fd, true, NULL);
+    /* WARNING: qemu_socket_set_nonblock() return code ignored */
+    qemu_set_blocking(vector_fd, false, &error_warn);
     event_notifier_init_fd(&peer->vector[peer->vector_counter].event_notifier,
                            vector_fd);