From 4e7fa73ec2516334b58e82f9a5649b1468b1eb7a Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Wed, 26 Nov 2014 13:40:50 +0300 Subject: timer: introduce new QEMU_CLOCK_VIRTUAL_RT clock This patch introduces new QEMU_CLOCK_VIRTUAL_RT clock, which should be used for icount warping. In the next patch, it will be used to avoid a huge icount warp when a virtual machine is stopped for a long time. Signed-off-by: Pavel Dovgalyuk Signed-off-by: Paolo Bonzini --- qemu-timer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qemu-timer.c') diff --git a/qemu-timer.c b/qemu-timer.c index 00a5d35c3f..f4b4b6aa45 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -566,6 +566,8 @@ int64_t qemu_clock_get_ns(QEMUClockType type) notifier_list_notify(&clock->reset_notifiers, &now); } return now; + case QEMU_CLOCK_VIRTUAL_RT: + return cpu_get_clock(); } } -- cgit 1.4.1