summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorDavid Hildenbrand2016-05-24 12:00:49 +0200
committerChristian Borntraeger2017-01-30 11:19:16 +0100
commit3fa8cad7402cfe982a60d746609e89aafe15d131 (patch)
tree7a829069134aaa368b16939bb83122b340b08fbc /arch/s390/kvm/kvm-s390.c
parentKVM: s390: guestdbg: filter i-fetch events on icpts (diff)
downloadkernel-qcow2-linux-3fa8cad7402cfe982a60d746609e89aafe15d131.tar.gz
kernel-qcow2-linux-3fa8cad7402cfe982a60d746609e89aafe15d131.tar.xz
kernel-qcow2-linux-3fa8cad7402cfe982a60d746609e89aafe15d131.zip
KVM: s390: prepare to read random guest instructions
We will have to read instructions not residing at the current PSW address. Reviewed-by: Eric Farman <farman@linux.vnet.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Cc: David Hildenbrand <david@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 69401b8d4521..66e73f4ed64b 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -2588,7 +2588,7 @@ static int vcpu_post_run_fault_in_sie(struct kvm_vcpu *vcpu)
* to look up the current opcode to get the length of the instruction
* to be able to forward the PSW.
*/
- rc = read_guest_instr(vcpu, &opcode, 1);
+ rc = read_guest_instr(vcpu, vcpu->arch.sie_block->gpsw.addr, &opcode, 1);
ilen = insn_length(opcode);
if (rc < 0) {
return rc;