All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] time-xen : Reset monotonic time when sync up time from dom0 to domU
@ 2010-10-12 10:19 Du, Hang
  2010-10-12 11:48 ` Jan Beulich
  2010-10-12 15:39 ` Dan Magenheimer
  0 siblings, 2 replies; 24+ messages in thread
From: Du, Hang @ 2010-10-12 10:19 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com; +Cc: Liu, Saipu, Yi, Shunli


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]

Signed-off-by: Shunli Yi <shyi@websense.com>
Signed-off-by: Hang Du <hdu@websense.com>

When sync up time from dom0 to domU, the monotonic time should be reset or domU cannot sync up backward time from dom0.

diff -urN a/arch/i386/kernel/time-xen.c   b/arch/i386/kernel/time-xen.c

--- a/arch/i386/kernel/time-xen.c   2010-10-11 10:41:06.000000000 +0800
+++ b/arch/i386/kernel/time-xen.c   2010-10-11 10:43:32.000000000 +0800
@@ -715,6 +715,8 @@
    }

    if (shadow_tv_version != HYPERVISOR_shared_info->wc_version) {
+        if (!independent_wallclock)
+            monotonic_reset();
        update_wallclock();
        schedule_clock_was_set_work = 1;
    }



 Protected by Websense Hosted Email Security -- www.websense.com 

[-- Attachment #1.2: Type: text/html, Size: 6581 bytes --]

[-- Attachment #2: time-xen.patch --]
[-- Type: application/octet-stream, Size: 517 bytes --]

Subject:Reset monotonic time when sync up time from dom0 to domU

Signed-off-by: Shunli Yi <shyi@websense.com>
Signed-off-by: Hang Du <hdu@websense.com>

--- a/arch/i386/kernel/time-xen.c	2010-10-11 10:41:06.000000000 +0800
+++ b/arch/i386/kernel/time-xen.c	2010-10-11 10:43:32.000000000 +0800
@@ -715,6 +715,8 @@
 	}
 
 	if (shadow_tv_version != HYPERVISOR_shared_info->wc_version) {
+        if (!independent_wallclock)
+            monotonic_reset();
 		update_wallclock();
 		schedule_clock_was_set_work = 1;
 	}

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2010-10-22  4:49 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 10:19 [PATCH] time-xen : Reset monotonic time when sync up time from dom0 to domU Du, Hang
2010-10-12 11:48 ` Jan Beulich
2010-10-13  3:24   ` Du, Hang
2010-10-13 12:37     ` Jan Beulich
2010-10-13 15:56       ` Dan Magenheimer
2010-10-13 16:02         ` Jeremy Fitzhardinge
2010-10-13 16:09         ` Keir Fraser
2010-10-13 16:16         ` Tim Deegan
2010-10-13 16:48           ` Jeremy Fitzhardinge
2010-10-14  9:07             ` Tim Deegan
2010-10-14 23:35               ` Jeremy Fitzhardinge
2010-10-15  8:39                 ` RADclock on Xen (was Re: [PATCH] time-xen : Reset monotonic time when sync up time from dom0 to domU) Tim Deegan
     [not found]                   ` <5869AFE5-6E86-46D8-8817-98DCAF39F7FC@unimelb.edu.au>
2010-10-15 23:21                     ` Jeremy Fitzhardinge
2010-10-21  3:36                       ` Darryl Veitch
2010-10-21 20:49                         ` Jeremy Fitzhardinge
2010-10-22  4:49                           ` Darryl Veitch
2010-10-15 14:09               ` [PATCH] time-xen : Reset monotonic time when sync up time from dom0 to domU Dan Magenheimer
2010-10-15 14:19                 ` Tim Deegan
2010-10-15 14:46                   ` Dan Magenheimer
2010-10-15 14:53                     ` Dan Magenheimer
2010-10-15 14:58                     ` Tim Deegan
     [not found]                   ` <c049c7f4-3db4-4552-9c70-80f0a7a440e5@default 43468AF5-4D81-47E9-A6F7-2D8A25A432FD@unimelb.edu.au>
     [not found]                     ` <43468AF5-4D81-47E9-A6F7-2D8A25A432FD@unimelb.edu.au>
2010-10-18 14:52                       ` Dan Magenheimer
2010-10-14  2:36         ` Yi, Shunli
2010-10-12 15:39 ` Dan Magenheimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.