Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4180484rdh; Fri, 29 Sep 2023 13:49:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkc17Hu3ZdWiRityuYxCabS4dJMgr9XRqoxz67alIqK2fxyZfdUoXuImOKEgKAKsGXqQF0 X-Received: by 2002:a05:6a00:4c87:b0:68f:f741:57a1 with SMTP id eb7-20020a056a004c8700b0068ff74157a1mr5552180pfb.7.1696020599078; Fri, 29 Sep 2023 13:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696020599; cv=none; d=google.com; s=arc-20160816; b=Q/P3+0H1aSxDnwEt+hHd1/NGiCvpNrt+xHE9PYNj2IBoQkUl4sXYe1KLnJsp45YrkZ js1N1utxuggvvRxGYNnN4cyX+K6LmjA66OYJK3DA7gkN8u3IqCAW8EUYYmhTEMJJOQ/S 3m4AR8+yND247HpwQFx+jigqPj+E3XGvQf2o1+2fOgpAs1LvCKOsHHnmU4utFTGDT4zq MIp5AwmTHPL6uzOXF7TbgMOzzAcjDA435+Wi6LBZ9CPHlvA7ye6EJVmBYawrhW8t3eQ4 JrZhMyXx4ogk47M+/wcKQ81DAFkdGX9V4Yw1YA2jwY/5376vu/JHyUmpYEFeZy18lWB6 +3Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QcTU3R+MyyW7iF6bsQgdjUOH6DyPW0Qlo7OnSUOHOq4=; fh=lLuX8PewwPXsNjr5cBRcGOIIf/Z3+3yCa89HzZr8Lfk=; b=Z2bL1p5QtMnLszMtf+oHcI5LzZP1IzT1dGip70e2nGxFv5Zw1NXXzn5bhMVNesO8xR 6EHclCZhsOAHPhMqS+0Aez1K8R8QzaUR/giosdCBd6wFPrp+5EVZfZdiWq2TW+8pVby1 kmKtRBd4aIQrqCSNFZ1mIB9iBQFjPQFq1y1rwJSlip+EGkyE7OCF8kWGqdQd34eIzlYf sA7sbzk8BBOScS4hURC7zMxUV2mRF0Xs02qaiSrLX13rMr5epXkBHBf40Njkp7qiJdLm SDyTRzB8e92hlqw8rZgVmrRQvLs7sh9VAzYyTmnBuRo0Owz6FubUXpRJNXKmush4xRFW mRZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BgTuBBQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w14-20020a63474e000000b00578e98dec9dsi21873313pgk.160.2023.09.29.13.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 13:49:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BgTuBBQ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4B6B08345297; Fri, 29 Sep 2023 01:20:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbjI2IUf (ORCPT + 99 others); Fri, 29 Sep 2023 04:20:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbjI2IUe (ORCPT ); Fri, 29 Sep 2023 04:20:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2511AC; Fri, 29 Sep 2023 01:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695975631; x=1727511631; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3Sbjr4bWWU8vPLpeQtrtcmY71cQMw2ZI0PYPYGnshE8=; b=BgTuBBQ7ikRnMPf7yJ4997Xb0F+SNknoCqL6m2GOkmyH+MugKpahyNj0 VVLpBlm9NNA24gM99tJmcUFYfMe2/cCQCJk3Orz0dmOfCWtxHCbRi1FX1 I4IPBmZiU+3rmiAg2rBLSXRI8qNzZuCaTwpLdVXqF31c7oic8iXeGhhE9 Vl1TIcG/2pezD6Z9CGGTvEPzgVDjUMXu4R7dO5iqk/YeuwrkQwqfsYEgg zoyEZ9aHR5PfMTedNFNXE2YydY173ygq7mIUZt8eIoKGdVVKsoqjN0Sv9 ai5cKLm7XoxTYghZdUcjvptR6G1C7cVS59nxkDS7+bI53rJ0GsO+x5ILI A==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="379521645" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="379521645" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 00:30:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="840199144" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="840199144" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2023 00:30:38 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qm7xM-0002aX-17; Fri, 29 Sep 2023 07:30:36 +0000 Date: Fri, 29 Sep 2023 15:30:21 +0800 From: kernel test robot To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH 3/3] KVM: x86/mmu: always take tdp_mmu_pages_lock Message-ID: <202309291557.Eq3JDvT6-lkp@intel.com> References: <20230928162959.1514661-4-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928162959.1514661-4-pbonzini@redhat.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 01:20:45 -0700 (PDT) Hi Paolo, kernel test robot noticed the following build warnings: [auto build test WARNING on kvm/queue] [also build test WARNING on linus/master v6.6-rc3 next-20230929] [cannot apply to mst-vhost/linux-next kvm/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Paolo-Bonzini/KVM-x86-mmu-remove-unnecessary-bool-shared-argument-from-functions/20230929-003259 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue patch link: https://lore.kernel.org/r/20230928162959.1514661-4-pbonzini%40redhat.com patch subject: [PATCH 3/3] KVM: x86/mmu: always take tdp_mmu_pages_lock config: x86_64-buildonly-randconfig-004-20230929 (https://download.01.org/0day-ci/archive/20230929/202309291557.Eq3JDvT6-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230929/202309291557.Eq3JDvT6-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309291557.Eq3JDvT6-lkp@intel.com/ All warnings (new ones prefixed by >>): >> arch/x86/kvm/mmu/tdp_mmu.c:289: warning: Excess function parameter 'shared' description in 'tdp_mmu_unlink_sp' vim +289 arch/x86/kvm/mmu/tdp_mmu.c 43a063cab325ee7 Yosry Ahmed 2022-08-23 278 a9442f594147f95 Ben Gardon 2021-02-02 279 /** c298a30c2821cb0 David Matlack 2022-01-19 280 * tdp_mmu_unlink_sp() - Remove a shadow page from the list of used pages a9442f594147f95 Ben Gardon 2021-02-02 281 * a9442f594147f95 Ben Gardon 2021-02-02 282 * @kvm: kvm instance a9442f594147f95 Ben Gardon 2021-02-02 283 * @sp: the page to be removed 9a77daacc87dee9 Ben Gardon 2021-02-02 284 * @shared: This operation may not be running under the exclusive use of 9a77daacc87dee9 Ben Gardon 2021-02-02 285 * the MMU lock and the operation must synchronize with other 9a77daacc87dee9 Ben Gardon 2021-02-02 286 * threads that might be adding or removing pages. a9442f594147f95 Ben Gardon 2021-02-02 287 */ 44f1ce87ebc1ca1 Paolo Bonzini 2023-09-28 288 static void tdp_mmu_unlink_sp(struct kvm *kvm, struct kvm_mmu_page *sp) a9442f594147f95 Ben Gardon 2021-02-02 @289 { 44f1ce87ebc1ca1 Paolo Bonzini 2023-09-28 290 lockdep_assert_held(&kvm->mmu_lock); 44f1ce87ebc1ca1 Paolo Bonzini 2023-09-28 291 43a063cab325ee7 Yosry Ahmed 2022-08-23 292 tdp_unaccount_mmu_page(kvm, sp); d25ceb9264364dc Sean Christopherson 2022-10-19 293 d25ceb9264364dc Sean Christopherson 2022-10-19 294 if (!sp->nx_huge_page_disallowed) d25ceb9264364dc Sean Christopherson 2022-10-19 295 return; d25ceb9264364dc Sean Christopherson 2022-10-19 296 9a77daacc87dee9 Ben Gardon 2021-02-02 297 spin_lock(&kvm->arch.tdp_mmu_pages_lock); 61f94478547bb4f Sean Christopherson 2022-10-19 298 sp->nx_huge_page_disallowed = false; 61f94478547bb4f Sean Christopherson 2022-10-19 299 untrack_possible_nx_huge_page(kvm, sp); 9a77daacc87dee9 Ben Gardon 2021-02-02 300 spin_unlock(&kvm->arch.tdp_mmu_pages_lock); a9442f594147f95 Ben Gardon 2021-02-02 301 } a9442f594147f95 Ben Gardon 2021-02-02 302 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki