/Linux-v5.4/mm/ |
D | hmm.c | 224 bool write_fault, uint64_t *pfn) in hmm_vma_do_fault() argument 237 if (write_fault) in hmm_vma_do_fault() 284 bool fault, bool write_fault, in hmm_vma_walk_hole_() argument 295 if (write_fault && walk->vma && !(walk->vma->vm_flags & VM_WRITE)) in hmm_vma_walk_hole_() 300 if (fault || write_fault) { in hmm_vma_walk_hole_() 303 ret = hmm_vma_do_fault(walk, addr, write_fault, in hmm_vma_walk_hole_() 310 return (fault || write_fault) ? -EBUSY : 0; in hmm_vma_walk_hole_() 315 bool *fault, bool *write_fault) in hmm_pte_need_fault() argument 341 *write_fault = pfns & range->flags[HMM_PFN_WRITE]; in hmm_pte_need_fault() 352 *write_fault = true; in hmm_pte_need_fault() [all …]
|
/Linux-v5.4/arch/x86/kvm/ |
D | paging_tmpl.h | 223 int write_fault) in FNAME() 244 if (level == walker->level && write_fault && in FNAME() 311 const int write_fault = access & PFERR_WRITE_MASK; in FNAME() local 433 if (!write_fault) in FNAME() 445 ret = FNAME(update_accessed_dirty_bits)(vcpu, mmu, walker, write_fault); in FNAME() 457 errcode |= write_fault | user_fault; in FNAME() 482 if (write_fault) in FNAME() 616 int write_fault, int hlevel, in FNAME() 704 ret = mmu_set_spte(vcpu, it.sptep, gw->pte_access, write_fault, in FNAME() 771 int write_fault = error_code & PFERR_WRITE_MASK; in FNAME() local [all …]
|
D | mmu.c | 3149 int write_fault, int level, gfn_t gfn, kvm_pfn_t pfn, in mmu_set_spte() argument 3159 *sptep, write_fault, gfn); in mmu_set_spte() 3186 if (write_fault) in mmu_set_spte()
|
/Linux-v5.4/arch/mips/kvm/ |
D | mmu.c | 611 bool write_fault, in _kvm_mips_map_page_fast() argument 637 if (write_fault && !pte_dirty(*ptep)) { in _kvm_mips_map_page_fast() 687 bool write_fault, in kvm_mips_map_page() argument 702 err = _kvm_mips_map_page_fast(vcpu, gpa, write_fault, out_entry, in kvm_mips_map_page() 733 pfn = gfn_to_pfn_prot(kvm, gfn, write_fault, &writeable); in kvm_mips_map_page() 759 if (write_fault) { in kvm_mips_map_page() 989 bool write_fault) in kvm_mips_handle_vz_root_tlb_fault() argument 993 ret = kvm_mips_map_page(vcpu, badvaddr, write_fault, NULL, NULL); in kvm_mips_handle_vz_root_tlb_fault() 1005 bool write_fault) in kvm_mips_handle_kseg0_tlb_fault() argument 1020 if (kvm_mips_map_page(vcpu, gpa, write_fault, &pte_gpa[idx], in kvm_mips_handle_kseg0_tlb_fault() [all …]
|
D | emulate.c | 2761 bool write_fault) in kvm_mips_handle_tlbmiss() argument 2818 write_fault)) { in kvm_mips_handle_tlbmiss()
|
/Linux-v5.4/virt/kvm/ |
D | kvm_main.c | 1512 static bool hva_to_pfn_fast(unsigned long addr, bool write_fault, in hva_to_pfn_fast() argument 1523 if (!(write_fault || writable)) in hva_to_pfn_fast() 1542 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault, in hva_to_pfn_slow() argument 1552 *writable = write_fault; in hva_to_pfn_slow() 1554 if (write_fault) in hva_to_pfn_slow() 1564 if (unlikely(!write_fault) && writable) { in hva_to_pfn_slow() 1577 static bool vma_is_valid(struct vm_area_struct *vma, bool write_fault) in vma_is_valid() argument 1582 if (write_fault && (unlikely(!(vma->vm_flags & VM_WRITE)))) in vma_is_valid() 1590 bool write_fault, bool *writable, in hva_to_pfn_remapped() argument 1604 (write_fault ? FAULT_FLAG_WRITE : 0), in hva_to_pfn_remapped() [all …]
|
/Linux-v5.4/fs/xfs/ |
D | xfs_file.c | 1142 bool write_fault) in __xfs_filemap_fault() argument 1148 trace_xfs_filemap_fault(ip, pe_size, write_fault); in __xfs_filemap_fault() 1150 if (write_fault) { in __xfs_filemap_fault() 1163 if (write_fault) in __xfs_filemap_fault() 1170 if (write_fault) in __xfs_filemap_fault()
|
D | xfs_trace.h | 660 bool write_fault), 661 TP_ARGS(ip, pe_size, write_fault), 666 __field(bool, write_fault) 672 __entry->write_fault = write_fault; 681 __entry->write_fault)
|
/Linux-v5.4/virt/kvm/arm/ |
D | mmu.c | 1669 bool write_fault, writable, force_pte = false; in user_mem_abort() local 1681 write_fault = kvm_is_write_fault(vcpu); in user_mem_abort() 1683 VM_BUG_ON(write_fault && exec_fault); in user_mem_abort() 1685 if (fault_status == FSC_PERM && !write_fault && !exec_fault) { in user_mem_abort() 1736 pfn = gfn_to_pfn_prot(kvm, gfn, write_fault, &writable); in user_mem_abort() 1759 if (!write_fault) in user_mem_abort() 1905 bool is_iabt, write_fault, writable; in kvm_handle_guest_abort() local 1947 write_fault = kvm_is_write_fault(vcpu); in kvm_handle_guest_abort() 1948 if (kvm_is_error_hva(hva) || (write_fault && !writable)) { in kvm_handle_guest_abort()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | kvm_host.h | 855 struct kvm_vcpu *vcpu, bool write_fault); 859 bool write_fault); 867 bool write_fault); 873 bool write_fault);
|
/Linux-v5.4/include/linux/ |
D | kvm_host.h | 717 kvm_pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault, 722 bool atomic, bool *async, bool write_fault,
|