Received: by 10.192.165.148 with SMTP id m20csp1232058imm; Fri, 27 Apr 2018 15:23:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqe06yNOAgepmLzSd4+W3VrCdDz5na5jB4QKWXY2835t6aUw+zXVT/vx54bBG01QbT47xpF X-Received: by 10.98.108.69 with SMTP id h66mr3687536pfc.43.1524867838019; Fri, 27 Apr 2018 15:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524867837; cv=none; d=google.com; s=arc-20160816; b=ucJ+sYrieQ7GH7Lbjn7+HPoRoDCJhONvfGQZDY6DiWgpcebDFVZV9lMpx2dqClPSPr Xoupsn6mzo8/bJ6NmCLUz6rmsA4+iG1lZgBUFLHnlMep0OBFjB6OjRaMgB2PChBc6Rb1 f1UWOg5pYbtqbUkdftx3dyw+aXIbwSRv7lI44liramxGEE5zVwYc+0EzMMDNeP/QDwIQ HjHBtwZppVu0eoBUY9ZEdJQrRJoKKFH9pH8CORUwlks7SdXp9MbH8TMzP5imfktG0BfB mNaMW64uk+GP8u5vcOQ9eEK8zq6/SWgKEJewktXIwSbpYXcE9O24FoWl2TiqM6xwZItG e5rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id :references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=ZzQLSlqB+2kP7yN2pGAA1dk8I1nQ2h3JBNpvs9DQ5Kg=; b=GTsHpyibuhJqjt9h+FbXTZwEOUlFYvDmmyiHvB3pRUtGO36hskrL2DzysJdj15EnkF nW+c8v9xqZrjbMzFt4/h/+4CecslgyFGzC0ifKKq6wN/PsXIyyW27ZTHHaA7fCKO6TxZ +RRsFCXyk7Gt8fXSTXnaCuL3DckqATx5nHD/r4GNA473qkOgrl/+Kok6/Ma+YecxwUsD t7O2yMr1375ox7xC6SQBE+VISlzfn+cYs4Fm2JMA/83NtrHHZbobQBYCOQgca6llxoLt 5Yejy7w8a/D+R4xdMPz3PGT+8GzC0JaA3S3iCxqvyHX5J/Gehk0AsYRrVKTA8RXh92ic kqVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=S8OuvnfZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si2089966pfi.28.2018.04.27.15.23.43; Fri, 27 Apr 2018 15:23:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=S8OuvnfZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759384AbeD0WWk (ORCPT + 99 others); Fri, 27 Apr 2018 18:22:40 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:33624 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753569AbeD0WWi (ORCPT ); Fri, 27 Apr 2018 18:22:38 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3RMLfpl103879; Fri, 27 Apr 2018 22:21:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : subject : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=ZzQLSlqB+2kP7yN2pGAA1dk8I1nQ2h3JBNpvs9DQ5Kg=; b=S8OuvnfZnMnvQzNaCVJmqBoWUlUllSvGn70L2uLVLy2gCIubBAt4eVDj7XSE+rsDLeJT ZN/uV1wPi9BfI2By3e70XOZQgj3+h2f4kvGo28aSgS9P65Wh2RBs5b10N3CEqhioStY/ sxkaZbK2rE6ProiO1AHPcuKVl3XexTB/dOqQ0Fi3xQUYBt1tCGTw/ON31HHSN1nPkzjk kcwTNdknuW3RxI1GHAAS5Cjf8HPTLHdOAGvhzJrc0AksulXLpWh4PNz1NgnWS1Os8v+l KdD4ZdAe2JF5IsK6RP15iV4+LzjtYVN9HENPc+tB3pIB3u2wCVAVvFb3DafbV2Gu05Ot MQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2hfvrc9av2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 22:21:41 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3RMLdIf003720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 22:21:39 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3RMLapb006215; Fri, 27 Apr 2018 22:21:36 GMT Received: from [192.168.1.67] (/94.61.137.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 27 Apr 2018 15:21:36 -0700 From: Joao Martins Subject: Re: [PATCH] [v3] x86: Convert x86_platform_ops to timespec64 To: Arnd Bergmann Cc: Thomas Gleixner , y2038@lists.linaro.org, Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jan Kiszka , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Boris Ostrovsky , Juergen Gross , "Rafael J. Wysocki" , Andy Shevchenko , Borislav Petkov , Andy Lutomirski , John Stultz , linux-kernel@vger.kernel.org, jailhouse-dev@googlegroups.com, kvm@vger.kernel.org, xen-devel@lists.xenproject.org References: <20180427201435.3194219-1-arnd@arndb.de> Message-ID: Date: Fri, 27 Apr 2018 23:21:29 +0100 MIME-Version: 1.0 In-Reply-To: <20180427201435.3194219-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8876 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804270208 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/27/2018 09:13 PM, Arnd Bergmann wrote: > diff --git a/arch/x86/kernel/pvclock.c b/arch/x86/kernel/pvclock.c > index 761f6af6efa5..637982efecd8 100644 > --- a/arch/x86/kernel/pvclock.c > +++ b/arch/x86/kernel/pvclock.c > @@ -123,28 +123,35 @@ u64 pvclock_clocksource_read(struct pvclock_vcpu_time_info *src) > > void pvclock_read_wallclock(struct pvclock_wall_clock *wall_clock, > struct pvclock_vcpu_time_info *vcpu_time, > - struct timespec *ts) > + struct timespec64 *ts) > { > u32 version; > u64 delta; > - struct timespec now; > + struct timespec64 now; > > /* get wallclock at system boot */ > do { > version = wall_clock->version; > rmb(); /* fetch version before time */ > + /* > + * Note: wall_clock->sec is a u32 value, so it can > + * only store dates between 1970 and 2106. To allow > + * times beyond that, we need to create a new hypercall > + * interface with an extended pvclock_wall_clock structure > + * like ARM has. > + */ > now.tv_sec = wall_clock->sec; IIUC the interface you're probably speaking about is common to both ARM and x86 on Xen[*] (since Xen 4.6) i.e. now.tv_sec = ((uint64_t)s->wc_sec_hi << 32) | s->wc_sec; s representing struct shared_info like on ARM (there's a 32-bit hole where wc_sec_hi is placed on x86_64/ARM). Except on x86 32-bit guests wc_sec_hi is located elsewhere. Joao [*] https://xenbits.xen.org/docs/4.6-testing/hypercall/x86_64/include,public,xen.h.html#incontents_startofday_shared