Hi Fuad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1da38549dd64c7f5dd22427f12dfa8db3d8a722b]
url:
https://github.com/0day-ci/linux/commits/Fuad-Tabba/KVM-arm64-Fixed-featu...
base: 1da38549dd64c7f5dd22427f12dfa8db3d8a722b
config: arm64-randconfig-r016-20211014 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://github.com/0day-ci/linux/commit/6d9b1ae6b6b20f6f4300e46a17bb9d42e...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Fuad-Tabba/KVM-arm64-Fixed-features-for-protected-VMs/20211010-225842
git checkout 6d9b1ae6b6b20f6f4300e46a17bb9d42eadd3a79
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=arm64 SHELL=/bin/bash arch/arm64/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm64/kvm/hyp/nvhe/switch.c:126: warning: This comment starts with '/**',
but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Disable host events, enable guest events
arch/arm64/kvm/hyp/nvhe/switch.c:146: warning: This comment starts with '/**',
but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Disable guest events, enable host events
arch/arm64/kvm/hyp/nvhe/switch.c:164: warning: This comment starts with '/**',
but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Handler for protected VM restricted exceptions.
arch/arm64/kvm/hyp/nvhe/switch.c:176: warning: This comment starts with '/**',
but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Handler for protected VM MSR, MRS or System instruction execution in AArch64.
arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: Function parameter or member
'vcpu' not described in 'kvm_handle_pvm_fpsimd'
arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: Function parameter or member
'exit_code' not described in 'kvm_handle_pvm_fpsimd'
> arch/arm64/kvm/hyp/nvhe/switch.c:196: warning: expecting
prototype for Handler for protected floating(). Prototype was for kvm_handle_pvm_fpsimd()
instead
vim +196 arch/arm64/kvm/hyp/nvhe/switch.c
188
189 /**
190 * Handler for protected floating-point and Advanced SIMD accesses.
191 *
192 * Returns true if the hypervisor has handled the exit, and control should go
193 * back to the guest, or false if it hasn't.
194 */
195 static bool kvm_handle_pvm_fpsimd(struct kvm_vcpu *vcpu, u64 *exit_code)
196 {
197 /* Linux guests assume support for floating-point
and Advanced SIMD. */
198 BUILD_BUG_ON(!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_FP),
199 PVM_ID_AA64PFR0_ALLOW));
200 BUILD_BUG_ON(!FIELD_GET(ARM64_FEATURE_MASK(ID_AA64PFR0_ASIMD),
201 PVM_ID_AA64PFR0_ALLOW));
202
203 return kvm_hyp_handle_fpsimd(vcpu, exit_code);
204 }
205
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org