qemu-e2k/tests/libqos
Stefan Hajnoczi e8c81b4d8a 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>
2014-09-29 17:31:08 +01:00
..
fw_cfg.c libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
fw_cfg.h libqos: Generalize I/O-mapped fw_cfg 2013-07-18 13:27:47 -05:00
i2c-omap.c
i2c.c
i2c.h
malloc-pc.c libqos: add a simple first-fit memory allocator 2014-09-08 11:12:43 +01:00
malloc-pc.h libqos: add a simple first-fit memory allocator 2014-09-08 11:12:43 +01:00
malloc.h libqos: Change free function called in malloc 2014-08-15 18:03:14 +01:00
pci-pc.c libqos: allow qpci_iomap to return BAR mapping size 2014-08-15 18:03:13 +01:00
pci-pc.h libqos: Fixes a small memory leak. 2014-08-15 18:03:13 +01:00
pci.c ahci: add test_pci_enable to ahci-test. 2014-09-22 11:39:40 +01:00
pci.h libqos: Added MSI-X support 2014-09-08 11:12:43 +01:00
virtio-pci.c libqos: Added EVENT_IDX support 2014-09-08 11:12:43 +01:00
virtio-pci.h libqos: Added MSI-X support 2014-09-08 11:12:43 +01:00
virtio.c libqos: improve event_index test with timeout 2014-09-29 17:31:08 +01:00
virtio.h libqos: improve event_index test with timeout 2014-09-29 17:31:08 +01:00