From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41156 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkzYp-0003vY-O2 for qemu-devel@nongnu.org; Thu, 03 Feb 2011 08:49:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkzYc-0004D0-VI for qemu-devel@nongnu.org; Thu, 03 Feb 2011 08:49:12 -0500 Received: from mail-gy0-f173.google.com ([209.85.160.173]:59822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkzYc-0004Ci-SQ for qemu-devel@nongnu.org; Thu, 03 Feb 2011 08:49:10 -0500 Received: by gye5 with SMTP id 5so529094gye.4 for ; Thu, 03 Feb 2011 05:49:10 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 3 Feb 2011 14:48:58 +0100 Message-Id: <1296740941-24296-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] Simplify and fix alarm deadline computation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net This is a rebased and updated version of the series to fix alarm deadline computation. I adopted Aurelien's suggestion to change everything to nanoseconds. I also did more testing than just compiling, by booting with -icount. And it wasn't enough. Patch 1 was broken due to a mistake in converting to QEMU_CLOCK_REALTIME to nanoseconds (in patch 1). I found it just by inspection, but at this point I believe this should be baked in 0.15 first before backporting. v1->v2 Add patch 1 v2->v3 Fix patch 1 Paolo Bonzini (3): use nanoseconds everywhere for timeout computation Correct alarm deadline computation Unify alarm deadline computation qemu-timer.c | 65 +++++++++++++++++++++++++++++---------------------------- 1 files changed, 33 insertions(+), 32 deletions(-) -- 1.7.3.4