[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/r
From: |
Pavel Dovgaluk |
Subject: |
Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay |
Date: |
Wed, 23 Sep 2015 11:42:17 +0300 |
> From: Paolo Bonzini [mailto:address@hidden On Behalf Of Paolo Bonzini
> On 23/09/2015 09:22, Pavel Dovgaluk wrote:
> > Sometimes tcg thread halts in qemu_tcg_wait_io_event function,
> > waiting for any external event. Virtual clock does not run, because
> > warp is not called. warp call in main_loop_wait proceeds virtual
> > clock and allows tcg thread to run further.
>
> Ok, this makes sense!
>
> Would this work too as a replacement for this patch?
No, it doesn't help.
It seems that tcg is waiting within qemu_cond_wait function without leaving it.
>
> diff --git a/cpus.c b/cpus.c
> index fbbd17f..9480acc 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -926,6 +926,7 @@ static void qemu_tcg_wait_io_event(CPUState *cpu)
> }
>
> while (iothread_requesting_mutex) {
> + qemu_clock_warp(QEMU_CLOCK_VIRTUAL);
> qemu_cond_wait(&qemu_io_proceeded_cond, &qemu_global_mutex);
> }
Pavel Dovgalyuk
- [Qemu-devel] [PATCH v18 09/21] replay: interrupts and exceptions, (continued)
- [Qemu-devel] [PATCH v18 09/21] replay: interrupts and exceptions, Pavel Dovgalyuk, 2015/09/17
- [Qemu-devel] [PATCH v18 10/21] replay: asynchronous events infrastructure, Pavel Dovgalyuk, 2015/09/17
- [Qemu-devel] [PATCH v18 11/21] replay: recording and replaying clock ticks, Pavel Dovgalyuk, 2015/09/17
- [Qemu-devel] [PATCH v18 12/21] replay: shutdown event, Pavel Dovgalyuk, 2015/09/17
- [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 14/21] replay: checkpoints, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 15/21] bottom halves: introduce bh call function, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 16/21] replay: ptimer, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 17/21] typedef: add typedef for QemuOpts, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 18/21] replay: initialization and deinitialization, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 20/21] replay: command line options, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 19/21] replay: replay blockers for devices, Pavel Dovgalyuk, 2015/09/17
[Qemu-devel] [PATCH v18 21/21] replay: recording of the user input, Pavel Dovgalyuk, 2015/09/17
Re: [Qemu-devel] [PATCH v18 00/21] Deterministic replay core, Pavel Dovgaluk, 2015/09/21