KVM: s390: implement the RI support of guest
authorFan Zhang <zhangfan@linux.vnet.ibm.com>
Thu, 7 Jan 2016 10:24:29 +0000 (18:24 +0800)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 7 Jan 2016 13:48:26 +0000 (14:48 +0100)
commitc6e5f166373a20a433c38a34bd16f2b62bd0864c
tree7e444674777fad893eb4ab353267c397c44db57c
parentc57ee5faf4503b0cd586c3af663262a3d5599fc1
KVM: s390: implement the RI support of guest

This patch adds runtime instrumentation support for KVM guest. We need to
setup a save area for the runtime instrumentation-controls control block(RICCB)
and implement the necessary interfaces to live migrate the guest settings.

We setup the sie control block in a way, that the runtime
instrumentation instructions of a guest are handled by hardware.

We also add a capability KVM_CAP_S390_RI to make this feature opt-in as
it needs migration support.

Signed-off-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/kvm-s390.c
include/uapi/linux/kvm.h