aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/mm/fault.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2016-03-08 12:31:52 +0100
committerChristian Borntraeger <borntraeger@de.ibm.com>2016-06-20 09:55:08 +0200
commit4a49443924731823da2e9b3ae9311b74a34e7ed8 (patch)
treed65b91881e0a62a8e3b8aafdf982e978c46869aa /arch/s390/mm/fault.c
parents390/mm: limit number of real-space gmap shadows (diff)
downloadlinux-dev-4a49443924731823da2e9b3ae9311b74a34e7ed8.tar.xz
linux-dev-4a49443924731823da2e9b3ae9311b74a34e7ed8.zip
s390/mm: remember the int code for the last gmap fault
For nested virtualization, we want to know if we are handling a protection exception, because these can directly be forwarded to the guest without additional checks. Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r--arch/s390/mm/fault.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index b84416c11c43..730e0d3aa840 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -419,6 +419,7 @@ static inline int do_exception(struct pt_regs *regs, int access)
if (gmap) {
current->thread.gmap_addr = address;
current->thread.gmap_write_flag = !!(flags & FAULT_FLAG_WRITE);
+ current->thread.gmap_int_code = regs->int_code & 0xffff;
address = __gmap_translate(gmap, address);
if (address == -EFAULT) {
fault = VM_FAULT_BADMAP;