diff options
author | Pavel Dovgalyuk | 2021-02-03 07:00:12 +0100 |
---|---|---|
committer | Paolo Bonzini | 2021-02-08 15:15:32 +0100 |
commit | 54550d886e5bb4148c0765c639fa04a44f3e5d8d (patch) | |
tree | fbcbd3a5bf8b270cb629ebeb6224aa99db7598ff /backends | |
parent | pc-bios/descriptors: fix paths in json files (diff) | |
download | qemu-54550d886e5bb4148c0765c639fa04a44f3e5d8d.tar.gz qemu-54550d886e5bb4148c0765c639fa04a44f3e5d8d.tar.xz qemu-54550d886e5bb4148c0765c639fa04a44f3e5d8d.zip |
replay: rng-builtin support
This patch enables using rng-builtin with record/replay
by making the callbacks deterministic.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <161233201286.170686.7858208964037376305.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/rng-builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/rng-builtin.c b/backends/rng-builtin.c index f38dff117d..f367eb665c 100644 --- a/backends/rng-builtin.c +++ b/backends/rng-builtin.c @@ -10,6 +10,7 @@ #include "qemu/main-loop.h" #include "qemu/guest-random.h" #include "qom/object.h" +#include "sysemu/replay.h" OBJECT_DECLARE_SIMPLE_TYPE(RngBuiltin, RNG_BUILTIN) @@ -37,7 +38,7 @@ static void rng_builtin_request_entropy(RngBackend *b, RngRequest *req) { RngBuiltin *s = RNG_BUILTIN(b); - qemu_bh_schedule(s->bh); + replay_bh_schedule_event(s->bh); } static void rng_builtin_init(Object *obj) |