KVM: s390: Small fixes for the PFMF handler
authorThomas Huth <thuth@linux.vnet.ibm.com>
Mon, 10 Nov 2014 14:59:32 +0000 (15:59 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 28 Nov 2014 11:32:38 +0000 (12:32 +0100)
commita02689fecdbc36503b1496a5d36707bb4559db63
tree225175dd04de2c0eb5b7432ff8fcc79ab3c8b06d
parentb65d6e17fe2239c9b2051727903955d922083fbf
KVM: s390: Small fixes for the PFMF handler

This patch includes two small fixes for the PFMF handler: First, the
start address for PFMF has to be masked according to the current
addressing mode, which is now done with kvm_s390_logical_to_effective().
Second, the protection exceptions have a lower priority than the
specification exceptions, so the check for low-address protection
has to be moved after the last spot where we inject a specification
exception.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/priv.c