]> 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)
commit699794b4bd68e81d8313c0b02947479be00c27f5
treec4a49b793c57ec1cf50bf3ecc8a8442d4880de8a
parent859629e4fbfb3036c13badf46e8f35817c0f08fe
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