From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S79te-0006RX-SW for qemu-devel@nongnu.org; Mon, 12 Mar 2012 14:23:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S79tF-0001hf-Ik for qemu-devel@nongnu.org; Mon, 12 Mar 2012 14:23:02 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:60335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S79tF-0001hK-9g for qemu-devel@nongnu.org; Mon, 12 Mar 2012 14:22:37 -0400 Received: by eaaf11 with SMTP id f11so1620836eaa.4 for ; Mon, 12 Mar 2012 11:22:35 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 12 Mar 2012 19:22:23 +0100 Message-Id: <1331576548-23067-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1331576548-23067-1-git-send-email-pbonzini@redhat.com> References: <1331576548-23067-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 2/7] qemu-tool: map vm_clock to rt_clock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org QED uses vm_clock timers so that images are not touched during and after migration. This however does not apply to qemu-io and qemu-img. Treat vm_clock as a synonym for rt_clock there, and enable it. Signed-off-by: Paolo Bonzini --- qemu-tool.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/qemu-tool.c b/qemu-tool.c index edb84f5..6579b00 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) { - return 0; + return qemu_get_clock_ns(rt_clock); } int64_t cpu_get_icount(void) @@ -87,7 +87,6 @@ int qemu_init_main_loop(void) { init_clocks(); init_timer_alarm(); - qemu_clock_enable(vm_clock, false); return main_loop_init(); } -- 1.7.7.6