qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anders <mail@flac.kalibalik.dk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu vl.c
Date: Sun, 16 Dec 2007 16:26:24 +0100	[thread overview]
Message-ID: <476543A0.9090207@flac.kalibalik.dk> (raw)
In-Reply-To: <200712161430.35113.paul@codesourcery.com>

Paul Brook wrote:

>> 	Redundant timer rearm optimisation by Anders Melchiorsen.
> 
> I think this is incorrect.
> 
> When a timer is modified, we need to rearm the host timer immediately. We can 
> not wait for the old timer to fire, or for execution to fall back to the 
> main_loop_wait.  Consider the case where the guest adds a timer interrupt and 
> immediately enters a tight loop - Quite a common operation when calibrating a 
> software delay loop. The timer won't be rearmed until some other event 
> occurs. It the system is otherwise quiescent and you're not using SDL output 
> it may never occur.

Hi Paul,

I am certainly open to it not being correct, but currently I fail to see 
how it changes the scenario that you mention. The rearming is moved away 
from qemu_run_timers(), not qemu_mod_timer(). Can you elaborate?


There was a previous patch to remove the rearming when timers are modified,

http://cvs.savannah.gnu.org/viewvc/qemu/vl.c?root=qemu&view=log#rev1.345

and to me it seems that this might affect the case that you describe.


Cheers,
Anders.

  reply	other threads:[~2007-12-16 15:26 UTC|newest]

Thread overview: 146+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-16 13:17 [Qemu-devel] qemu vl.c Andrzej Zaborowski
2007-12-16 14:30 ` Paul Brook
2007-12-16 15:26   ` Anders [this message]
2007-12-17  0:58     ` Paul Brook
2007-12-17 21:36       ` Avi Kivity
2007-12-17 23:46         ` Anders
2007-12-18  0:40           ` andrzej zaborowski
2007-12-18 16:48             ` Avi Kivity
2007-12-18 23:57               ` Anders
  -- strict thread matches above, loose matches on Subject: below --
2008-03-24  2:31 Paul Brook
2008-03-09 23:43 Aurelien Jarno
2008-02-03  3:45 Andrzej Zaborowski
2008-01-14  3:11 Andrzej Zaborowski
2008-01-08 19:32 Thiemo Seufer
2008-01-05 19:41 Andrzej Zaborowski
2007-12-24 13:58 Andrzej Zaborowski
2007-12-16 11:48 Andrzej Zaborowski
2007-12-06 22:11 Andrzej Zaborowski
2007-12-03  3:01 Andrzej Zaborowski
2007-11-24 23:27 Andrzej Zaborowski
2007-11-19  1:05 Jocelyn Mayer
2007-11-15 19:04 Paul Brook
2007-10-26 17:21 Thiemo Seufer
2007-10-21 23:20 Thiemo Seufer
2007-10-26 15:49 ` Stefan Weil
2007-10-26 16:48   ` Johannes Schindelin
2007-10-26 17:24     ` Thiemo Seufer
2007-10-04 19:59 Andrzej Zaborowski
2007-10-04 19:47 Andrzej Zaborowski
2007-09-17 21:25 Andrzej Zaborowski
2007-09-16 19:53 Thiemo Seufer
2007-08-28 22:21 Thiemo Seufer
2007-08-26 17:31 Thiemo Seufer
2007-08-26 17:29 Thiemo Seufer
2007-08-25  1:34 Thiemo Seufer
2007-08-24  1:46 Thiemo Seufer
2007-08-24  1:36 Thiemo Seufer
2007-08-24  1:26 Thiemo Seufer
2007-08-23 20:22 Paul Brook
2007-08-20 15:42 Thiemo Seufer
2007-08-19 22:09 Thiemo Seufer
2007-07-02 15:03 Andrzej Zaborowski
2007-07-02 13:31 Andrzej Zaborowski
2007-07-02 13:20 Andrzej Zaborowski
2007-06-29 23:26 Thiemo Seufer
2007-06-28 15:14 Thiemo Seufer
2007-06-28 14:05 Thiemo Seufer
2007-06-25 11:48 Thiemo Seufer
2007-06-28  8:24 ` Andreas Färber
2007-06-28  8:32   ` Andreas Färber
2007-06-23 16:01 Thiemo Seufer
2007-06-22  8:23 Andrzej Zaborowski
2007-06-21 23:34 Thiemo Seufer
2007-05-28  2:29 Paul Brook
2007-05-18 17:46 Andrzej Zaborowski
2007-05-13 14:54 Thiemo Seufer
2007-05-03 10:13 Andrzej Zaborowski
2007-04-28 20:49 Thiemo Seufer
2007-04-18 18:11 Thiemo Seufer
2007-04-18 17:56 Thiemo Seufer
2007-03-25 20:27 Thiemo Seufer
2007-03-25 15:58 Thiemo Seufer
2007-03-22 12:36 Thiemo Seufer
2007-03-19 16:36 Thiemo Seufer
2007-03-19 15:58 Thiemo Seufer
2007-03-11 18:54 Paul Brook
2007-02-28 21:59 Thiemo Seufer
2007-02-21 17:25 Thiemo Seufer
2007-02-19  1:10 Thiemo Seufer
2007-02-17 22:54 Thiemo Seufer
2007-02-10 21:50 Thiemo Seufer
2007-02-02  3:30 Thiemo Seufer
2007-02-03  4:20 ` Kazu
2007-02-05 11:52   ` Johannes Schindelin
2007-01-27 17:19 Paul Brook
2007-01-27 18:22 ` Stefan Weil
2007-01-27 18:38   ` Paul Brook
2007-01-27 17:11 Paul Brook
2007-01-09 19:44 Fabrice Bellard
2006-12-23 22:51 Thiemo Seufer
2006-12-23 15:37 Paul Brook
2006-12-22 21:20 Thiemo Seufer
2006-12-22 19:25 Thiemo Seufer
2006-12-22 17:29 Thiemo Seufer
2006-11-01  1:44 Paul Brook
2006-09-10 14:39 Paul Brook
2006-09-09 11:10 Fabrice Bellard
2006-08-17  9:43 Fabrice Bellard
2006-08-07 21:34 Fabrice Bellard
2006-08-06 13:36 Fabrice Bellard
2006-07-15 17:40 Paul Brook
2006-07-14  9:36 Fabrice Bellard
2006-06-26 20:03 Fabrice Bellard
2006-06-25 16:25 Fabrice Bellard
2006-05-01 13:33 Fabrice Bellard
2006-05-01 13:28 Fabrice Bellard
2006-05-01 13:23 Fabrice Bellard
2006-05-01 12:43 Fabrice Bellard
2006-04-30 22:20 Fabrice Bellard
2006-03-28 20:20 Paul Brook
2006-02-10 17:34 Paul Brook
2006-02-08 22:46 Fabrice Bellard
2006-02-01 21:29 Fabrice Bellard
2006-01-08 10:53 Fabrice Bellard
2005-12-18 19:09 Fabrice Bellard
2005-12-18 18:02 Fabrice Bellard
2005-11-27 19:10 Fabrice Bellard
2005-11-26 20:10 Fabrice Bellard
2005-11-23 21:01 Fabrice Bellard
2005-11-11  0:00 Fabrice Bellard
2005-09-03 21:33 Fabrice Bellard
2005-09-03 15:28 Fabrice Bellard
2005-06-05 14:49 Fabrice Bellard
2005-04-06 20:32 Fabrice Bellard
2005-03-01 21:28 Fabrice Bellard
2005-01-30 22:57 Fabrice Bellard
2005-01-26 21:56 Fabrice Bellard
2005-01-15 21:50 Fabrice Bellard
2005-01-09  0:22 Fabrice Bellard
2005-01-09  0:58 ` Phil Krylov
2005-01-09 10:48   ` Daniel Egger
2005-01-06 21:06 Fabrice Bellard
2005-01-03 23:48 Fabrice Bellard
2004-12-12 22:43 Fabrice Bellard
2004-11-14 15:48 Fabrice Bellard
2003-12-02 22:18 Fabrice Bellard
2003-11-16 19:46 Fabrice Bellard
2003-11-16 15:59 Fabrice Bellard
2003-11-11 13:36 Fabrice Bellard
2003-11-04 23:35 Fabrice Bellard
2003-10-30  1:11 Fabrice Bellard
2003-10-27 23:37 Fabrice Bellard
2003-10-27 21:18 Fabrice Bellard
2003-09-30 22:11 Fabrice Bellard
2003-09-30 21:40 Fabrice Bellard
2003-09-30 21:07 Fabrice Bellard
2003-09-16 21:46 Fabrice Bellard
2003-07-27 22:19 Fabrice Bellard
2003-07-26 18:11 Fabrice Bellard
2003-07-04 14:38 Fabrice Bellard
2003-07-01 15:07 Fabrice Bellard
2003-06-30 23:36 Fabrice Bellard
2003-06-30 13:06 Fabrice Bellard
2003-06-27 12:01 Fabrice Bellard
2003-06-25 16:20 Fabrice Bellard
2003-06-25  0:07 Fabrice Bellard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=476543A0.9090207@flac.kalibalik.dk \
    --to=mail@flac.kalibalik.dk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).