KVM: s390: Introduce helper function for faulting-in a guest page
authorThomas Huth <thuth@linux.vnet.ibm.com>
Tue, 6 May 2014 15:20:16 +0000 (17:20 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 16 May 2014 12:57:20 +0000 (14:57 +0200)
commitfa576c583d877d667d9acaed909a3dfc6b03e138
tree05e28d47d9f33589ed9f96858c007d0235440dd8
parent684135e0962fce7946a89f50cf6c7ffa78a11b09
KVM: s390: Introduce helper function for faulting-in a guest page

Rework the function kvm_arch_fault_in_sync() to become a proper helper
function for faulting-in a guest page. Now it takes the guest address as
a parameter and does not ignore the possible error code from gmap_fault()
anymore (which could cause undetected error conditions before).

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h