KVM: s390: use kvm->created_vcpus
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Jun 2016 12:50:04 +0000 (14:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 16 Jun 2016 08:07:37 +0000 (10:07 +0200)
commita03825bbd0c39feeba605912cdbc28e79e4e01e1
tree072c00b26e9ba5c2ebb07ab7d80800ed1a3239f1
parent557abc40d121358883d2da8bc8bf976d6e8ec332
KVM: s390: use kvm->created_vcpus

The new created_vcpus field avoids possible races between enabling
capabilities and creating VCPUs.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/s390/kvm/kvm-s390.c