Lines Matching defs:write
445 * kvm_arch_mmu_enable_log_dirty_pt_masked() - write protect dirty pages
450 * slot to be write protected
452 * Walks bits set in mask write protects the associated pte's. Caller must
479 * If dirty page logging is enabled, write protect all pages in the slot
936 unsigned long hva, bool write)
945 if ((memslot->flags & KVM_MEM_LOG_DIRTY_PAGES) && write)
999 * @write: Whether the fault was due to a write.
1007 * -EFAULT on failure due to absent GPA mapping or write to
1011 bool write)
1037 if (write && !pte_dirty(*ptep)) {
1045 * Do not set write permission when dirty logging is
1104 * @write: Whether the fault was due to a write.
1117 * -EFAULT if there is no memory region at @gpa or a write was
1122 bool write)
1141 err = kvm_map_page_fast(vcpu, gpa, write);
1147 if (kvm_is_error_hva(hva) || (write && !writeable))
1162 !fault_supports_huge_mapping(memslot, hva, write)) {
1199 pfn = gfn_to_pfn_prot(kvm, gfn, write, &writeable);
1234 if (fault_supports_huge_mapping(memslot, hva, write) &&
1250 if (write) {
1260 if (writeable && write) {
1270 if (writeable && write)
1275 if (ptep && kvm_pte_huge(*ptep) && write)
1291 bool write)
1295 ret = kvm_map_page(vcpu, badv, write);