diff options
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ed3c4e7c1008..22cdb960660a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -467,6 +467,7 @@ static struct kvm *kvm_create_vm(void) | |||
467 | if (!kvm->buses[i]) | 467 | if (!kvm->buses[i]) |
468 | goto out_err; | 468 | goto out_err; |
469 | } | 469 | } |
470 | spin_lock_init(&kvm->mmu_lock); | ||
470 | 471 | ||
471 | r = kvm_init_mmu_notifier(kvm); | 472 | r = kvm_init_mmu_notifier(kvm); |
472 | if (r) | 473 | if (r) |
@@ -474,7 +475,6 @@ static struct kvm *kvm_create_vm(void) | |||
474 | 475 | ||
475 | kvm->mm = current->mm; | 476 | kvm->mm = current->mm; |
476 | atomic_inc(&kvm->mm->mm_count); | 477 | atomic_inc(&kvm->mm->mm_count); |
477 | spin_lock_init(&kvm->mmu_lock); | ||
478 | kvm_eventfd_init(kvm); | 478 | kvm_eventfd_init(kvm); |
479 | mutex_init(&kvm->lock); | 479 | mutex_init(&kvm->lock); |
480 | mutex_init(&kvm->irq_lock); | 480 | mutex_init(&kvm->irq_lock); |