replay: add BH oneshot event for block layer
commite4ec5ad464e48ab8d978b4dd8aacd05c1c4a87cc
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Tue, 17 Sep 2019 11:58:19 +0000 (17 14:58 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Oct 2019 15:12:48 +0000 (14 17:12 +0200)
treefb5bb4af2ee8c376cb3a237c46604a283514e208
parentae25dccb7df64ec9cbb52d7a0a67308d74372cfd
replay: add BH oneshot event for block layer

Replay is capable of recording normal BH events, but sometimes
there are single use callbacks scheduled with aio_bh_schedule_oneshot
function. This patch enables recording and replaying such callbacks.
Block layer uses these events for calling the completion function.
Replaying these calls makes the execution deterministic.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
13 files changed:
block/block-backend.c
block/io.c
block/iscsi.c
block/nfs.c
block/null.c
block/nvme.c
block/rbd.c
block/vxhs.c
include/sysemu/replay.h
replay/replay-events.c
replay/replay-internal.h
stubs/Makefile.objs
stubs/replay-user.c [new file with mode: 0644]