KVM: s390: use created_vcpus in more places
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 16 Nov 2017 14:12:52 +0000 (15:12 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 16 Jan 2018 15:15:17 +0000 (16:15 +0100)
commit241e3ec0faf5ab1a0d9b1f6c43eefa919fb9c112
treeb2235969d134f02d75d14cedef56093b7eae1c11
parent9696594158ec43d210137c1b93313efde8f7315a
KVM: s390: use created_vcpus in more places

commit a03825bbd0c3 ("KVM: s390: use kvm->created_vcpus") introduced
kvm->created_vcpus to avoid races with the existing kvm->online_vcpus
scheme. One place was "forgotten" and one new place was "added".
Let's fix those.

Reported-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Fixes: 4e0b1ab72b8a ("KVM: s390: gs support for kvm guests")
Fixes: a03825bbd0c3 ("KVM: s390: use kvm->created_vcpus")
arch/s390/kvm/kvm-s390.c