On 09/12/2018 04:19 AM, Pavel Dovgalyuk wrote: > This patch makes IDE trim BH deterministic, because it affects > the device state. Therefore its invocation should be replayed > instead of running at the random moment. > > Signed-off-by: Pavel Dovgalyuk <pavel.dovga...@ispras.ru> > Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/ide/core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/ide/core.c b/hw/ide/core.c > index 2c62efc..04e22e7 100644 > --- a/hw/ide/core.c > +++ b/hw/ide/core.c > @@ -35,6 +35,7 @@ > #include "sysemu/block-backend.h" > #include "qapi/error.h" > #include "qemu/cutils.h" > +#include "sysemu/replay.h" > > #include "hw/ide/internal.h" > #include "trace.h" > @@ -479,7 +480,7 @@ static void ide_issue_trim_cb(void *opaque, int ret) > done: > iocb->aiocb = NULL; > if (iocb->bh) { > - qemu_bh_schedule(iocb->bh); > + replay_bh_schedule_event(iocb->bh); > } > } > > > Just passing by: Why do we need to change this call, but nothing else in IDE? I don't mind conceptually, but it's odd to me that of all the calls I make in this emulator that change state somewhere that this is the only one you need to hijack for the replay feature. Is this a necessarily complete change? --js
- [Qemu-devel] [PATCH v6 11/25] replay: implement replay-see... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 06/25] qcow2: introduce icount fiel... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 09/25] replay: introduce info hmp/q... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 18/25] replay: describe reverse deb... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 07/25] migration: introduce icount ... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 14/25] translator: fix breakpoint p... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 13/25] replay: refine replay-time m... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 19/25] replay: allow loading any sn... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 12/25] replay: flush events when ex... Pavel Dovgalyuk
- [Qemu-devel] [PATCH v6 21/25] replay: replay BH for IDE tr... Pavel Dovgalyuk
- Re: [Qemu-devel] [PATCH v6 21/25] replay: replay BH f... John Snow
- Re: [Qemu-devel] [PATCH v6 21/25] replay: replay ... Pavel Dovgalyuk
- Re: [Qemu-devel] [PATCH v6 21/25] replay: rep... Pavel Dovgalyuk
- Re: [Qemu-devel] [PATCH v6 21/25] replay:... John Snow
- Re: [Qemu-devel] [PATCH v6 21/25] re... Pavel Dovgalyuk
- Re: [Qemu-devel] [PATCH v6 21/25... John Snow
- Re: [Qemu-devel] [PATCH v6 21/25] replay: rep... John Snow
- Re: [Qemu-devel] [PATCH v6 21/25] replay:... Paolo Bonzini
- Re: [Qemu-devel] [PATCH v6 21/25] re... Peter Maydell
- Re: [Qemu-devel] [PATCH v6 21/25... Pavel Dovgalyuk
- Re: [Qemu-devel] [PATCH v6 21/25... Paolo Bonzini