diff options
author | Fan Zhang <zhangfan@linux.vnet.ibm.com> | 2016-08-14 22:53:22 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2016-09-08 07:40:39 -0400 |
commit | 80cd8763388b52fa9129cbb4b57a3615a55afd40 (patch) | |
tree | b3182213435cbe8c3a321c6ed6d8817dc5a4b251 /arch/s390/kvm/intercept.c | |
parent | c14b88d76624e02b9895914b85b9d8b2c984563c (diff) |
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>
Diffstat (limited to 'arch/s390/kvm/intercept.c')
-rw-r--r-- | arch/s390/kvm/intercept.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index dfd0ca2638fa..1cab8a177d0e 100644 --- a/arch/s390/kvm/intercept.c +++ b/arch/s390/kvm/intercept.c | |||
@@ -29,6 +29,7 @@ static const intercept_handler_t instruction_handlers[256] = { | |||
29 | [0x01] = kvm_s390_handle_01, | 29 | [0x01] = kvm_s390_handle_01, |
30 | [0x82] = kvm_s390_handle_lpsw, | 30 | [0x82] = kvm_s390_handle_lpsw, |
31 | [0x83] = kvm_s390_handle_diag, | 31 | [0x83] = kvm_s390_handle_diag, |
32 | [0xaa] = kvm_s390_handle_aa, | ||
32 | [0xae] = kvm_s390_handle_sigp, | 33 | [0xae] = kvm_s390_handle_sigp, |
33 | [0xb2] = kvm_s390_handle_b2, | 34 | [0xb2] = kvm_s390_handle_b2, |
34 | [0xb6] = kvm_s390_handle_stctl, | 35 | [0xb6] = kvm_s390_handle_stctl, |