Hi Yang,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on kvm/linux-next]
[also build test ERROR on next-20200331]
[cannot apply to vhost/linux-next tip/auto-latest linus/master linux/master v5.6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Yang-Weijiang/Introduce-support-...
base:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-6) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kvm/x86.c: In function 'kvm_set_cr0':
arch/x86/kvm/x86.c:807:53: error: 'X86_CR4_CET' undeclared (first use in this
function); did you mean 'X86_CR4_DE'?
if (!(cr0 & X86_CR0_WP) && kvm_read_cr4_bits(vcpu, X86_CR4_CET))
^~~~~~~~~~~
X86_CR4_DE
arch/x86/kvm/x86.c:807:53: note: each undeclared identifier is reported only once for
each function it appears in
arch/x86/kvm/x86.c: In function 'kvm_arch_hardware_setup':
> arch/x86/kvm/x86.c:189:28: error:
'XFEATURE_MASK_CET_USER' undeclared (first use in this function); did you mean
'XFEATURE_MASK_BNDCSR'?
#define KVM_SUPPORTED_XSS
(XFEATURE_MASK_CET_USER | \
^
arch/x86/kvm/x86.c:9650:30: note: in expansion of macro 'KVM_SUPPORTED_XSS'
supported_xss = host_xss & KVM_SUPPORTED_XSS;
^~~~~~~~~~~~~~~~~
> arch/x86/kvm/x86.c:190:6: error:
'XFEATURE_MASK_CET_KERNEL' undeclared (first use in this function); did you mean
'XFEATURE_MASK_CET_USER'?
XFEATURE_MASK_CET_KERNEL)
^
arch/x86/kvm/x86.c:9650:30: note: in expansion of macro 'KVM_SUPPORTED_XSS'
supported_xss = host_xss & KVM_SUPPORTED_XSS;
^~~~~~~~~~~~~~~~~
vim +189 arch/x86/kvm/x86.c
18863bdd60f895 Avi Kivity 2009-09-07 183
cfc481810c903a Sean Christopherson 2020-03-02 184 #define KVM_SUPPORTED_XCR0
(XFEATURE_MASK_FP | XFEATURE_MASK_SSE \
cfc481810c903a Sean Christopherson 2020-03-02 185 | XFEATURE_MASK_YMM |
XFEATURE_MASK_BNDREGS \
cfc481810c903a Sean Christopherson 2020-03-02 186 | XFEATURE_MASK_BNDCSR |
XFEATURE_MASK_AVX512 \
cfc481810c903a Sean Christopherson 2020-03-02 187 | XFEATURE_MASK_PKRU)
cfc481810c903a Sean Christopherson 2020-03-02 188
aae536c20cb181 Yang Weijiang 2020-03-26 @189 #define
KVM_SUPPORTED_XSS (XFEATURE_MASK_CET_USER | \
aae536c20cb181 Yang Weijiang 2020-03-26 @190 XFEATURE_MASK_CET_KERNEL)
aae536c20cb181 Yang Weijiang 2020-03-26 191
:::::: The code at line 189 was first introduced by commit
:::::: aae536c20cb18180995aae27b30973f60e148ee7 KVM: VMX: Introduce CET VMX fields and
flags
:::::: TO: Yang Weijiang <weijiang.yang(a)intel.com>
:::::: CC: 0day robot <lkp(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org