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: 115823 Delivered-To: patch@linaro.org Received: by 10.80.163.170 with SMTP id s39csp1013368edb; Fri, 13 Oct 2017 11:38:11 -0700 (PDT) X-Google-Smtp-Source: AOwi7QA9ptNQKBeyTWe/9I9Pjs/8n2CNbbaAOI3EpKyhQA5ZeyTh8I/H45lQiWRLeVS8q7bCDfQp X-Received: by 10.84.240.137 with SMTP id z9mr2145157plk.114.1507919891103; Fri, 13 Oct 2017 11:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507919891; cv=none; d=google.com; s=arc-20160816; b=BaWpLqztf6JhLmoO/X7wJrpbCwibZPV8p5wXzpeJb5N1hdVlvFwnLCR06HtmnlpHke LGMh0g3zd/C1nd0Na1TaotYQie4Tg5laJGC5BvkQZ8FcyBU6jmBEJ29F2s2vHkKKoRMj MoXPFRjoAT5XGJKPOlLzA3op/KyU0q0UR0Xd4UYEV9t1kadoR/gXDd4kTLlDnMGtJWVK J2NgvH8n3Wr+Z5ttcdEOC00O2wdjh7nw4PeAqHBfBOyZUr9c/cRfgcaZyP4MZZ03UMqQ RoRhN9JAWmnjiHiGQ7ZaGF6dlQ/vpp9ayvaRExSp/QlRpN7rMMdnERZpMKc1g3He0i6P pc8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=4ag875eX+cABG276YrB8CxA5RdvdakEleAL7wKTE+Xc=; b=qZJvYqmqNR7oKT83X5VGG4IUTI6ieSMcFP3wtjANFJ3RIzXbqkd3aofeUE0AjAQpHE c9jzhwF3q7tTsLL7upgS6Fng8n/s+4cM98IRhCxmdgHSqel1BeEIHa7Ym2qBIB9tIS5u 4iqvJ7zlWjz1u4e5U+iH6Wbrp+E8K4GnzEQPvtLLUHYEmyDyUSphSr2zRT0sKCoxVVG/ Vxfl94fTDnLCzxOLQkevl1G0RtzdDSWydyddmyIBt7Z4EYOAYX+07B1VDDl4QY6R04Xs YJWtL1b4h0IGj31pOef4vt4EUO21VYkY90GY71LHDl8bTp0Fpydk3HzoXRAv66qNUOuY xzQw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si955125plb.359.2017.10.13.11.38.10; Fri, 13 Oct 2017 11:38:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753393AbdJMSiJ (ORCPT + 27 others); Fri, 13 Oct 2017 14:38:09 -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?b?UmFkaW0gS3LEjW3DocWZ?= , 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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;