aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2014-04-29 03:34:41 -0400
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-08-25 08:35:58 -0400
commit6e0a0431bf7d90ed0b8a0a974ad219617a70cc22 (patch)
tree964d7a595bba5c8cd84ae6a0d363fe9edaabc14e /arch/s390/kvm/kvm-s390.c
parent9da4e3807657f3bcd12cfbb5671d80794303dde2 (diff)
KVM: s390/mm: cleanup gmap function arguments, variable names
Make the order of arguments for the gmap calls more consistent, if the gmap pointer is passed it is always the first argument. In addition distinguish between guest address and user address by naming the variables gaddr for a guest address and vmaddr for a user address. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index c2caa175320c..5c877c8e4494 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -1096,7 +1096,7 @@ long kvm_arch_fault_in_page(struct kvm_vcpu *vcpu, gpa_t gpa, int writable)
1096 hva_t hva; 1096 hva_t hva;
1097 long rc; 1097 long rc;
1098 1098
1099 hva = gmap_fault(gpa, vcpu->arch.gmap); 1099 hva = gmap_fault(vcpu->arch.gmap, gpa);
1100 if (IS_ERR_VALUE(hva)) 1100 if (IS_ERR_VALUE(hva))
1101 return (long)hva; 1101 return (long)hva;
1102 down_read(&mm->mmap_sem); 1102 down_read(&mm->mmap_sem);
@@ -1683,7 +1683,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
1683 } 1683 }
1684#endif 1684#endif
1685 case KVM_S390_VCPU_FAULT: { 1685 case KVM_S390_VCPU_FAULT: {
1686 r = gmap_fault(arg, vcpu->arch.gmap); 1686 r = gmap_fault(vcpu->arch.gmap, arg);
1687 if (!IS_ERR_VALUE(r)) 1687 if (!IS_ERR_VALUE(r))
1688 r = 0; 1688 r = 0;
1689 break; 1689 break;