Lines Matching defs:writable

2717  * @writable: used to return the read/write attribute of the @slot if the hva
2718 * is valid and @writable is not NULL
2721 gfn_t gfn, bool *writable)
2725 if (!kvm_is_error_hva(hva) && writable)
2726 *writable = !memslot_is_readonly(slot);
2731 unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable)
2735 return gfn_to_hva_memslot_prot(slot, gfn, writable);
2738 unsigned long kvm_vcpu_gfn_to_hva_prot(struct kvm_vcpu *vcpu, gfn_t gfn, bool *writable)
2742 return gfn_to_hva_memslot_prot(slot, gfn, writable);
2754 * The fast path to get the writable pfn which will be stored in @pfn,
2759 bool *writable, kvm_pfn_t *pfn)
2764 * Fast pin a writable pfn only if it is a write fault request
2765 * or the caller allows to map a writable pfn for a read fault
2768 if (!(write_fault || writable))
2774 if (writable)
2775 *writable = true;
2787 bool interruptible, bool *writable, kvm_pfn_t *pfn)
2806 if (writable)
2807 *writable = write_fault;
2820 /* map read fault as writable if possible */
2821 if (unlikely(!write_fault) && writable) {
2825 *writable = true;
2857 bool *writable, kvm_pfn_t *p_pfn)
2892 if (writable)
2893 *writable = pte_write(pte);
2930 * @write_fault: whether we should get a writable host page
2931 * @writable: whether it allows to map a writable host page for !@write_fault
2933 * The function will map a writable host page for these two cases:
2935 * 2): @write_fault = false && @writable, @writable will tell the caller
2936 * whether the mapping is writable.
2939 bool *async, bool write_fault, bool *writable)
2948 if (hva_to_pfn_fast(addr, write_fault, writable, &pfn))
2955 writable, &pfn);
2974 r = hva_to_pfn_remapped(vma, addr, write_fault, writable, &pfn);
2991 bool write_fault, bool *writable, hva_t *hva)
2999 if (writable)
3000 *writable = false;
3006 /* Do not map writable pfn in the readonly memslot. */
3007 if (writable && memslot_is_readonly(slot)) {
3008 *writable = false;
3009 writable = NULL;
3013 writable);
3018 bool *writable)
3021 NULL, write_fault, writable, NULL);