Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp102386lfu; Thu, 7 Apr 2022 22:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzknAiEVWcVf4Z7c78qqwXpc5/CVYqLcsFGGwavinJcjRq5glwjlrnITCTbaALDpMJ4JFSP X-Received: by 2002:a17:902:ce0a:b0:156:72e2:f191 with SMTP id k10-20020a170902ce0a00b0015672e2f191mr16997070plg.76.1649394499249; Thu, 07 Apr 2022 22:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649394499; cv=none; d=google.com; s=arc-20160816; b=PpaMUAYOilftXzlpUzXya8G67xcHZ10qnOr4zVnHQ0bISSPB7QkQbYeKnsXHJWGE97 H6tMgXZCbvXlqidVRDnr8T2GfMwTDgwuDGLgGzEii0NHQiT5bJTLwLA9CKP0T2wla1Hd I8I2foBdY6O3ZNKMU/LCOGh1cx71AnKqVp4TBQMGLwTetvEV13JPXFUI8KI+tuwOq+B8 OCgw7oo/ckuiIgUpZsg/LRDhCbHbi38KWb5/30AN1o09VhEKXQM1aTLrza/ydYvKEcJq BJpR5dUJkBSsvn9AcdKSW462SWk2gZXcWIVJW2DeRuuV5XuCmSfu5yo2p8CBAl2gC4OY fnyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UWcADamXqzyknhvfzqRgQ0po7gG+d1k008+2tleMZhY=; b=lqeMlEyeU9U9nG1qT6rxliH37n8pFySUVwgLrhO/bXnN+VyFja9RM32GCz6tDTl+yI KDkfgC+kA0VlvoeC0wAT3E9GwMJ6bQutiZJviUAstDH1qeeVuQAaf1xwD2xj9LP0rq9I HufaJqfA9hiVnbGYGXwMbkMg89K2PaMQl2aWKA7AnZ4rHsqBG5Vm5KaJBWA/1rTqjNZR ius1rgkWqSLZoABHu/p4iR4Adc1Z+uK8LWx/GtI0ZsngoLddnreuuCMaFjJtG0FATG3b 2OMLQ0tKF1CuubDVdxINxowpiHZ+oe2Lk0Ebfv3zaPXz4dL3xmaiiRJtKGgHbhP9/+jZ 6fPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SQZjcsHe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v20-20020a631514000000b003816043f0e1si278112pgl.726.2022.04.07.22.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 22:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SQZjcsHe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8F9DBECB19; Thu, 7 Apr 2022 21:34:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234288AbiDHEg2 (ORCPT + 99 others); Fri, 8 Apr 2022 00:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbiDHEgZ (ORCPT ); Fri, 8 Apr 2022 00:36:25 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D352EE72A6; Thu, 7 Apr 2022 21:34:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649392462; x=1680928462; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5tej6b9o6dwvek3pEU2iipjiMORsaX8hNr5dSwFtXG4=; b=SQZjcsHeyhvWO/UmrGJHi6SromN6k1zz8OiSec1R2DKNoTLsRmGOpGcH CwdYb9z0C999ODNw7VzsOf9e7T2rtj50sIuPYfSlVWUmKiGFpi0iGqooc 2xrNBJFf53ovLIL6mRJPcQYWWaKIzzU5sEMSBDLuTUxuQS6Pdm0wLrrJ3 HFb7rU6ANA2YY0Kn5QvwCuaKt1ChRiivb+yKCTtZ3RyCw5/2n+Og4608e UtSpCPkU4y7Umegik9/EHomkLNPvlTz/jdbTc5uqL/jb9+6BGgKovY3t3 z6THG6lJbrJS96NCd0LYboBuQTwb//rMetAAbXdnumjGenbgc1eK8M1QG g==; X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="347947537" X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="347947537" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 21:34:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="506424579" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 07 Apr 2022 21:34:20 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1ncgKB-00062B-9B; Fri, 08 Apr 2022 04:34:19 +0000 Date: Fri, 8 Apr 2022 12:34:12 +0800 From: kernel test robot To: Peter Gonda , kvm@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Peter Gonda , Sean Christopherson , Paolo Bonzini , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4.1] KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES Message-ID: <202204081255.SUNyj4S3-lkp@intel.com> References: <20220407210233.782250-1-pgonda@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407210233.782250-1-pgonda@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Hi Peter, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/master] [also build test ERROR on v5.18-rc1 next-20220407] [cannot apply to v4.1] [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] url: https://github.com/intel-lab-lkp/linux/commits/Peter-Gonda/KVM-SEV-Add-KVM_EXIT_SHUTDOWN-metadata-for-SEV-ES/20220408-050628 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git master config: arm64-randconfig-r035-20220408 (https://download.01.org/0day-ci/archive/20220408/202204081255.SUNyj4S3-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c29a51b3a257908aebc01cd7c4655665db317d66) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/3b310e5891d172b59042783c128f6efcf5bf6198 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Peter-Gonda/KVM-SEV-Add-KVM_EXIT_SHUTDOWN-metadata-for-SEV-ES/20220408-050628 git checkout 3b310e5891d172b59042783c128f6efcf5bf6198 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/arm64/kvm/psci.c:184:26: error: no member named 'flags' in 'struct kvm_run::(unnamed at include/uapi/linux/kvm.h:443:3)' vcpu->run->system_event.flags = flags; ~~~~~~~~~~~~~~~~~~~~~~~ ^ 1 error generated. vim +184 arch/arm64/kvm/psci.c e6bc13c8a70eab arch/arm/kvm/psci.c Anup Patel 2014-04-29 163 34739fd95fab3a arch/arm64/kvm/psci.c Will Deacon 2022-02-21 164 static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type, u64 flags) 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 165 { 46808a4cb89708 arch/arm64/kvm/psci.c Marc Zyngier 2021-11-16 166 unsigned long i; cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 167 struct kvm_vcpu *tmp; cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 168 cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 169 /* cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 170 * The KVM ABI specifies that a system event exit may call KVM_RUN cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 171 * again and may perform shutdown/reboot at a later time that when the cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 172 * actual request is made. Since we are implementing PSCI and a cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 173 * caller of PSCI reboot and shutdown expects that the system shuts cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 174 * down or reboots immediately, let's make sure that VCPUs are not run cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 175 * after this call is handled and before the VCPUs have been cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 176 * re-initialized. cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 177 */ cc9b43f99d5ff4 virt/kvm/arm/psci.c Andrew Jones 2017-06-04 178 kvm_for_each_vcpu(i, tmp, vcpu->kvm) 3781528e3045e7 arch/arm/kvm/psci.c Eric Auger 2015-09-25 179 tmp->arch.power_off = true; 7b244e2be654d9 virt/kvm/arm/psci.c Andrew Jones 2017-06-04 180 kvm_make_all_cpus_request(vcpu->kvm, KVM_REQ_SLEEP); cf5d318865e25f arch/arm/kvm/psci.c Christoffer Dall 2014-10-16 181 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 182 memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event)); 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 183 vcpu->run->system_event.type = type; 34739fd95fab3a arch/arm64/kvm/psci.c Will Deacon 2022-02-21 @184 vcpu->run->system_event.flags = flags; 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 185 vcpu->run->exit_reason = KVM_EXIT_SYSTEM_EVENT; 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 186 } 4b1238269ed340 arch/arm/kvm/psci.c Anup Patel 2014-04-29 187 -- 0-DAY CI Kernel Test Service https://01.org/lkp