From: kernel test robot <lkp@intel.com>
To: 18341265598@163.com, Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>
Cc: oe-kbuild-all@lists.linux.dev, kvm@vger.kernel.org,
linux-kernel@vger.kernel.org,
wei xiaoqiong <weixq1@chinatelecom.cn>,
Huaitong Han <hanht2@chinatelecom.cn>,
"zhaoge.zhang" <zhangzg12@chinatelecom.cn>
Subject: Re: [PATCH] vmx/nested: Set the SGX feature flag only when hardware supported.
Date: Sun, 29 Mar 2026 17:05:06 +0800 [thread overview]
Message-ID: <202603291639.FHVs3bEt-lkp@intel.com> (raw)
In-Reply-To: <1774322860-25106-1-git-send-email-18341265598@163.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on kvm/queue]
[also build test WARNING on kvm/next linus/master v7.0-rc5 next-20260327]
[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/18341265598-163-com/vmx-nested-Set-the-SGX-feature-flag-only-when-hardware-supported/20260329-093645
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link: https://lore.kernel.org/r/1774322860-25106-1-git-send-email-18341265598%40163.com
patch subject: [PATCH] vmx/nested: Set the SGX feature flag only when hardware supported.
config: i386-randconfig-012-20260329 (https://download.01.org/0day-ci/archive/20260329/202603291639.FHVs3bEt-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.4.0-5) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260329/202603291639.FHVs3bEt-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/202603291639.FHVs3bEt-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kvm/vmx/hyperv.h:7,
from arch/x86/kvm/vmx/nested.h:6,
from arch/x86/kvm/vmx/pmu_intel.c:21:
>> arch/x86/kvm/vmx/vmx.h:347:13: warning: 'cpu_has_sgx' defined but not used [-Wunused-function]
347 | static bool cpu_has_sgx(void)
| ^~~~~~~~~~~
vim +/cpu_has_sgx +347 arch/x86/kvm/vmx/vmx.h
340
341 /*
342 * There is no X86_FEATURE for SGX yet, but anyway we need to query CPUID
343 * directly instead of going through cpu_has(), to ensure KVM is trapping
344 * ENCLS whenever it's supported in hardware. It does not matter whether
345 * the host OS supports or has enabled SGX.
346 */
> 347 static bool cpu_has_sgx(void)
348 {
349 return cpuid_eax(0) >= 0x12 && (cpuid_eax(0x12) & BIT(0));
350 }
351
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-03-29 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 3:27 [PATCH] vmx/nested: Set the SGX feature flag only when hardware supported 18341265598
2026-03-24 10:11 ` Huang, Kai
2026-03-31 16:30 ` Sean Christopherson
2026-03-31 21:07 ` Huang, Kai
2026-03-31 23:20 ` zhaogezhang
2026-03-29 8:30 ` kernel test robot
2026-03-29 9:05 ` kernel test robot [this message]
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=202603291639.FHVs3bEt-lkp@intel.com \
--to=lkp@intel.com \
--cc=18341265598@163.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hanht2@chinatelecom.cn \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=tglx@kernel.org \
--cc=weixq1@chinatelecom.cn \
--cc=zhangzg12@chinatelecom.cn \
/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.