This should not happen according to eventfd(2).
Signed-off-by: Marc-André Lureau <[email protected]>
---
hw/misc/ivshmem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
index 17dc122..6f3d2fe 100644
--- a/hw/misc/ivshmem.c
+++ b/hw/misc/ivshmem.c
@@ -267,6 +267,7 @@ static void ivshmem_receive(void *opaque, const uint8_t
*buf, int size)
IVShmemState *s = opaque;
IVSHMEM_DPRINTF("ivshmem_receive 0x%02x size: %d\n", *buf, size);
+ g_warn_if_fail(*buf != 0);
ivshmem_IntrStatus_write(s, *buf);
}
--
2.4.3