summaryrefslogtreecommitdiffstats
path: root/include/qemu/tls.h
diff options
context:
space:
mode:
authorStefan Hajnoczi2014-09-29 17:40:11 +0200
committerPeter Maydell2014-09-29 18:31:08 +0200
commite8c81b4d8a5a2fd125e559cb02b8a87598419041 (patch)
treea7fc7c59c24b280e203d4b5b1694c5df1c770aa4 /include/qemu/tls.h
parentraw-posix: Fix build without posix_fallocate() (diff)
downloadqemu-e8c81b4d8a5a2fd125e559cb02b8a87598419041.tar.gz
qemu-e8c81b4d8a5a2fd125e559cb02b8a87598419041.tar.xz
qemu-e8c81b4d8a5a2fd125e559cb02b8a87598419041.zip
libqos: improve event_index test with timeout
The virtio event_index feature lets the device driver tell the device how many requests to process before raising the next interrupt. virtio-blk-test.c tries to verify that the device does not raise an interrupt unnecessarily. Unfortunately the test has a race condition. It spins checking for an interrupt up to 100 times and then assumes the request has finished. On a slow host the I/O request could still be in flight and the test would fail. This patch waits for the request to complete, or until a 30-second timeout is reached. If an interrupt is raised while waiting the test fails since the device was not supposed to raise interrupts. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/qemu/tls.h')
0 files changed, 0 insertions, 0 deletions