CC: [email protected]
CC: [email protected]
CC: Robert Hu <[email protected]>
CC: Farrah Chen <[email protected]>
CC: Danmei Wei <[email protected]>
TO: Paolo Bonzini <[email protected]>

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   a3e0b8bd99ab098514bde2434301fa6fde040da2
commit: 0ae283075bf669c2086ef92c0dc6ad8458bc5f13 [127/152] kvm: x86: abstract 
locking around pvclock_update_vm_gtod_copy
:::::: branch date: 9 hours ago
:::::: commit date: 10 hours ago
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # 
https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=0ae283075bf669c2086ef92c0dc6ad8458bc5f13
        git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
        git fetch --no-tags kvm queue
        git checkout 0ae283075bf669c2086ef92c0dc6ad8458bc5f13
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   arch/x86/kvm/x86.c:227:47: sparse: sparse: array of flexible structures
   arch/x86/kvm/x86.c:253:49: sparse: sparse: array of flexible structures
   arch/x86/kvm/x86.c: note: in included file:
   include/linux/kvm_host.h:1445:54: sparse: sparse: array of flexible 
structures
   include/linux/kvm_host.h:1447:56: sparse: sparse: array of flexible 
structures
>> arch/x86/kvm/x86.c:2760:13: sparse: sparse: context imbalance in 
>> 'kvm_start_pvclock_update' - wrong count at exit
   arch/x86/kvm/x86.c:2769:13: sparse: sparse: context imbalance in 
'kvm_end_pvclock_update' - unexpected unlock
   arch/x86/kvm/x86.c: note: in included file (through 
include/linux/notifier.h, arch/x86/include/asm/uprobes.h, 
include/linux/uprobes.h, ...):
   include/linux/srcu.h:188:9: sparse: sparse: context imbalance in 
'vcpu_enter_guest' - unexpected unlock

vim +/kvm_start_pvclock_update +2760 arch/x86/kvm/x86.c

d828199e844477 Marcelo Tosatti 2012-11-27  2759  
0ae283075bf669 Paolo Bonzini   2021-04-08 @2760  static void 
kvm_start_pvclock_update(struct kvm *kvm)
2860c4b1678646 Paolo Bonzini   2016-01-07  2761  {
0ae283075bf669 Paolo Bonzini   2021-04-08  2762         struct kvm_arch *ka = 
&kvm->arch;
2860c4b1678646 Paolo Bonzini   2016-01-07  2763         
kvm_make_all_cpus_request(kvm, KVM_REQ_MCLOCK_INPROGRESS);
0ae283075bf669 Paolo Bonzini   2021-04-08  2764  
0ae283075bf669 Paolo Bonzini   2021-04-08  2765         /* no guest entries 
from this point */
0ae283075bf669 Paolo Bonzini   2021-04-08  2766         
spin_lock_irq(&ka->pvclock_gtod_sync_lock);
2860c4b1678646 Paolo Bonzini   2016-01-07  2767  }
2860c4b1678646 Paolo Bonzini   2016-01-07  2768  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to