From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2kke-0000Bj-TO for qemu-devel@nongnu.org; Wed, 29 Feb 2012 09:43:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2kkY-0004xf-H1 for qemu-devel@nongnu.org; Wed, 29 Feb 2012 09:43:32 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:42530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2kkY-0004wy-8z for qemu-devel@nongnu.org; Wed, 29 Feb 2012 09:43:26 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Feb 2012 14:43:20 -0000 Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1TEhE5A2547828 for ; Wed, 29 Feb 2012 14:43:15 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1TEhE3P031162 for ; Wed, 29 Feb 2012 07:43:14 -0700 From: Stefan Hajnoczi Date: Wed, 29 Feb 2012 14:41:32 +0000 Message-Id: <1330526492-2539-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] qemu-tool: revert cpu_get_clock() abort(3) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi Despite the fact that the qemu-tool environment has no guest running and vm_clock therefore does not make sense, there is code that gets the vm_clock time even in qemu-tool. Therefore, revert the abort(3) call and just return 0 like we used to. This unbreaks qemu-img/qemu-io with QED and Kevin has also expressed interest in this for qcow2. Signed-off-by: Stefan Hajnoczi --- qemu-tool.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-tool.c b/qemu-tool.c index 183a583..edb84f5 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -61,7 +61,7 @@ void monitor_protocol_event(MonitorEvent event, QObject *data) int64_t cpu_get_clock(void) { - abort(); + return 0; } int64_t cpu_get_icount(void) -- 1.7.9