Received: by 10.223.164.202 with SMTP id h10csp989842wrb; Sun, 26 Nov 2017 17:27:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMYKbv4CTP4Om7k5+FYPKFJtTwtuee2Rl/3UzXys7yr8hrQ+cU5WtzW1F4NT4ee7+O2Nn6nk X-Received: by 10.101.101.211 with SMTP id y19mr26557825pgv.191.1511746041103; Sun, 26 Nov 2017 17:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511746041; cv=none; d=google.com; s=arc-20160816; b=0176QrhdI4MhVdcpYPvpyMRwdRazDSRGMtZK9zh7oBEjO1inrgzZxKmdfWjf6PltKU l5bZmd6FtV+PBVTYgqyIyIOoq7tNcuGrqC42lR91O/z7P6h+bC6vdo3e+lbbfqEvbgEk zSpiiKXXvXu+0UbcGv8GnZZeCs0nakpR+k/I17y8Z1JfFYKsdEGG/wbG4cbCA9YjxhZf J3hVoSJE6QUWZrT76i/WPoiYV9gmBOLP9M7WTTU5ZhhHjViNZw+CEbhRxtmJA+Ot/3NC qAOV0ro85lSmaBLEYQ42mb+zQiuV/0s5MO7c/pRlhpl4vl6xFCMS2yOuwa4E1CfvOkRy RTGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=PBFwCMr7+wCvpr2cjhK+uT5W1uRRRuxjB4TMjQtCSyg=; b=Vmosyc/5ZAvDWVCa6EqZOlg3y0Ve5ptxDGP36fAG46mag9G8T9L+y3Fsq7hr/JQdfR qCm3XTrJeavSaNo9swpAsSRPidhQ5OVl+WvRu6sUPXuafRRGHNTggFYW0SdtNaalpmuX w6GtrUF1zF6Yaq4npYqGoG2WJSRgovtNLBwFp2KGngEkWzx/Z+JdhtlDv/JF3KGhhmTx D7b2bYvblUH1H0os8rM5g1k8k+sd1sRoGl++N9Nq/uTr71khUVwTQFmAYcj3R9OhrBdT ZVeoXYPWxodnUDpEIyl+eOIKYJ3whKT6Jb+I2+Wrm+qiuikVEhbyAhiyWuvxjaZnMnOh MbDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hq4/SMUf; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si3075632plk.217.2017.11.26.17.27.09; Sun, 26 Nov 2017 17:27:21 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=hq4/SMUf; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752361AbdK0B0c (ORCPT + 77 others); Sun, 26 Nov 2017 20:26:32 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:37713 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752214AbdK0B0b (ORCPT ); Sun, 26 Nov 2017 20:26:31 -0500 Received: by mail-ot0-f193.google.com with SMTP id s4so22892408ote.4; Sun, 26 Nov 2017 17:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PBFwCMr7+wCvpr2cjhK+uT5W1uRRRuxjB4TMjQtCSyg=; b=hq4/SMUf1dzy7H+EewTxvzPGMYfOI5RE6LqS/7tIqCPSWnprWrTHDKgqxJc/PlCHjM nzrFt1nompb/pf83Mefua6kf8LdPNhzUvrk5yypr35rIWiEK8nBHeodUWPV6D6F6GqfT ypxm8YR2folpTJVaD7RDdHEDtiB/dyz4XOotnjqR1XixzAs6E3kQLLPXJBD7sdE6gMan CY+LE5c00yJ3Xdu5Qet3fDUOH0lro9Jmya/zV5Ed/PVCxQmMOPNlfnApaWlZwLh6Tmim NoodFe6RoYDTOZun3yySyVmNhFX91O0w0708L1Y4iMBt/+kKzWYY2zAoEqpJ9BILZVIp 0JzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PBFwCMr7+wCvpr2cjhK+uT5W1uRRRuxjB4TMjQtCSyg=; b=G+KHl3gNhbSIKpnL2WL0VHK6MFlZ3XGO7HljFtwaJ61TxoHnN8jSqNV/cod/1cEuMX y8ib2X6USIfMkkEDxSzRf8aTOlkSEKX5qaywLipAPtzw/yXwuMkkBC9hwpMLsnQWAauV Mxv4J1EuIRpjjBIJFM1uR+AxqIlwZhy+bZ6NSzsKxwwQiGZvt27aeWiCi98lpFg/bL5m vrSSzapcMToJc5+D6FDfaqQmtN+8qyFtKncD03ksbiNIYvF9ljjCQnd+/KQHZp/EA/nE Tqru3r7qTu5btK7YEWLdw/8vRkqImV67Q182+HGhGfe2hq3/BZBaPob753m4WtobCyDZ IMrg== X-Gm-Message-State: AJaThX6jNxKRjmS1RDETbnrD94zRyLn++ry/YKs3ZJhZAZP40Cy8YBlb o2k7bwXOuNa4wycnrTgFiUw/DcOudqALfUKfD3E= X-Received: by 10.157.54.37 with SMTP id w34mr9636494otb.201.1511745990296; Sun, 26 Nov 2017 17:26:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.209.8 with HTTP; Sun, 26 Nov 2017 17:26:29 -0800 (PST) In-Reply-To: <201711251029.cPBssbpw%fengguang.wu@intel.com> References: <1509970640-18679-1-git-send-email-wanpeng.li@hotmail.com> <201711251029.cPBssbpw%fengguang.wu@intel.com> From: Wanpeng Li Date: Mon, 27 Nov 2017 09:26:29 +0800 Message-ID: Subject: Re: [PATCH v2] KVM: X86: Fix softlockup when get the current kvmclock timestamp To: kbuild test robot Cc: kbuild-all@01.org, "linux-kernel@vger.kernel.org" , kvm , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Wanpeng Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-25 11:14 GMT+08:00 kbuild test robot : > Hi, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on kvm/linux-next] > [also build test WARNING on v4.14 next-20171124] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] Don't worry, the version which has already been merged doesn't have this issue. Regards, Wanpeng Li > > url: https://github.com/0day-ci/linux/commits/Wanpeng-Li/KVM-X86-Fix-softlockup-when-get-the-current-kvmclock-timestamp/20171109-030841 > base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next > config: i386-allyesconfig (attached as .config) > compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > Note: it may well be a FALSE warning. FWIW you are at least aware of it now. > http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings > > All warnings (new ones prefixed by >>): > > In file included from arch/x86/kvm/x86.h:7:0, > from arch/x86/kvm/x86.c:28: > arch/x86/kvm/x86.c: In function 'get_kvmclock_ns': >>> arch/x86/include/asm/pvclock.h:93:15: warning: '*((void *)&hv_clock+28)' may be used uninitialized in this function [-Wmaybe-uninitialized] > u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > src->tsc_shift); > ~~~~~~~~~~~~~~~ > arch/x86/kvm/x86.c:1785:32: note: '*((void *)&hv_clock+28)' was declared here > struct pvclock_vcpu_time_info hv_clock; > ^~~~~~~~ > In file included from arch/x86/kvm/x86.h:7:0, > from arch/x86/kvm/x86.c:28: > arch/x86/include/asm/pvclock.h:65:2: warning: '*((void *)&hv_clock+24)' may be used uninitialized in this function [-Wmaybe-uninitialized] > __asm__ ( > ^~~~~~~ > arch/x86/kvm/x86.c:1785:32: note: '*((void *)&hv_clock+24)' was declared here > struct pvclock_vcpu_time_info hv_clock; > ^~~~~~~~ > -- > In file included from arch/x86//kvm/x86.h:7:0, > from arch/x86//kvm/x86.c:28: > arch/x86//kvm/x86.c: In function 'get_kvmclock_ns': >>> arch/x86/include/asm/pvclock.h:93:15: warning: '*((void *)&hv_clock+28)' may be used uninitialized in this function [-Wmaybe-uninitialized] > u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > src->tsc_shift); > ~~~~~~~~~~~~~~~ > arch/x86//kvm/x86.c:1785:32: note: '*((void *)&hv_clock+28)' was declared here > struct pvclock_vcpu_time_info hv_clock; > ^~~~~~~~ > In file included from arch/x86//kvm/x86.h:7:0, > from arch/x86//kvm/x86.c:28: > arch/x86/include/asm/pvclock.h:65:2: warning: '*((void *)&hv_clock+24)' may be used uninitialized in this function [-Wmaybe-uninitialized] > __asm__ ( > ^~~~~~~ > arch/x86//kvm/x86.c:1785:32: note: '*((void *)&hv_clock+24)' was declared here > struct pvclock_vcpu_time_info hv_clock; > ^~~~~~~~ > > vim +93 arch/x86/include/asm/pvclock.h > > 347bb4448 Zachary Amsden 2010-08-19 88 > dce2db0a3 Marcelo Tosatti 2012-11-27 89 static __always_inline > a5a1d1c29 Thomas Gleixner 2016-12-21 90 u64 __pvclock_read_cycles(const struct pvclock_vcpu_time_info *src, u64 tsc) > dce2db0a3 Marcelo Tosatti 2012-11-27 91 { > 108b249c4 Paolo Bonzini 2016-09-01 92 u64 delta = tsc - src->tsc_timestamp; > a5a1d1c29 Thomas Gleixner 2016-12-21 @93 u64 offset = pvclock_scale_delta(delta, src->tsc_to_system_mul, > f7550d076 Minfei Huang 2016-05-27 94 src->tsc_shift); > 3aed64f6d Paolo Bonzini 2016-06-09 95 return src->system_time + offset; > dce2db0a3 Marcelo Tosatti 2012-11-27 96 } > dce2db0a3 Marcelo Tosatti 2012-11-27 97 > > :::::: The code at line 93 was first introduced by commit > :::::: a5a1d1c2914b5316924c7893eb683a5420ebd3be clocksource: Use a plain u64 instead of cycle_t > > :::::: TO: Thomas Gleixner > :::::: CC: Thomas Gleixner > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation From 1585006403729256937@xxx Sat Nov 25 03:18:18 +0000 2017 X-GM-THRID: 1583276151146767154 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread