Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp916178lqa; Sun, 28 Apr 2024 09:38:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUG+hgp+KPg+EzR2XE/cb6dgugfxxdAJZphYw1eBTBsanB3RsI06SPpHeI14NFNGb28+KFDTIol96B9OG1eekwzNV/wwJfwCe+x3FAh1w== X-Google-Smtp-Source: AGHT+IGKz4BLv7kHHbDpkm1WgY9fNHWcEJ2+9EaHikZPAiw8EqVFyKGAm8r+ON889NUKQRdKXwQa X-Received: by 2002:ad4:5c8d:0:b0:6a0:cba8:68c5 with SMTP id o13-20020ad45c8d000000b006a0cba868c5mr1680219qvh.60.1714322331046; Sun, 28 Apr 2024 09:38:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714322331; cv=pass; d=google.com; s=arc-20160816; b=V+sbzwds+akCtUX47lvru3s2wZ3EOjtx2EVnvogtZdTPPoEj4BIVMtxhXNZljbrvNu Btfbjb5qa6kPLhHOSvNOXlVYdexUczKp0Php3zCFuqxE5dPRKIxllZNOLyK0EBTmwfP/ gAva8NYpqGgnj9Jao41dqRVfpLZPdxSewSBFFWIo8D814dc6LnlMItuvGG6vNAqYVgU3 Rcby++cWdy5qg0sIRN+ieDAFM0TDVH95a7UDPmmUdSRC6Ai78K9cIAfRv6mOD5rqAQH/ fTqNvX90UH7vWN+SXxVeburBEGo59n6atj1v+yuSk1h30eZYnMX85PfAtunsMX7KzpeS LegA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=e86NdPqjUw/OJKlvYGjbueICrYgaK5a7jFkBPozax+s=; fh=52ldDVYucvSgs2Ahdukas8KvaMZQtNAMNY+n5rQfU4s=; b=O1S+LPSdaTzD4kx+yO62Ynk/UaIE2fJOmmNo3+XRdpKWXKf98PbIWgT6txDli33PEz syAFfynZajumEGobDjVEwFz8GX8SkrcMssMUiJctnKkBQcrtXfHYpdSFKvp4hpEbawSf 2ANcBWOec4OaHi5Bb3WGzxmgjKoh/go48Kfo0e2jQbWjuCAOkRZ4Ar0l5TfS3G24SVK6 S75NSfXVHlbB01so+0KqSpp3NEyJjwABEJUpzi+DFr6iSuONkWj8Yu4KsuhlUVXNw0sx b/YrJdTHwfm/BuwcQj+Ilh28f5fr+9MTPu/56Vh+Sy43WOGysRwCIdLdCE97Jhh8cDoT sMLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SNQp9fCz; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161495-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jz4-20020a0562140e6400b006a0aaa339e0si6406154qvb.537.2024.04.28.09.38.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 09:38:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161495-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SNQp9fCz; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-161495-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C0DE31C20910 for ; Sun, 28 Apr 2024 16:38:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A842471B3D; Sun, 28 Apr 2024 16:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SNQp9fCz" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48F8A433DA; Sun, 28 Apr 2024 16:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714322322; cv=none; b=aUCoUFcwsIUdcOBTNLTIyo+aj7dw5MCUwmWBN1phG0jseBM2UZ2duqzLJmcWV9iBZsX1jFDY3mx8HHcPzeGJ5rXkXJdwq6X6nTlzPrVum9sVvBBl0NICLXJlbc/n2Bfkog3Ttiy/vdvySngb25H35kHBKJOxypSyW8AepabZH7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714322322; c=relaxed/simple; bh=WSj7lu2b4X/UglnfYC8ObjrLUSF53g3nGeBhb8ymiJQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=proUnxhE+9Y6Wghe5VIpSYcwrlwoEfcv3zbfLbBhZTEeh1ZZL0fTT0WhrNhyQDAc9ODQ4vyBcu99qvjuXuzSWV2T7cBgYl6Jo1IMbO3Aj34SCnjx/Ya0BVawShPLcoU6B+VvbvKWWvS1FLWJypRa4dcZCCfNaoZOI0cQJz0DmjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SNQp9fCz; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714322321; x=1745858321; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WSj7lu2b4X/UglnfYC8ObjrLUSF53g3nGeBhb8ymiJQ=; b=SNQp9fCzcERy5ol1k3spTGbe5+wk+UTIIatQtKQQVoYm16CN7Mlv/go2 pYcV0HjWP/N3P2YOySp0KSJ62QzYp6NhEkTNQNDQuZi7ZUfOEUagEzNx5 wJ4HueNxHIDvVJWmGz8e/4O65FsdutV+WtGLskfUcnzzn6A6OuwPH9oGK 8q6vdFnTtSNDwOPyZXaz3t0ffhUXsQmnayLxkmAj0YpAs0/xugoNpZ8tK vJ6ARhadtJTP0q9S0BjEmV3ZI+85lWhr50eZSL81+nsee8fvY0JnHZm2J VRc8CmXIshjzbPrssc+SQbtY6kswpuEHPn2MP8AwEbOCyi8/l5k2aXVIF g==; X-CSE-ConnectionGUID: oiYNMPxySYed0r4k6xcZ6g== X-CSE-MsgGUID: lhKnAcIcQHa0nxSdNiSf1A== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="27508324" X-IronPort-AV: E=Sophos;i="6.07,237,1708416000"; d="scan'208";a="27508324" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 09:38:40 -0700 X-CSE-ConnectionGUID: 1lt0aqshR62GFUHxtdZWqw== X-CSE-MsgGUID: CKEGUDIXSTuDOL2KFztXMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,237,1708416000"; d="scan'208";a="26522158" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 28 Apr 2024 09:38:38 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s17Xv-0006Ue-1C; Sun, 28 Apr 2024 16:38:35 +0000 Date: Mon, 29 Apr 2024 00:38:10 +0800 From: kernel test robot To: Bibo Mao , Huacai Chen , Tianrui Zhao , Juergen Gross , Paolo Bonzini , Jonathan Corbet Cc: oe-kbuild-all@lists.linux.dev, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, kvm@vger.kernel.org Subject: Re: [PATCH v8 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor Message-ID: <202404290016.T9p5GhVr-lkp@intel.com> References: <20240428100518.1642324-4-maobibo@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240428100518.1642324-4-maobibo@loongson.cn> Hi Bibo, kernel test robot noticed the following build warnings: [auto build test WARNING on 5eb4573ea63d0c83bf58fb7c243fc2c2b6966c02] url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-smp-Refine-some-ipi-functions-on-LoongArch-platform/20240428-180850 base: 5eb4573ea63d0c83bf58fb7c243fc2c2b6966c02 patch link: https://lore.kernel.org/r/20240428100518.1642324-4-maobibo%40loongson.cn patch subject: [PATCH v8 3/6] LoongArch: KVM: Add cpucfg area for kvm hypervisor config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240429/202404290016.T9p5GhVr-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240429/202404290016.T9p5GhVr-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/202404290016.T9p5GhVr-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/loongarch/kvm/exit.c: In function 'kvm_emu_cpucfg': >> arch/loongarch/kvm/exit.c:213:23: warning: variable 'plv' set but not used [-Wunused-but-set-variable] 213 | unsigned long plv; | ^~~ vim +/plv +213 arch/loongarch/kvm/exit.c 208 209 static int kvm_emu_cpucfg(struct kvm_vcpu *vcpu, larch_inst inst) 210 { 211 int rd, rj; 212 unsigned int index; > 213 unsigned long plv; 214 215 rd = inst.reg2_format.rd; 216 rj = inst.reg2_format.rj; 217 ++vcpu->stat.cpucfg_exits; 218 index = vcpu->arch.gprs[rj]; 219 220 /* 221 * By LoongArch Reference Manual 2.2.10.5 222 * Return value is 0 for undefined cpucfg index 223 * 224 * Disable preemption since hw gcsr is accessed 225 */ 226 preempt_disable(); 227 plv = kvm_read_hw_gcsr(LOONGARCH_CSR_CRMD) >> CSR_CRMD_PLV_SHIFT; 228 switch (index) { 229 case 0 ... (KVM_MAX_CPUCFG_REGS - 1): 230 vcpu->arch.gprs[rd] = vcpu->arch.cpucfg[index]; 231 break; 232 case CPUCFG_KVM_SIG: 233 /* Cpucfg emulation between 0x40000000 -- 0x400000ff */ 234 vcpu->arch.gprs[rd] = *(unsigned int *)KVM_SIGNATURE; 235 break; 236 default: 237 vcpu->arch.gprs[rd] = 0; 238 break; 239 } 240 241 preempt_enable(); 242 return EMULATE_DONE; 243 } 244 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki