Commit 1499fa809e9e6713952ef84a7e9d51606881681f
Committed by
Paolo Bonzini
1 parent
d7a8bea363
kvm: Change return type to vm_fault_t
Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Reviewed-by: Matthew Wilcox <mawilcox@microsoft.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Showing 7 changed files with 7 additions and 7 deletions Side-by-side Diff
arch/mips/kvm/mips.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
... | ... | @@ -3993,7 +3993,7 @@ |
3993 | 3993 | return r; |
3994 | 3994 | } |
3995 | 3995 | |
3996 | -int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) | |
3996 | +vm_fault_t kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) | |
3997 | 3997 | { |
3998 | 3998 | #ifdef CONFIG_KVM_S390_UCONTROL |
3999 | 3999 | if ((vmf->pgoff == KVM_S390_SIE_PAGE_OFFSET) |
arch/x86/kvm/x86.c
include/linux/kvm_host.h
... | ... | @@ -739,7 +739,7 @@ |
739 | 739 | unsigned int ioctl, unsigned long arg); |
740 | 740 | long kvm_arch_vcpu_ioctl(struct file *filp, |
741 | 741 | unsigned int ioctl, unsigned long arg); |
742 | -int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf); | |
742 | +vm_fault_t kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf); | |
743 | 743 | |
744 | 744 | int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext); |
745 | 745 |
virt/kvm/arm/arm.c
virt/kvm/kvm_main.c
... | ... | @@ -2358,7 +2358,7 @@ |
2358 | 2358 | } |
2359 | 2359 | EXPORT_SYMBOL_GPL(kvm_vcpu_on_spin); |
2360 | 2360 | |
2361 | -static int kvm_vcpu_fault(struct vm_fault *vmf) | |
2361 | +static vm_fault_t kvm_vcpu_fault(struct vm_fault *vmf) | |
2362 | 2362 | { |
2363 | 2363 | struct kvm_vcpu *vcpu = vmf->vma->vm_file->private_data; |
2364 | 2364 | struct page *page; |