mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
replay: allow replay stopping and restarting
This patch fixes bug with stopping and restarting replay through monitor. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20160926080815.6992.71818.stgit@PASHA-ISP> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
306e196fa2
commit
6d0ceb80ff
8 changed files with 29 additions and 12 deletions
|
@ -68,6 +68,10 @@ typedef struct ReplayState {
|
|||
unsigned int has_unread_data;
|
||||
/*! Temporary variable for saving current log offset. */
|
||||
uint64_t file_offset;
|
||||
/*! Next block operation id.
|
||||
This counter is global, because requests from different
|
||||
block devices should not get overlapping ids. */
|
||||
uint64_t block_request_id;
|
||||
} ReplayState;
|
||||
extern ReplayState replay_state;
|
||||
|
||||
|
@ -123,8 +127,6 @@ void replay_read_next_clock(unsigned int kind);
|
|||
void replay_init_events(void);
|
||||
/*! Clears internal data structures for events handling */
|
||||
void replay_finish_events(void);
|
||||
/*! Enables storing events in the queue */
|
||||
void replay_enable_events(void);
|
||||
/*! Flushes events queue */
|
||||
void replay_flush_events(void);
|
||||
/*! Clears events list before loading new VM state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue