Lines Matching refs:len
61 unsigned long len) in kvm_gpc_is_valid_len() argument
70 return offset + len <= PAGE_SIZE; in kvm_gpc_is_valid_len()
73 bool kvm_gpc_check(struct gfn_to_pfn_cache *gpc, unsigned long len) in kvm_gpc_check() argument
90 if (!kvm_gpc_is_valid_len(gpc->gpa, gpc->uhva, len)) in kvm_gpc_check()
366 int kvm_gpc_refresh(struct gfn_to_pfn_cache *gpc, unsigned long len) in kvm_gpc_refresh() argument
372 if (!kvm_gpc_is_valid_len(gpc->gpa, gpc->uhva, len)) in kvm_gpc_refresh()
398 unsigned long len) in __kvm_gpc_activate() argument
402 if (!kvm_gpc_is_valid_len(gpa, uhva, len)) in __kvm_gpc_activate()
427 int kvm_gpc_activate(struct gfn_to_pfn_cache *gpc, gpa_t gpa, unsigned long len) in kvm_gpc_activate() argument
436 return __kvm_gpc_activate(gpc, gpa, KVM_HVA_ERR_BAD, len); in kvm_gpc_activate()
439 int kvm_gpc_activate_hva(struct gfn_to_pfn_cache *gpc, unsigned long uhva, unsigned long len) in kvm_gpc_activate_hva() argument
441 if (!access_ok((void __user *)uhva, len)) in kvm_gpc_activate_hva()
444 return __kvm_gpc_activate(gpc, INVALID_GPA, uhva, len); in kvm_gpc_activate_hva()