KVM: s390: lazy enable RI
authorFan Zhang <zhangfan@linux.vnet.ibm.com>
Mon, 15 Aug 2016 02:53:22 +0000 (04:53 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 8 Sep 2016 11:40:39 +0000 (13:40 +0200)
commit80cd8763388b52fa9129cbb4b57a3615a55afd40
treeb3182213435cbe8c3a321c6ed6d8817dc5a4b251
parentc14b88d76624e02b9895914b85b9d8b2c984563c
KVM: s390: lazy enable RI

Only enable runtime instrumentation if the guest issues an RI related
instruction or if userspace changes the riccb to a valid state.
This makes entry/exit a tiny bit faster.

Initial patch by Christian Borntraeger
Signed-off-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c