From patchwork Fri Oct 13 18:36:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10005691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CC25960325 for ; Fri, 13 Oct 2017 18:38:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2FFA29138 for ; Fri, 13 Oct 2017 18:38:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7AF62913B; Fri, 13 Oct 2017 18:38:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5555529138 for ; Fri, 13 Oct 2017 18:38:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247AbdJMSiI (ORCPT ); Fri, 13 Oct 2017 14:38:08 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:58776 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753116AbdJMSiH (ORCPT ); Fri, 13 Oct 2017 14:38:07 -0400 Received: from wuerfel.lan ([46.223.139.202]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MJsOK-1e4Akq2XVE-0017qW; Fri, 13 Oct 2017 20:36:52 +0200 From: Arnd Bergmann To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Cc: y2038@lists.linaro.org, Arnd Bergmann , David Hildenbrand , Wanpeng Li , Tom Lendacky , Marcelo Tosatti , Denis Plotnikov , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: x86: use timespec64 for KVM_HC_CLOCK_PAIRING Date: Fri, 13 Oct 2017 20:36:34 +0200 Message-Id: <20171013183649.3698912-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:5SvicGCVeb7G2fsD22AViDAXP0aZnJOHL0sHU1mqjF7kkACnzQM wfySUAXWwpwqxDaGAn7BWm6OObkeJRAE3Mt0YGT3OfLrNSJS5UdnQj8PZdKI9NsoKCft9hX mzfj98jIkLoQXHC2jpSY0ikIibvFJ+iKvIwN7TF8/b60YLbhyXM4xuhKqxxaeTFjJaSnj3G FRTepNn50Ye6CcK5SKoGA== X-UI-Out-Filterresults: notjunk:1; V01:K0:cubdXGepyN4=:buRTzrzmlwiNn+zA3ymUWu S8h1id/XfRGNtYUH582reIl7ZdResdvtlTtT3Ch8boVAnCJcfO3h4SI2LLT7VpDy4xDt6D5et gedDzGZqPaTPn8kl9+fMknSaaQmHwBtK65T0DklOsZVgQRymNueFcLTAQdJ/wQIP71S+Rzbp2 UasfWtA8CcvG6EhoIFU1Jx6/y3OIc00Wl4p5syFA4VdTy3x4rwUp18GWv5AHsVJkX+KN70A3r 0PLC8nYsmpOeaENyXsLkT0dekToxCaqdwr1BeradTZ8OBeb2j9pSGK+TtqN6pC/JYtpeayqWr 7tS0GmvyWZ9EunRV7wd6RctvpJGDnZrAkIK0js3Wz2rAur39Plo1rW5ggB0X76Ag9xFt2cE2T k6JVkgRw+sUGW/k5KcjSTI+x+2L9w9aLWlY5/hpgWHoohsGtZNUYyjZRBprpMvflZituf6IuJ EuvZ/giwiSFsPCZ/PWQT4QI37wSh9u/9IEeg3n9ZZcQRmjPljduNjxaGxkh2cQmizvUxldzab Rut3GqAn8dY42p6ewnJCaEy2d5kcHutZ4iaJfNqkS/B1vpXzdWW+ZHQpiGS7gOXt1k+Myu547 qnDvpGMYdNosZfHwUHvprgRDgS9OWbqAaRKMg+DOPC0NJD0O70bmNxQj4sGiXZ8vWonyBQkCK jBAdz070z7V6ulEw57PIsfGwbi3WLiN29I49kyvhfVvsGRDCOMcczpjcNaTlSbYfH17oE7YSE gYEx1HM6l4cUzG9ZSthWNKiFZB5WiHYiVFiYeQ== Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The hypercall was added using a struct timespec based implementation, but we should not use timespec in new code. This changes it to timespec64. There is no functional change here since the implementation is only used in 64-bit kernels that use the same definition for timespec and timespec64. Fixes: 55dd00a73a51 ("KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall") Signed-off-by: Arnd Bergmann --- arch/x86/kvm/x86.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 03869eb7fcd6..4b81a373a7ec 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1632,7 +1632,7 @@ static int do_monotonic_boot(s64 *t, u64 *cycle_now) return mode; } -static int do_realtime(struct timespec *ts, u64 *cycle_now) +static int do_realtime(struct timespec64 *ts, u64 *cycle_now) { struct pvclock_gtod_data *gtod = &pvclock_gtod_data; unsigned long seq; @@ -1665,7 +1665,7 @@ static bool kvm_get_time_and_clockread(s64 *kernel_ns, u64 *cycle_now) } /* returns true if host is using tsc clocksource */ -static bool kvm_get_walltime_and_clockread(struct timespec *ts, +static bool kvm_get_walltime_and_clockread(struct timespec64 *ts, u64 *cycle_now) { /* checked again under seqlock below */ @@ -6210,7 +6210,7 @@ static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr, unsigned long clock_type) { struct kvm_clock_pairing clock_pairing; - struct timespec ts; + struct timespec64 ts; u64 cycle; int ret;