From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 533982B557 for ; Tue, 22 Aug 2023 16:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692723041; x=1724259041; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=v0vLJ0NibDdd3zgnrJFd3vlGqc4K3dLjD4nbgduTk9E=; b=C/UePnsT85SLGTWUUQyKldiITyIoU95AZmgsau4dojCYVxbBgCwKnK+Q HF7cczUnQWg31ifSJbuJPc2euh2b6l5Tyi3If/mYS7+1KnmzZo5MU4LLj c91rnxHIn42jUEj2IFuuYPuFh+xwIWc9yjago/o0C+8R/63Ln9hvY6+5u tWTn/zsiivnx2ASQbhvDw2L/teVD9Qrgi9ICn+d8PKuy3Ee/5JZnzZ34F AZFsfBJ4gbqiUL897FRf3phA+6t+X/Qhp1yDUYwxrubhislrvDdpAvJCP FK4l18ZslJETSVXodN4NbRITuaycZV2p/Fwc8jN+ObU1rx5OyrW8C4Ny6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="358924272" X-IronPort-AV: E=Sophos;i="6.01,193,1684825200"; d="scan'208";a="358924272" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2023 09:50:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="765820409" X-IronPort-AV: E=Sophos;i="6.01,193,1684825200"; d="scan'208";a="765820409" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 22 Aug 2023 09:50:37 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qYUaT-0000Lw-0M; Tue, 22 Aug 2023 16:50:37 +0000 Date: Wed, 23 Aug 2023 00:50:27 +0800 From: kernel test robot To: Hao Xiang , kvm@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, shannon.zhao@linux.alibaba.com, pbonzini@redhat.com, seanjc@google.com, linux-kernel@vger.kernel.org, Hao Xiang Subject: Re: [PATCH] kvm: x86: emulate MSR_PLATFORM_INFO msr bits Message-ID: <202308230059.Z4m5fuN7-lkp@intel.com> References: <1692588151-33716-1-git-send-email-hao.xiang@linux.alibaba.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1692588151-33716-1-git-send-email-hao.xiang@linux.alibaba.com> Hi Hao, kernel test robot noticed the following build errors: [auto build test ERROR on kvm/queue] [also build test ERROR on mst-vhost/linux-next tip/x86/core linus/master v6.5-rc7 next-20230822] [cannot apply to 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/Hao-Xiang/kvm-x86-emulate-MSR_PLATFORM_INFO-msr-bits/20230821-125755 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue patch link: https://lore.kernel.org/r/1692588151-33716-1-git-send-email-hao.xiang%40linux.alibaba.com patch subject: [PATCH] kvm: x86: emulate MSR_PLATFORM_INFO msr bits config: i386-randconfig-003-20230822 (https://download.01.org/0day-ci/archive/20230823/202308230059.Z4m5fuN7-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230823/202308230059.Z4m5fuN7-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/202308230059.Z4m5fuN7-lkp@intel.com/ All errors (new ones prefixed by >>): arch/x86/kvm/x86.c: In function 'kvm_get_msr_platform_info': >> arch/x86/kvm/x86.c:1695:31: error: 'MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO' undeclared (first use in this function); did you mean 'MSR_PLATFORM_INFO_MAX_NON_TURBO_LIM_RATIO'? 1695 | msr_platform_info &= (MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | MSR_PLATFORM_INFO_MAX_NON_TURBO_LIM_RATIO arch/x86/kvm/x86.c:1695:31: note: each undeclared identifier is reported only once for each function it appears in vim +1695 arch/x86/kvm/x86.c 1678 1679 1680 static u64 kvm_get_msr_platform_info(void) 1681 { 1682 u64 msr_platform_info = 0; 1683 1684 rdmsrl_safe(MSR_PLATFORM_INFO, &msr_platform_info); 1685 /* 1686 * MSR_PLATFORM_INFO bits: 1687 * bit 15:8, Maximum Non-Turbo Ratio (MAX_NON_TURBO_LIM_RATIO) 1688 * bit 31, CPUID Faulting Enabled (CPUID_FAULTING_EN) 1689 * bit 47:40, Maximum Efficiency Ratio (MAX_EFFICIENCY_RATIO) 1690 * 1691 * Emulate part msr bits, expose above msr info to guest, 1692 * to make sure guest can get correct turbo frequency info. 1693 */ 1694 > 1695 msr_platform_info &= (MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO | 1696 MSR_PLATFORM_INFO_MAX_EFFICIENCY_RATIO); 1697 msr_platform_info |= MSR_PLATFORM_INFO_CPUID_FAULT; 1698 1699 return msr_platform_info; 1700 } 1701 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki