ia64/xen-unstable

changeset 11631:7fca81d456b2

[HVM] Make qemu_advance_timer do something sensible with timers which
aren't currently scheduled.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
author Steven Smith <ssmith@xensource.com>
date Tue Sep 26 16:45:52 2006 +0100 (2006-09-26)
parents ef41783c664a
children ca3abb3804f4
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Tue Sep 26 14:01:38 2006 +0100
     1.2 +++ b/tools/ioemu/vl.c	Tue Sep 26 16:45:52 2006 +0100
     1.3 @@ -727,7 +727,7 @@ void qemu_del_timer(QEMUTimer *ts)
     1.4  
     1.5  void qemu_advance_timer(QEMUTimer *ts, int64_t expire_time)
     1.6  {
     1.7 -    if (ts->expire_time > expire_time)
     1.8 +    if (ts->expire_time > expire_time || !qemu_timer_pending(ts))
     1.9  	qemu_mod_timer(ts, expire_time);
    1.10  }
    1.11