]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd737a2a3be49366842d61fe4dd1da09d5910bb74
treef7cc9f1c33d9866bd111e881eb899eae74047d47
parent28b51a4de29c9f89015892e8de774d42aef5337e
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