From: Keir Fraser Subject: Re: [PATCH] Have xen dom0 still handle time of 1970 Date: Wed, 17 Jan 2007 17:44:16 +0000 Message-ID: References: <45AE5E84.2080805@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45AE5E84.2080805@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Rik van Riel Cc: Steven Rostedt , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 17/1/07 17:36, "Rik van Riel" wrote: >> 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. > > Isn't unsigned long 64 bits on 64 bit systems anyway? > > That would give us a lot more time... Yeah it is, but wc_sec in shared_info is uint32_t. Perhaps I wasn't optimistic enough about Xen's longevity. :-) With tricks we could be good out to about 2250 without needing to increase wc_sec's size. -- Keir