From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDzii-0006XF-M4 for qemu-devel@nongnu.org; Thu, 13 Feb 2014 12:05:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDzid-0007ek-I1 for qemu-devel@nongnu.org; Thu, 13 Feb 2014 12:05:04 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:46877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDzid-0007ea-BH for qemu-devel@nongnu.org; Thu, 13 Feb 2014 12:04:59 -0500 Received: by mail-lb0-f173.google.com with SMTP id s7so6997972lbd.32 for ; Thu, 13 Feb 2014 09:04:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <3426895C-69CC-4649-8E59-0814093B3577@alex.org.uk> References: <482BBC19-D3C5-4ED3-97E7-60A4046905DF@alex.org.uk> <52F63084.2040406@redhat.com> <3B80383B-05DF-4BC2-8576-68262DAEC454@alex.org.uk> <3426895C-69CC-4649-8E59-0814093B3577@alex.org.uk> From: Peter Maydell Date: Thu, 13 Feb 2014 17:04:38 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] timer issue on 1.7.0 and later List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Bligh Cc: Paolo Bonzini , Rob Herring , QEMU Developers On 13 February 2014 16:31, Alex Bligh wrote: > The current code (timer_mod_ns_locked) runs the rearm code > if the modified timer is at the front of the timer queue > (only). So if you modify B (in your example above) whether > you extend or reduce the time, it will only 'rearm' if > B now occurs before A. However, if you modify A, it will > currently rearm whether you reduce the expiry time of > A (correct) or whether you extend it so long as it doesn't > now expire after B (this could perhaps be optimised). > > So it's not quite as bad as you think. A little experimentation with the debugger for an SMP A9 guest suggests this may be a red herring anyway. Once it's got started, the only thing that was causing calls to timerlist_notify was the GUI, and if you run with -display none we don't call timerlist_notify at all at the point where we seem to be stalling. thanks -- PMM