]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: s390: Add sthyi emulation
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Mon, 23 May 2016 13:11:58 +0000 (15:11 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:12 +0000 (12:07 +0200)
commit95ca2cb57985b07f5b136405f80a5106f5b06641
tree0e3ebb4d35641e5ba0d09ea6bc9208a17877b54a
parenta2d57b35c0226102b1f2ffdc2f719fcc30c99bf5
KVM: s390: Add sthyi emulation

Store Hypervisor Information is an emulated z/VM instruction that
provides a guest with basic information about the layers it is running
on. This includes information about the cpu configuration of both the
machine and the lpar, as well as their names, machine model and
machine type. This information enables an application to determine the
maximum capacity of CPs and IFLs available to software.

The instruction is available whenever the facility bit 74 is set,
otherwise executing it results in an operation exception.

It is important to check the validity flags in the sections before
using data from any structure member. It is not guaranteed that all
members will be valid on all machines / machine configurations.

Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/diag.h
arch/s390/include/asm/kvm_host.h
arch/s390/include/uapi/asm/sie.h
arch/s390/kvm/Makefile
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/sthyi.c [new file with mode: 0644]
arch/s390/kvm/trace.h