aboutsummaryrefslogtreecommitdiff
path: root/Documentation/virtual/kvm/devices
diff options
context:
space:
mode:
authorGravatar David Hildenbrand <dahi@linux.vnet.ibm.com> 2016-03-03 09:48:47 +0100
committerGravatar Christian Borntraeger <borntraeger@de.ibm.com> 2016-06-10 12:07:20 +0200
commitf9cbd9b02539330ddd349df583fcfc2db8a23b90 (patch)
treec4a49b793c57ec1cf50bf3ecc8a8442d4880de8a /Documentation/virtual/kvm/devices
parentKVM: s390: enable CMMA if the interpration is available (diff)
downloadlinux-f9cbd9b02539330ddd349df583fcfc2db8a23b90.tar.gz
linux-f9cbd9b02539330ddd349df583fcfc2db8a23b90.tar.bz2
linux-f9cbd9b02539330ddd349df583fcfc2db8a23b90.zip
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>
Diffstat (limited to 'Documentation/virtual/kvm/devices')
-rw-r--r--Documentation/virtual/kvm/devices/vm.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/devices/vm.txt b/Documentation/virtual/kvm/devices/vm.txt
index 8a458f42ded2..b6cda49f2ba4 100644
--- a/Documentation/virtual/kvm/devices/vm.txt
+++ b/Documentation/virtual/kvm/devices/vm.txt
@@ -20,7 +20,8 @@ Enables Collaborative Memory Management Assist (CMMA) for the virtual machine.
1.2. ATTRIBUTE: KVM_S390_VM_MEM_CLR_CMMA
Parameters: none
-Returns: 0
+Returns: -EINVAL if CMMA was not enabled
+ 0 otherwise
Clear the CMMA status for all guest pages, so any pages the guest marked
as unused are again used any may not be reclaimed by the host.