Re: [PATCH -rt] kvm: lockdep annotate mmu_lock wait_lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcelo,

[auto build test ERROR on linux-rt-devel/for-kbuild-bot/current-stable]

url:    https://github.com/0day-ci/linux/commits/Marcelo-Tosatti/kvm-lockdep-annotate-mmu_lock-wait_lock/20170719-025327
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git for-kbuild-bot/current-stable
config: x86_64-allyesdebian (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from include/linux/hardirq.h:5:0,
                    from include/linux/kvm_host.h:10,
                    from arch/x86/kvm/../../../virt/kvm/kvm_main.c:21:
   arch/x86/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_create_vm':
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:617:45: error: 'spinlock_t {aka struct spinlock}' has no member named 'lock'; did you mean 'rlock'?
     lockdep_set_novalidate_class(&kvm->mmu_lock.lock.wait_lock);
                                                ^
   include/linux/lockdep.h:300:22: note: in definition of macro 'lockdep_set_class_and_name'
      lockdep_init_map(&(lock)->dep_map, name, key, 0)
                         ^~~~
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:617:2: note: in expansion of macro 'lockdep_set_novalidate_class'
     lockdep_set_novalidate_class(&kvm->mmu_lock.lock.wait_lock);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +617 arch/x86/kvm/../../../virt/kvm/kvm_main.c

   606	
   607	static struct kvm *kvm_create_vm(unsigned long type)
   608	{
   609		int r, i;
   610		struct kvm *kvm = kvm_arch_alloc_vm();
   611	
   612		if (!kvm)
   613			return ERR_PTR(-ENOMEM);
   614	
   615		spin_lock_init(&kvm->mmu_lock);
   616	
 > 617		lockdep_set_novalidate_class(&kvm->mmu_lock.lock.wait_lock);
   618		mmgrab(current->mm);
   619		kvm->mm = current->mm;
   620		kvm_eventfd_init(kvm);
   621		mutex_init(&kvm->lock);
   622		mutex_init(&kvm->irq_lock);
   623		mutex_init(&kvm->slots_lock);
   624		refcount_set(&kvm->users_count, 1);
   625		INIT_LIST_HEAD(&kvm->devices);
   626	
   627		r = kvm_arch_init_vm(kvm, type);
   628		if (r)
   629			goto out_err_no_disable;
   630	
   631		r = hardware_enable_all();
   632		if (r)
   633			goto out_err_no_disable;
   634	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux