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
diff --git a/aio-android.c b/aio-android.c
index 53f7a6d..2b67579 100644
--- a/aio-android.c
+++ b/aio-android.c
@@ -151,6 +151,11 @@
walking_handlers = 0;
+ /* No AIO operations? Get us out of here */
+ if (!iolooper_has_operations(looper)) {
+ break;
+ }
+
/* wait until next event */
ret = iolooper_wait(looper, -1);