]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: provide CMMA attributes only if available
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Thu, 3 Mar 2016 08:48:47 +0000 (09:48 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:20 +0000 (12:07 +0200)
commite7ccca1a9b5d451ae5d270e1b265ecc146cc3c78
treec4a49b793c57ec1cf50bf3ecc8a8442d4880de8a
parentc6288066d77420ebaf7d49ed629936b026046b37
KVM: s390: provide CMMA attributes only if available

Let's not provide the device attribute for cmma enabling and clearing
if the hardware doesn't support it.

This also helps getting rid of the undocumented return value "-EINVAL"
in case CMMA is not available when trying to enable it.

Also properly document the meaning of -EINVAL for CMMA clearing.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Documentation/virtual/kvm/api.txt
Documentation/virtual/kvm/devices/vm.txt
arch/s390/kvm/kvm-s390.c