]> asedeno.scripts.mit.edu Git - linux.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)
commitf9cbd9b02539330ddd349df583fcfc2db8a23b90
treec4a49b793c57ec1cf50bf3ecc8a8442d4880de8a
parentc24cc9c8a6ca798427d3ff46b55df8403361df3e
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