Lines Matching refs:write_fault
1895 static bool hva_to_pfn_fast(unsigned long addr, bool write_fault,
1905 if (!(write_fault || writable))
1923 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
1933 *writable = write_fault;
1935 if (write_fault)
1945 if (unlikely(!write_fault) && writable) {
1958 static bool vma_is_valid(struct vm_area_struct *vma, bool write_fault)
1963 if (write_fault && (unlikely(!(vma->vm_flags & VM_WRITE))))
1978 bool write_fault, bool *writable,
1994 (write_fault ? FAULT_FLAG_WRITE : 0),
2006 if (write_fault && !pte_write(*ptep)) {
2048 * @write_fault: whether we should get a writable host page
2049 * @writable: whether it allows to map a writable host page for !@write_fault
2052 * 1): @write_fault = true
2053 * 2): @write_fault = false && @writable, @writable will tell the caller
2057 bool write_fault, bool *writable)
2066 if (hva_to_pfn_fast(addr, write_fault, writable, &pfn))
2072 npages = hva_to_pfn_slow(addr, async, write_fault, writable, &pfn);
2089 r = hva_to_pfn_remapped(vma, addr, async, write_fault, writable, &pfn);
2095 if (async && vma_is_valid(vma, write_fault))
2105 bool atomic, bool *async, bool write_fault,
2108 unsigned long addr = __gfn_to_hva_many(slot, gfn, NULL, write_fault);
2128 return hva_to_pfn(addr, atomic, async, write_fault,
2133 kvm_pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault,
2137 write_fault, writable);