Home
last modified time | relevance | path

Searched hist:"3 c90c65d" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dblkdebug.c3c90c65d Thu Dec 06 13:32:57 GMT 2012 Kevin Wolf <kwolf@redhat.com> blkdebug: Implement suspend/resume of AIO requests

This allows more systematic AIO testing. The patch adds three new
operations to blkdebug:

* Setting a "breakpoint" on a blkdebug event. The next request that
triggers this breakpoint is suspended and is tagged with a name.
The breakpoint is removed after a request has triggered it.

* A suspended request (identified by it's tag) can be resumed

* It's possible to check whether a suspended request with a given
tag exists. This can be used for waiting for an event.

Ideally, we would instead tag requests right when they are created and
set breakpoints for individual requests. However, at this point the
block layer doesn't allow this easily, and breakpoints that trigger for
any request already allow a lot of useful testing.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>