KVM: s390: gaccess: implement instruction fetching mode
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 16 Nov 2015 14:48:59 +0000 (15:48 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Feb 2016 12:12:51 +0000 (13:12 +0100)
commit34346b9a9388b28c3b4a865f8b4f98863f05df81
treea58ffbb94c94f85fd5b5763582229cd5994f83aa
parent92c9632119b67f3e201240f6813cd0343bfb0141
KVM: s390: gaccess: implement instruction fetching mode

When an instruction is to be fetched, special handling applies to
secondary-space mode and access-register mode. The instruction is to be
fetched from primary space.

We can easily support this by selecting the right asce for translation.
Access registers will never be used during translation, so don't
include them in the interface. As we only want to read from the current
PSW address for now, let's also hide that detail.

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/gaccess.c
arch/s390/kvm/gaccess.h