Skip to content

Commit f20d4e9

Browse files
collinwallingborntraeger
authored andcommitted
docs: kvm: add documentation for KVM_CAP_S390_DIAG318
Documentation for the s390 DIAGNOSE 0x318 instruction handling. Signed-off-by: Collin Walling <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Link: https://lore.kernel.org/kvm/[email protected]/ Message-Id: <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent 37f66bb commit f20d4e9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Documentation/virt/kvm/api.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6173,3 +6173,23 @@ specific interfaces must be consistent, i.e. if one says the feature
61736173
is supported, than the other should as well and vice versa. For arm64
61746174
see Documentation/virt/kvm/devices/vcpu.rst "KVM_ARM_VCPU_PVTIME_CTRL".
61756175
For x86 see Documentation/virt/kvm/msr.rst "MSR_KVM_STEAL_TIME".
6176+
6177+
8.25 KVM_CAP_S390_DIAG318
6178+
-------------------------
6179+
6180+
:Architectures: s390
6181+
6182+
This capability enables a guest to set information about its control program
6183+
(i.e. guest kernel type and version). The information is helpful during
6184+
system/firmware service events, providing additional data about the guest
6185+
environments running on the machine.
6186+
6187+
The information is associated with the DIAGNOSE 0x318 instruction, which sets
6188+
an 8-byte value consisting of a one-byte Control Program Name Code (CPNC) and
6189+
a 7-byte Control Program Version Code (CPVC). The CPNC determines what
6190+
environment the control program is running in (e.g. Linux, z/VM...), and the
6191+
CPVC is used for information specific to OS (e.g. Linux version, Linux
6192+
distribution...)
6193+
6194+
If this capability is available, then the CPNC and CPVC can be synchronized
6195+
between KVM and userspace via the sync regs mechanism (KVM_SYNC_DIAG318).

0 commit comments

Comments
 (0)