#599161: Xen debug patch for the "clock shifts by 50 minutes" bug.
Hi all,
I've BCC'd a number of people who have reported seeing this bug at various times in the past.
If you can still repro I'd appreciate it if you could give the patch in
http://marc.info/?l=xen-devel&m=135049062216685&w=2 (also attached) a go and report back success/failure and the output of the debugging messages produced.
Thanks,
Ian.
Signature · 4 lines
Ian Campbell Current Noise: Death - Evil Dead Executive ability is prominent in your make-up.
xen/arch/x86/time.c +10 -1
@@ -523,11 +523,12 @@ static s_time_t __read_platform_stime(u6static void plt_overflow (void *unused) {int i; -u64 count; +u64 count, old_stamp, tsc;s_time_t now, plt_now, plt_wrap;spin_lock_irq (&platform_timer_lock); + old_stamp = plt_stamp; count = plt_src.read_counter (); plt_stamp64 += (count - plt_stamp) & plt_mask; plt_stamp = count;
@@ -540,6 +541,14 @@ static void plt_overflow(void *unused) plt_wrap =__read_platform_stime (plt_stamp64 + plt_mask +1 );if (ABS (plt_wrap - now) >ABS (plt_now - now) )break ; +rdtscll (tsc); +printk ("XXX plt_overflow: plt_now=%" PRIx64" plt_wrap=%" PRIx64 +" now=%" PRIx64" old_stamp=%" PRIx64" new_stamp=%" PRIx64 +" plt_stamp64=%" PRIx64" plt_mask=%" PRIx64 +" tsc=%" PRIx64" tsc_stamp=%" PRIx64"\n" , + plt_now, plt_wrap, now, old_stamp, plt_stamp, plt_stamp64, + plt_mask, tsc,this_cpu (cpu_time).local_tsc_stamp); +break ; plt_stamp64 += plt_mask +1 ; }if ( i !=0 )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 9 lines · Ian Campbell
Hi all,
I've BCC'd a number of people who have reported seeing this bug at various times in the past.
If you can still repro I'd appreciate it if you could give the patch in
http://marc.info/?l=xen-devel&m=135049062216685&w=2 (also attached) a go and report back success/failure and the output of the debugging messages produced.
Is that patch for amd64 architectures?
A message that is not in the archive (sent off-list or not yet received): CAE17a0WfpKHxN=3iF6F+P0nT4UbyF9Lbpm8R5+JJEquQOmudXw@mail.gmail.com
Quoted 6 lines · Mauro
Quoted 5 lines · Ian Campbell
Hi all,
I've BCC'd a number of people who have reported seeing this bug at various times in the past.
Quoted 6 lines
Quoted 4 lines
If you can still repro I'd appreciate it if you could give the patch in
http://marc.info/?l=xen-devel&m=135049062216685&w=2 (also attached) a go and report back success/failure and the output of the debugging messages produced.Is that patch for amd64 architectures?
It is for 32 and 64 bit x86, so yes.
BTW, you were the original recipient of this patch in the thread linked above.
Ian.
Signature · 4 lines
Ian Campbell "I'd love to go out with you, but I'm having all my plants neutered."