From: Keir Fraser <keir@xensource.com>
To: Steven Rostedt <srostedt@redhat.com>, Keir Fraser <keir@xensource.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] Have xen dom0 still handle time of 1970
Date: Wed, 17 Jan 2007 17:26:12 +0000 [thread overview]
Message-ID: <C1D40CB4.7C5A%keir@xensource.com> (raw)
In-Reply-To: <45AE4F40.6060205@redhat.com>
On 17/1/07 16:30, "Steven Rostedt" <srostedt@redhat.com> wrote:
> Have a box with Xen running more than a day? (I currently don't), and if
> you do, try the above date command. You'll see what I'm talking about.
>
> The example is bad, but I didn't have a machine to show that has been
> running a Xen kernel for more than an hour or two.
Oh, I see. But it kind of feels silly to work around a synthetic correctness
test. If we make wc_sec implicitly signed (which is pretty gross) then we
lose 1 bit of magnitude which also isn't great -- I'd rather be able to
represent years 2038 through 2106 than 1902 through 1970.
What we could do, to keep LTP happy, is set the local domain's time as
specified but clamp the time sent to Xen at epoch+uptime. This would require
dom0 to read wc_time from Xen only once at boot. OTOH perhaps we just do not
really care -- after all by default this LTP test will fail on all domU
because settimeofday() is a no-op unless /proc/sys/xen/independent_wallclock
is asserted. And if you set that flag on dom0, the LTP test will magically
start working there too! :-)
Perhaps at least we should fail or clamp the settimeofday() call, rather
than doing some mad warp into the future...
-- Keir
next prev parent reply other threads:[~2007-01-17 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-17 15:50 [PATCH] Have xen dom0 still handle time of 1970 Steven Rostedt
2007-01-17 16:16 ` Keir Fraser
2007-01-17 16:30 ` Steven Rostedt
2007-01-17 17:26 ` Keir Fraser [this message]
2007-01-17 17:36 ` Rik van Riel
2007-01-17 17:44 ` Keir Fraser
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=C1D40CB4.7C5A%keir@xensource.com \
--to=keir@xensource.com \
--cc=srostedt@redhat.com \
--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.