KVM: s390: don't switch to ESCA for ucontrol
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 12 Oct 2015 10:57:22 +0000 (12:57 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:11 +0000 (12:47 +0100)
commit4215825eeb1f704d1bd327ca01fb753b53ea34d3
tree23a94e428b2b0d7cef3c5c8a4e2322f3a3b24bfc
parenteaa78f343255dabac963ab8c7644367844d18e00
KVM: s390: don't switch to ESCA for ucontrol

sca_add_vpcu is not called for ucontrol guests. We must also not
apply the sca checking for sca_can_add_vcpu as ucontrol guests
do not have to follow the sca limits.

As common code already checks that id < KVM_MAX_VCPUS all other
data structures are safe as well.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c