Skip to contentSkip to conversation

console_timestamps for independent wall clock case.

PATCH In review Atsushi SAKAI 2 participants 2 messages Oct 26, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 console_timestamps for independent wall clock case.

Hi, Keir

If independent wall clock flag is on,
Hypervisor(HV) clock is not synchronized to Dom0.

But Currently console_timestamps in HV is implemented, Dom0 sync to HV is required.

Thanks
Atsushi SAKAI

arch/i386/kernel/time-xen.c +2 -2
diff -r 709db80c03c3 arch/i386/kernel/time-xen.c
@@ -469,7 +469,7 @@ int do_settimeofday(struct timespec *tv)
 	sec = tv->tv_sec;
 	__normalize_time(&sec, &nsec);
 
-	if (is_initial_xendomain() && !independent_wallclock) {
+	if (is_initial_xendomain()) {
 		op.cmd = XENPF_settime;
 		op.u.settime.secs        = sec;
 		op.u.settime.nsecs       = nsec;
@@ -506,7 +506,7 @@ static void sync_xen_wallclock(unsigned 
 	s64 nsec;
 	struct xen_platform_op op;
 
-	if (!ntp_synced() || independent_wallclock || !is_initial_xendomain())
+	if (!ntp_synced() || !is_initial_xendomain())
 		return;
 
 	write_seqlock_irq(&xtime_lock);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

That's the default though. If someone explicitly specifies independent_wallclock on dom0 then they should know what they are doing.

-- Keir

Quoted 17 lines · Atsushi SAKAI

Hi, Keir

If independent wall clock flag is on,
Hypervisor(HV) clock is not synchronized to Dom0.

But Currently console_timestamps in HV is implemented, Dom0 sync to HV is required.

Thanks
Atsushi SAKAI

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel