]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Fix low-address protection for real addresses
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Tue, 3 Mar 2015 11:26:14 +0000 (14:26 +0300)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 17 Mar 2015 15:24:38 +0000 (16:24 +0100)
commita4257a6c16b71e5c8386b9a0298fcf92a0e4e31e
tree06666c57566175f67091bf509c36c678fa8e82a6
parent5ef784a8fbf116d79f54f1f7aebb49b6ba2fba7e
KVM: s390: Fix low-address protection for real addresses

The kvm_s390_check_low_addr_protection() function is used only with real
addresses. According to the POP (the "Low-Address Protection"
paragraph in chapter 3), if the effective address is real or absolute,
the low-address protection procedure should raise a PROTECTION exception
only when the low-address protection is enabled in the control register
0 and the address is low.
This patch removes ASCE checks from the function and renames it to
better reflect its behavior.

Cc: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gaccess.h
arch/s390/kvm/priv.c