Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754139AbbKLT21 (ORCPT ); Thu, 12 Nov 2015 14:28:27 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:56535 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752689AbbKLT20 (ORCPT ); Thu, 12 Nov 2015 14:28:26 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, konrad.wilk@oracle.com, linux-kernel@vger.kernel.org, david.vrabel@citrix.com Subject: Re: [PATCH v3 3/6] xen: introduce XENPF_settime64 Date: Thu, 12 Nov 2015 20:27:49 +0100 Message-ID: <9604059.Dn94ENEdgP@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5644C97F.7070502@oracle.com> References: <5644C97F.7070502@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:n5/+z2hwh1woJAe3/CVx9Gj92KT4DDYZpN9D5jP4ocHIkWl88Bl zqJn6h/D4s8PXDKrC2giszdhQPcJ6X9HCZjJRBj45024SCjI1/CeqIVh0S4yukejKeiL9re BvFa4ghBsgxVhovLLqPcbHW6h9yVZyGVMCdU0L37BFneIwAuegPNBnKuheqgDGSVcPyhpQP 7Qz3m9QKbv53nPYW5bw+A== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ylf2cViVm3I=:EFNdWM+k0Q109xRVYGhE+n 3mJkD6RyRB+ybZwPFJ499iWHAK4sVRWhjSeD6hvYFpLfrSTHpQHkewcamZgaowP2mdb8bKRny yyzDc2LjMI2JYsgOYYHabBrvg1BDoqG0MD2EJWirvhxbOqNK2B6EBbrSLMTJ8icDmJ1ei5DQX PFopiI24M0vtjeRNEDnAaZPZ4ClISt7R5fw4WJKyk5SgOn21u9SVJf9C5Ofc2sLgUkYrW1/f7 4NzU/Cq6KC1zpXIvXoDeHZCQjgO3JnTGS9LwuJaBof8wEwbUCOEyr5+RltgGN5OjUP8MRv5GX 6PJFTiHGb3wPPpx8AdOWi1QOIDmh9F8Knp5qml3B4botaeb6rAOp51qQbRs//RhXZ/p4M9N28 csFzar/tr7Jivoz2CgnqBED8BfU2JPLBr5Ucrme5qxwYUiKRyf6DIvy6LxveLEz9oYxMxIRTV ISsz+GCHDoekcUByaNHOuS5ns8OMw+bOHepibnE2GQd7QjQTx32NEB+1sWeXdJJt6rpdZeSQU IvouMWUtTzZSg8cxSDsK7FOi6/ZglcYYu3zktu/AYeNWOAO3AJKBIyUgry6tpx4HdJ1NSsFue oRxJBiZR2PKQ/REzcBmmGR/fFwT4yyTUOx2nZhEsHRg8VtxX7aW0gvF2Uxfp5XV+n3DPN19MI /4CD0M5o8T3iRzIF0lOmQmsdt7awlr8U2hnICRrSVWeUwF6jXxXVXYhmCZxiQPPPUrIGut2it JTGrP5J3WD5+C5q8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1618 Lines: 35 On Thursday 12 November 2015 12:16:47 Boris Ostrovsky wrote: > >>> diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c > >>> index 663c2ea..3bbd377 100644 > >>> --- a/arch/x86/xen/time.c > >>> +++ b/arch/x86/xen/time.c > >>> @@ -134,10 +134,10 @@ static int xen_pvclock_gtod_notify(struct > >>> notifier_block *nb, > >>> if (!was_set && timespec_compare(&now, &next_sync) < 0) > >>> return NOTIFY_OK; > >>> - op.cmd = XENPF_settime; > >>> - op.u.settime.secs = now.tv_sec; > >>> - op.u.settime.nsecs = now.tv_nsec; > >>> - op.u.settime.system_time = xen_clocksource_read(); > >>> + op.cmd = XENPF_settime32; > >>> + op.u.settime32.secs = now.tv_sec; > >>> + op.u.settime32.nsecs = now.tv_nsec; > >>> + op.u.settime32.system_time = xen_clocksource_read(); > >> Can/should we switch to time64 here? (This would require a couple more changes > >> but they would all be local to this routine). > > I can do that, but it should be a separate patch. I'll queue it at the > > end of the series. > > Didn't Arnd just say that something needs to be done in the hypervisor > for that to work? Or did I misunderstood him? What I meant is that we need to do both sides in order to actually use 64-bit times, but the patches are otherwise independent of one another because a change to either side is not allowed to break the other. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/