All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Daniel Schroeder <sec@dschroeder.info>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [XEN-3.4] pv_ops dom0 time/clock handling --solved
Date: Fri, 29 May 2009 10:00:03 -0700	[thread overview]
Message-ID: <4A201493.5020605@goop.org> (raw)
In-Reply-To: <4A1DB1E1.1050402@dschroeder.info>

Daniel Schroeder wrote:
> Jeremy Fitzhardinge wrote:
>   
>> Daniel Schroeder wrote:
>>     
>>> Wed May 27 09:33:12 CEST 2009
>>> Mi Mai 27 11:33:13 CEST 2009
>>>   
>>>       
>> That does look like some kind of TZ issue, but I'm not sure where it
>> would be.
>>
>>     
>>> btw: i have checked with 32 bit pvops and 64 bit pvops dom0 and the time
>>>  in the domU is correct with the 64bit pvops dom0 kernel...this wasnt
>>> the same domU...so, next step for me, is to copy the domU to the 64bit
>>> system and try again...to verify, that this only happens for me with
>>> 32bit pvops dom0...
>>>   
>>>       
>> How odd.
>>
>>     
>>>> One difference between pvops time handling and the -xen kernels, is that
>>>> they defaulted to slaving the domU time off the hypervisor at all times,
>>>> so a system time change would propagate into guests.  I don't implement
>>>> that in pvops kernels, so they'll maintain independent time unless you
>>>> explicitly sync with some mechanism like ntp.
>>>>     
>>>>         
>>> hmm...does this mean, that i have to use ntp in domU if i use the pvops
>>> kernel? Because time changes in dom0 doesnt propagate into domUs?
>>>   
>>>       
>> It will set its initial time-of-day clock from the hypervisor's at boot,
>>     
>
> hmm...hwclock --show on affected system:
>
> hwclock --show
> Wed May 27 23:06:20 2009  -0.778274 seconds
>
> hwclock was set to localtime...
>
> on not affected system
>
> hwclock --show
> Cannot access the Hardware Clock via any known method.
> Use the --debug option to see the details of our search for an access
> method.
>
> i have changed the settings in my distro from hwclock localtime to UTC,
> reset the hwclock
> hwclock --utc --systohc
> rebooted
> everything is fine now...

Hm, that probably needs looking at.  hwclock directly pokes the hardware 
to set the system time, which isn't very nice; there's a proper 
hypercall to do that.  The fact that it has different behaviour on 32 
and 64 bit is particularly ugly...

Not sure what the right answer would be.  From a user perspective, I 
guess making hwclock do the right thing under Xen is the answer, but I'm 
not sure how/where it is maintained.

    J

  reply	other threads:[~2009-05-29 17:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22  8:47 [XEN-3.4] any changes to time/clock handling? Daniel Schroeder
2009-05-22 16:42 ` Keir Fraser
2009-05-22 19:31   ` Daniel Schroeder
2009-05-25  9:11     ` [XEN-3.4] pv_ops dom0 time/clock handling Daniel Schroeder
2009-05-25  9:16       ` Keir Fraser
2009-05-25  9:56         ` Daniel Schroeder
2009-05-27  4:08           ` Jeremy Fitzhardinge
2009-05-27  7:37             ` Daniel Schroeder
2009-05-27 20:31               ` Jeremy Fitzhardinge
2009-05-27 21:34                 ` [XEN-3.4] pv_ops dom0 time/clock handling --solved Daniel Schroeder
2009-05-29 17:00                   ` Jeremy Fitzhardinge [this message]
2009-05-29 19:00                     ` [XEN-3.4] pv_ops dom0 time/clock handling Daniel Schroeder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A201493.5020605@goop.org \
    --to=jeremy@goop.org \
    --cc=keir.fraser@eu.citrix.com \
    --cc=sec@dschroeder.info \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.