From: kernel test robot <lkp@intel.com>
To: Hao Xiang <hao.xiang@linux.alibaba.com>, kvm@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
shannon.zhao@linux.alibaba.com, pbonzini@redhat.com,
seanjc@google.com, linux-kernel@vger.kernel.org,
Hao Xiang <hao.xiang@linux.alibaba.com>
Subject: Re: [PATCH] kvm: x86: emulate MSR_PLATFORM_INFO msr bits
Date: Wed, 23 Aug 2023 08:26:35 +0800 [thread overview]
Message-ID: <202308230803.qc3KTHx1-lkp@intel.com> (raw)
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-buildonly-randconfig-003-20230823 (https://download.01.org/0day-ci/archive/20230823/202308230803.qc3KTHx1-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230823/202308230803.qc3KTHx1-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308230803.qc3KTHx1-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kvm/x86.c:1695:24: error: use of undeclared identifier 'MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO'
msr_platform_info &= (MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO |
^
1 error generated.
vim +/MSR_PLATFORM_INFO_MAX_NON_TURBO_RATIO +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
next prev parent reply other threads:[~2023-08-23 0:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 3:22 [PATCH] kvm: x86: emulate MSR_PLATFORM_INFO msr bits Hao Xiang
2023-08-22 16:50 ` kernel test robot
2023-08-23 0:26 ` kernel test robot [this message]
2023-08-23 3:41 ` Xiaoyao Li
-- strict thread matches above, loose matches on Subject: below --
2023-08-21 3:26 Hao Xiang
2023-08-21 7:52 ` Chao Gao
2023-08-21 9:11 ` Hao Xiang
2023-08-21 10:44 ` Chao Gao
2023-08-21 11:44 ` Hao Xiang
2023-08-21 16:11 ` Sean Christopherson
2023-08-23 6:24 ` Xiaoyao Li
2023-08-23 14:31 ` Sean Christopherson
2023-08-25 3:27 ` Xiaoyao Li
2023-08-21 3:19 Hao Xiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308230803.qc3KTHx1-lkp@intel.com \
--to=lkp@intel.com \
--cc=hao.xiang@linux.alibaba.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=shannon.zhao@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.