mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
replay: introduce block devices record/replay
This patch introduces block driver that implement recording and replaying of block devices' operations. All block completion operations are added to the queue. Queue is flushed at checkpoints and information about processed requests is recorded to the log. In replay phase the queue is matched with events read from the log. Therefore block devices requests are processed deterministically. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> [ kwolf: Rebased onto modified and already applied part of the series ] Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
95b4aed5fd
commit
63785678f3
8 changed files with 209 additions and 2 deletions
|
@ -113,6 +113,8 @@ void replay_bh_schedule_event(QEMUBH *bh);
|
|||
void replay_input_event(QemuConsole *src, InputEvent *evt);
|
||||
/*! Adds input sync event to the queue */
|
||||
void replay_input_sync_event(void);
|
||||
/*! Adds block layer event to the queue */
|
||||
void replay_block_event(QEMUBH *bh, uint64_t id);
|
||||
|
||||
/* Character device */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue