KVM: s390: pfmf: take care of amode when setting reg2
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 13 Apr 2016 13:47:21 +0000 (15:47 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:29 +0000 (12:07 +0200)
commit2c26d1d23abd9a67d056c95a0823132a71edc477
treeebc5b10f84d5750549851f3d9ad002d3f3fdf91b
parent9a68f0af8cd907452fa6c33343d38cdacff96294
KVM: s390: pfmf: take care of amode when setting reg2

Depending on the addressing mode, we must not overwrite bit 0-31 of the
register. In addition, 24 bit and 31 bit have to set certain bits to 0,
which is guaranteed by converting the end address to an effective
address.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/priv.c