diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-11-11 07:56:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 14:08:15 -0500 |
commit | 8a6b1708b918d20a89d0d596d016b358c6e2d6fb (patch) | |
tree | c9780c17be88965667144b1d6acd706640e6f97f /arch | |
parent | 8d353b6d2f264168b820b2124c3db5018430fd04 (diff) |
KVM: s390: fix diagnose code extraction
commit 743db27c526e0f31cc507959d662e97e2048a86f upstream.
The diagnose code to be used is the contents of the base register (if not
zero), plus the displacement. The current code ignores the base register
contents. So let's fix that...
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kvm/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/diag.c b/arch/s390/kvm/diag.c index 1c01a9912989..6acb24d606fd 100644 --- a/arch/s390/kvm/diag.c +++ b/arch/s390/kvm/diag.c | |||
@@ -130,7 +130,7 @@ static int __diag_virtio_hypercall(struct kvm_vcpu *vcpu) | |||
130 | 130 | ||
131 | int kvm_s390_handle_diag(struct kvm_vcpu *vcpu) | 131 | int kvm_s390_handle_diag(struct kvm_vcpu *vcpu) |
132 | { | 132 | { |
133 | int code = (vcpu->arch.sie_block->ipb & 0xfff0000) >> 16; | 133 | int code = kvm_s390_get_base_disp_rs(vcpu) & 0xffff; |
134 | 134 | ||
135 | trace_kvm_s390_handle_diag(vcpu, code); | 135 | trace_kvm_s390_handle_diag(vcpu, code); |
136 | switch (code) { | 136 | switch (code) { |