s390/kvm: fix psw rewinding in handle_skey
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 May 2013 12:41:32 +0000 (14:41 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 08:55:18 +0000 (11:55 +0300)
commitdfcf7dc64237dbe1acc2147ad3552f793003874b
tree024f9b943d766bdc67990588643034887c7db135
parenteed3b1e55be07a057ee41a24f04abffeda7b885f
s390/kvm: fix psw rewinding in handle_skey

The PSW can wrap if the guest has been running in the 24 bit or 31 bit
addressing mode. Use __rewind_psw to find the correct address.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/s390/kvm/priv.c