aboutsummaryrefslogtreecommitdiffstats
path: root/iolooper-select.c
diff options
context:
space:
mode:
authorOt ten Thije <ottenthije@google.com>2010-07-19 13:10:18 +0100
committerOt ten Thije <ottenthije@google.com>2010-07-28 09:39:07 +0100
commitcc19d3eeef59cbd354c1c618f7421d6fe5e0a098 (patch)
tree3e5d5b38c9be72c8013b1efbd1897e6792110795 /iolooper-select.c
parent2fa5173bd1ce7341c50adac676a317945f0969c7 (diff)
downloadexternal_qemu-cc19d3eeef59cbd354c1c618f7421d6fe5e0a098.zip
external_qemu-cc19d3eeef59cbd354c1c618f7421d6fe5e0a098.tar.gz
external_qemu-cc19d3eeef59cbd354c1c618f7421d6fe5e0a098.tar.bz2
Fixed infinite loop in qemu_aio_wait() affecting savevm.
Solved by porting a check on AIO operations from QEMU mainline (in mainline commit a76bab4952a1539266490295fb50b78802c467c2). Change-Id: I1d2011776f7cb90d81e36a5cf9381ef956d9a5b9
Diffstat (limited to 'iolooper-select.c')
-rw-r--r--iolooper-select.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iolooper-select.c b/iolooper-select.c
index 74a5a3a..bf7ae8f 100644
--- a/iolooper-select.c
+++ b/iolooper-select.c
@@ -174,3 +174,9 @@ iolooper_is_write( IoLooper* iol, int fd )
{
return FD_ISSET(fd, iol->writes_result);
}
+
+int
+iolooper_has_operations( IoLooper* iol )
+{
+ return iolooper_fd_count(iol) > 0;
+}