Lines Matching refs:write_fault
2797 static bool hva_to_pfn_fast(unsigned long addr, bool write_fault,
2807 if (!(write_fault || writable))
2825 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
2846 *writable = write_fault;
2848 if (write_fault)
2860 if (unlikely(!write_fault) && writable) {
2873 static bool vma_is_valid(struct vm_area_struct *vma, bool write_fault)
2878 if (write_fault && (unlikely(!(vma->vm_flags & VM_WRITE))))
2895 unsigned long addr, bool write_fault,
2912 (write_fault ? FAULT_FLAG_WRITE : 0),
2926 if (write_fault && !pte_write(pte)) {
2969 * @write_fault: whether we should get a writable host page
2970 * @writable: whether it allows to map a writable host page for !@write_fault
2973 * 1): @write_fault = true
2974 * 2): @write_fault = false && @writable, @writable will tell the caller
2978 bool *async, bool write_fault, bool *writable)
2987 if (hva_to_pfn_fast(addr, write_fault, writable, &pfn))
2993 npages = hva_to_pfn_slow(addr, async, write_fault, interruptible,
3013 r = hva_to_pfn_remapped(vma, addr, write_fault, writable, &pfn);
3019 if (async && vma_is_valid(vma, write_fault))
3030 bool write_fault, bool *writable, hva_t *hva)
3032 unsigned long addr = __gfn_to_hva_many(slot, gfn, NULL, write_fault);
3055 return hva_to_pfn(addr, atomic, interruptible, async, write_fault,
3060 kvm_pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault,
3064 NULL, write_fault, writable, NULL);