qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] chardev: Use real-time clock for open timer


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] chardev: Use real-time clock for open timer
Date: Mon, 26 Nov 2012 15:48:31 -0600
User-agent: Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Jan Kiszka <address@hidden> writes:

> The vm clock may be stopped, and then we won't get open events anymore.
> Seen with QMP sessions.
>
> Reported-by: Dietmar Maurer <address@hidden>
> Tested-by: Luiz Capitulino <address@hidden>
> Signed-off-by: Jan Kiszka <address@hidden>

Applied. Thanks.

Regards,

Anthony Liguori

> ---
>  qemu-char.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/qemu-char.c b/qemu-char.c
> index 88f4025..242b799 100644
> --- a/qemu-char.c
> +++ b/qemu-char.c
> @@ -134,9 +134,9 @@ static void qemu_chr_fire_open_event(void *opaque)
>  void qemu_chr_generic_open(CharDriverState *s)
>  {
>      if (s->open_timer == NULL) {
> -        s->open_timer = qemu_new_timer_ms(vm_clock,
> +        s->open_timer = qemu_new_timer_ms(rt_clock,
>                                            qemu_chr_fire_open_event, s);
> -        qemu_mod_timer(s->open_timer, qemu_get_clock_ms(vm_clock) - 1);
> +        qemu_mod_timer(s->open_timer, qemu_get_clock_ms(rt_clock) - 1);
>      }
>  }
>  
> -- 
> 1.7.3.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]