]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation: s390-diag.rst: Document diag500(STORAGE LIMIT) subfunction
authorDavid Hildenbrand <david@redhat.com>
Fri, 25 Oct 2024 14:14:47 +0000 (16:14 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 09:26:24 +0000 (10:26 +0100)
Let's document our new diag500 subfunction that can be implemented by
userspace.

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Tested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Link: https://lore.kernel.org/r/20241025141453.1210600-3-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Documentation/virt/kvm/s390/s390-diag.rst

index 48a326d41cc0196a924be3de743cd54bb49e1889..3e4f9e3bef8108bc29288b47aceb0e3e7266823f 100644 (file)
@@ -80,6 +80,23 @@ Subcode 3 - virtio-ccw notification
 
     See also the virtio standard for a discussion of this hypercall.
 
+Subcode 4 - storage-limit
+    Handled by userspace.
+
+    After completion of the DIAGNOSE call, general register 2 will
+    contain the storage limit: the maximum physical address that might be
+    used for storage throughout the lifetime of the VM.
+
+    The storage limit does not indicate currently usable storage, it may
+    include holes, standby storage and areas reserved for other means, such
+    as memory hotplug or virtio-mem devices. Other interfaces for detecting
+    actually usable storage, such as SCLP, must be used in conjunction with
+    this subfunction.
+
+    Note that the storage limit can be larger, but never smaller than the
+    maximum storage address indicated by SCLP via the "maximum storage
+    increment" and the "increment size".
+
 
 DIAGNOSE function code 'X'501 - KVM breakpoint
 ----------------------------------------------