qemu-e2k/tests
Stefan Hajnoczi d3fa923044 aio: make aio_poll(ctx, true) block with no fds
This patch drops a special case where aio_poll(ctx, true) returns false
instead of blocking if no file descriptors are waiting on I/O.  Now it
is possible to block in aio_poll() to wait for aio_notify().

This change eliminates busy waiting.  bdrv_drain_all() used to rely on
busy waiting to completed throttled I/O requests but this is no longer
required so we can simplify aio_poll().

Note that aio_poll() still returns false when aio_notify() was used.  In
other words, stopping a blocking aio_poll() wait is not considered
making progress.

Adjust test-aio /aio/bh/callback-delete/one which assumed aio_poll(ctx,
true) would immediately return false instead of blocking.

Reviewed-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-12-06 16:53:51 +01:00
..
libqos libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
multiboot tests: Multiboot mmap test case 2013-10-28 17:34:42 +01:00
qapi-schema OptsVisitor: introduce unit tests, with test cases for range flattening 2013-08-20 11:52:00 -04:00
qemu-iotests qemu-iotests: add test for snapshot in qemu-img convert 2013-12-04 15:19:00 +01:00
tcg target-openrisc: Correct carry flag check of l.addc and l.addic test cases 2013-11-20 21:47:46 +08:00
.gitignore tests: Fix schema parser test for in-tree build 2013-10-02 22:55:27 +04:00
blockdev-test.c blockdev-test: add test case for drive_add duplicate IDs 2013-11-07 13:58:58 +01:00
boot-order-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
check-block.sh
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c
check-qlist.c
check-qstring.c
endianness-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
fdc-test.c libqtest: rename qmp() to qmp_discard_response() 2013-11-07 13:58:43 +01:00
fw_cfg-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
hd-geo-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
i440fx-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
ide-test.c libqtest: rename qmp() to qmp_discard_response() 2013-11-07 13:58:43 +01:00
libqtest.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
libqtest.h libqtest: add qmp(fmt, ...) -> QDict* function 2013-11-07 13:58:53 +01:00
m48t59-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
Makefile qdev-monitor-test: add device_add leak test cases 2013-11-07 13:58:58 +01:00
qdev-monitor-test.c qdev-monitor-test: add device_add leak test cases 2013-11-07 13:58:58 +01:00
qemu-iotests-quick.sh
qom-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
rtc-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00
test-aio.c aio: make aio_poll(ctx, true) block with no fds 2013-12-06 16:53:51 +01:00
test-bitops.c tests: fix 64-bit int literals for 32-bit hosts 2013-11-05 19:59:43 -08:00
test-coroutine.c Test coroutine execution order 2013-11-28 10:30:52 +01:00
test-cutils.c
test-hbitmap.c
test-int128.c
test-iov.c
test-mul64.c
test-opts-visitor.c tests: fix 64-bit int literals for 32-bit hosts 2013-11-05 19:59:43 -08:00
test-qdev-global-props.c qdev: Set globals in instance_post_init function 2013-08-16 18:44:33 +02:00
test-qmp-commands.c
test-qmp-input-strict.c
test-qmp-input-visitor.c tests: fix memleak in error path test for input visitor 2013-11-05 19:58:38 -08:00
test-qmp-output-visitor.c misc: Use g_assert_not_reached for code which is expected to be unreachable 2013-07-27 11:22:54 +04:00
test-string-input-visitor.c
test-string-output-visitor.c
test-thread-pool.c aio / timers: Add QEMUTimerListGroup to AioContext 2013-08-22 19:10:27 +02:00
test-throttle.c misc: New spelling fixes in comments 2013-10-26 13:01:57 +04:00
test-visitor-serialization.c misc: Use g_assert_not_reached for code which is expected to be unreachable 2013-07-27 11:22:54 +04:00
test-x86-cpuid.c
test-xbzrle.c
tmp105-test.c qtest: Use -display none by default 2013-11-19 10:28:14 +01:00