KVM: s390: clean up cmma_enable check
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Thu, 7 May 2015 13:41:57 +0000 (15:41 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 29 Jul 2015 09:02:05 +0000 (11:02 +0200)
commite6db1d61c7cc05dd3c8b787a0bd47dcb94800300
treef7cc9f1c33d9866bd111e881eb899eae74047d47
parent0df30abcd69b61d8163282c157f15ed3b0f1ac85
KVM: s390: clean up cmma_enable check

As we already only enable CMMA when userspace requests it, we can
safely move the additional checks to the request handler and avoid
doing them multiple times. This also tells userspace if CMMA is
available.

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