s390x: enable runtime instrumentation
commit9700230b0d6d68d8650206ffd10d132219678db1
authorFan Zhang <zhangfan@linux.vnet.ibm.com>
Wed, 9 Mar 2016 12:11:17 +0000 (9 13:11 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 May 2016 13:50:29 +0000 (17 15:50 +0200)
tree14b645e6981f227520f4decb3317b45c397e620e
parent946e55f3c7ff3eb9fa49e57e15c209858aaa9ac9
s390x: enable runtime instrumentation

Introduce run-time-instrumentation support when running under kvm for
virtio-ccw 2.7 machine and make sure older machines can not enable it.

The new ri_allowed field in the s390MachineClass serves as an indicator
whether the feature can be used by the machine and should therefore be
activated if available.

riccb_needed() is used to check whether riccb is needed or not in live
migration.

Signed-off-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-ccw.c
include/hw/s390x/s390-virtio-ccw.h
target-s390x/cpu.h
target-s390x/kvm.c
target-s390x/machine.c