]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f078b68404143a5ca9ff18f37419015e8d8f9a5
tree9ec8c51edffbbb29a0a4406104c7bdb3da27f129
parent0bdb16e0a77596a573abff31b4e85046117b3934
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