Lines Matching refs:writable
2187 gfn_t gfn, bool *writable) in gfn_to_hva_memslot_prot() argument
2191 if (!kvm_is_error_hva(hva) && writable) in gfn_to_hva_memslot_prot()
2192 *writable = !memslot_is_readonly(slot); in gfn_to_hva_memslot_prot()
2197 unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable) in gfn_to_hva_prot() argument
2201 return gfn_to_hva_memslot_prot(slot, gfn, writable); in gfn_to_hva_prot()
2204 unsigned long kvm_vcpu_gfn_to_hva_prot(struct kvm_vcpu *vcpu, gfn_t gfn, bool *writable) in kvm_vcpu_gfn_to_hva_prot() argument
2208 return gfn_to_hva_memslot_prot(slot, gfn, writable); in kvm_vcpu_gfn_to_hva_prot()
2225 bool *writable, kvm_pfn_t *pfn) in hva_to_pfn_fast() argument
2234 if (!(write_fault || writable)) in hva_to_pfn_fast()
2240 if (writable) in hva_to_pfn_fast()
2241 *writable = true; in hva_to_pfn_fast()
2253 bool *writable, kvm_pfn_t *pfn) in hva_to_pfn_slow() argument
2261 if (writable) in hva_to_pfn_slow()
2262 *writable = write_fault; in hva_to_pfn_slow()
2274 if (unlikely(!write_fault) && writable) { in hva_to_pfn_slow()
2278 *writable = true; in hva_to_pfn_slow()
2307 bool write_fault, bool *writable, in hva_to_pfn_remapped() argument
2340 if (writable) in hva_to_pfn_remapped()
2341 *writable = pte_write(*ptep); in hva_to_pfn_remapped()
2386 bool write_fault, bool *writable) in hva_to_pfn() argument
2395 if (hva_to_pfn_fast(addr, write_fault, writable, &pfn)) in hva_to_pfn()
2401 npages = hva_to_pfn_slow(addr, async, write_fault, writable, &pfn); in hva_to_pfn()
2418 r = hva_to_pfn_remapped(vma, addr, async, write_fault, writable, &pfn); in hva_to_pfn()
2435 bool *writable, hva_t *hva) in __gfn_to_pfn_memslot() argument
2443 if (writable) in __gfn_to_pfn_memslot()
2444 *writable = false; in __gfn_to_pfn_memslot()
2449 if (writable) in __gfn_to_pfn_memslot()
2450 *writable = false; in __gfn_to_pfn_memslot()
2455 if (writable && memslot_is_readonly(slot)) { in __gfn_to_pfn_memslot()
2456 *writable = false; in __gfn_to_pfn_memslot()
2457 writable = NULL; in __gfn_to_pfn_memslot()
2461 writable); in __gfn_to_pfn_memslot()
2466 bool *writable) in gfn_to_pfn_prot() argument
2469 write_fault, writable, NULL); in gfn_to_pfn_prot()