aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 0d481b282448..0d54edecbc70 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1747,6 +1747,8 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, int n)
1747 goto vcpu_destroy; 1747 goto vcpu_destroy;
1748 } 1748 }
1749 kvm->vcpus[n] = vcpu; 1749 kvm->vcpus[n] = vcpu;
1750 if (n == 0)
1751 kvm->bsp_vcpu = vcpu;
1750 mutex_unlock(&kvm->lock); 1752 mutex_unlock(&kvm->lock);
1751 1753
1752 /* Now it's all set up, let userspace reach it */ 1754 /* Now it's all set up, let userspace reach it */