qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 11/19] use a bottom half to run timers


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 11/19] use a bottom half to run timers
Date: Thu, 24 Dec 2009 13:21:04 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 12/24/2009 12:25 PM, Marcelo Tosatti wrote:
     /* rearm timer, if not periodic */
     if (t->expired) {
         t->expired = 0;
         qemu_rearm_alarm_timer(t);
     }

     ->  host_alarm_handler fires, sets bh->scheduled = 1
     ->  qemu_mod_timer sees qemu_alarm_pending() == true and does
        not rearm the alarm timer.

The bottom half will be reexecuted right away and the alarm will be rearmed then. So if it happens once it is not a problem. If it happens continuously, you have a sort of interrupt storm so this is the least of your problems. :-)

Paolo




reply via email to

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