KVM: s390: perform vcpu model setup in a function
authorMichael Mueller <mimu@linux.vnet.ibm.com>
Fri, 27 Feb 2015 13:32:11 +0000 (14:32 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 6 Mar 2015 12:40:52 +0000 (13:40 +0100)
commit91520f1af8a01d349d19911238fc3dbed3fa58d2
tree9ec8c51edffbbb29a0a4406104c7bdb3da27f129
parent33b412acd32d403a8de9511f236f9b4f31551868
KVM: s390: perform vcpu model setup in a function

The function kvm_s390_vcpu_setup_model() now performs all cpu model realated
setup tasks for a vcpu. Besides cpuid and ibc initialization, facility list
assignment takes place during the setup step as well. The model setup has been
pulled to the begin of vcpu setup to allow kvm facility tests.

There is no need to protect the cpu model setup with a lock since the attributes
can't be changed anymore as soon the first vcpu is online.

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c