mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
replay: record and replay random number sources
Record/replay feature of icount allows deterministic running of execution scenarios. Some CPUs and peripheral devices read random numbers from external sources making deterministic execution impossible. This patch adds recording and replaying of random read operations into guest-random module, which is used by the virtual hardware. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Message-Id: <157675984852.14505.15709141760677102489.stgit@pasha-Precision-3630-Tower> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
fc6b2dbac1
commit
878ec29b9c
8 changed files with 77 additions and 4 deletions
|
@ -117,6 +117,13 @@ int64_t replay_read_clock(ReplayClockKind kind);
|
|||
? replay_save_clock((clock), (value), cpu_get_icount_raw_locked()) \
|
||||
: (value))
|
||||
|
||||
/* Processing data from random generators */
|
||||
|
||||
/* Saves the values from the random number generator */
|
||||
void replay_save_random(int ret, void *buf, size_t len);
|
||||
/* Loads the saved values for the random number generator */
|
||||
int replay_read_random(void *buf, size_t len);
|
||||
|
||||
/* Events */
|
||||
|
||||
/*! Called when qemu shutdown is requested. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue