summaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorDominik Dingel2014-10-23 12:07:14 +0200
committerMartin Schwidefsky2014-10-27 13:27:23 +0100
commita13cff318cafbd493b8d5d679e5f3f761084c4fe (patch)
tree88d6a4d2bb71e2c187584bae39556076bd7b0680 /arch/s390/kvm/kvm-s390.c
parents390: update default configuration (diff)
downloadkernel-qcow2-linux-a13cff318cafbd493b8d5d679e5f3f761084c4fe.tar.gz
kernel-qcow2-linux-a13cff318cafbd493b8d5d679e5f3f761084c4fe.tar.xz
kernel-qcow2-linux-a13cff318cafbd493b8d5d679e5f3f761084c4fe.zip
s390/mm: recfactor global pgste updates
Replace the s390 specific page table walker for the pgste updates with a call to the common code walk_page_range function. There are now two pte modification functions, one for the reset of the CMMA state and another one for the initialization of the storage keys. Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 55aade49b6d1..6b049ee75a56 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -271,7 +271,7 @@ static int kvm_s390_mem_control(struct kvm *kvm, struct kvm_device_attr *attr)
case KVM_S390_VM_MEM_CLR_CMMA:
mutex_lock(&kvm->lock);
idx = srcu_read_lock(&kvm->srcu);
- page_table_reset_pgste(kvm->arch.gmap->mm, 0, TASK_SIZE, false);
+ s390_reset_cmma(kvm->arch.gmap->mm);
srcu_read_unlock(&kvm->srcu, idx);
mutex_unlock(&kvm->lock);
ret = 0;