diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2012-12-20 09:32:09 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-01-07 16:53:41 -0500 |
commit | 48a3e950f4cee6a345ffbe9baf599f1e9a54c479 (patch) | |
tree | 3e60015a025df89b28df12c6470babbfb566e766 /arch/s390/kvm/intercept.c | |
parent | d8346b7d9bab37e6cc712ff1622c65ff98bdfef8 (diff) |
KVM: s390: Add support for machine checks.
Add support for injecting machine checks (only repressible
conditions for now).
This is a bit more involved than I/O interrupts, for these reasons:
- Machine checks come in both floating and cpu varieties.
- We don't have a bit for machine checks enabling, but have to use
a roundabout approach with trapping PSW changing instructions and
watching for opened machine checks.
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/s390/kvm/intercept.c')
-rw-r--r-- | arch/s390/kvm/intercept.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index df6c0ad085aa..950c13ecaf60 100644 --- a/arch/s390/kvm/intercept.c +++ b/arch/s390/kvm/intercept.c | |||
@@ -97,10 +97,12 @@ static int handle_lctl(struct kvm_vcpu *vcpu) | |||
97 | 97 | ||
98 | static const intercept_handler_t instruction_handlers[256] = { | 98 | static const intercept_handler_t instruction_handlers[256] = { |
99 | [0x01] = kvm_s390_handle_01, | 99 | [0x01] = kvm_s390_handle_01, |
100 | [0x82] = kvm_s390_handle_lpsw, | ||
100 | [0x83] = kvm_s390_handle_diag, | 101 | [0x83] = kvm_s390_handle_diag, |
101 | [0xae] = kvm_s390_handle_sigp, | 102 | [0xae] = kvm_s390_handle_sigp, |
102 | [0xb2] = kvm_s390_handle_b2, | 103 | [0xb2] = kvm_s390_handle_b2, |
103 | [0xb7] = handle_lctl, | 104 | [0xb7] = handle_lctl, |
105 | [0xb9] = kvm_s390_handle_b9, | ||
104 | [0xe5] = kvm_s390_handle_e5, | 106 | [0xe5] = kvm_s390_handle_e5, |
105 | [0xeb] = handle_lctlg, | 107 | [0xeb] = handle_lctlg, |
106 | }; | 108 | }; |