Home
last modified time | relevance | path

Searched refs:writable (Results 1 – 25 of 141) sorted by relevance

123456

/linux/include/trace/events/
A Dhuge_memory.h53 TP_PROTO(struct mm_struct *mm, struct page *page, bool writable,
56 TP_ARGS(mm, page, writable, referenced, none_or_zero, status, unmapped),
61 __field(bool, writable)
71 __entry->writable = writable;
81 __entry->writable,
115 int referenced, bool writable, int status),
117 TP_ARGS(page, none_or_zero, referenced, writable, status),
123 __field(bool, writable)
131 __entry->writable = writable;
139 __entry->writable,
/linux/drivers/infiniband/hw/usnic/
A Dusnic_uiom.c137 flags |= (writable) ? IOMMU_WRITE : 0; in usnic_uiom_get_pages()
139 gup_flags |= (writable) ? 0 : FOLL_FORCE; in usnic_uiom_get_pages()
221 int writable = 0; in __usnic_uiom_reg_release() local
235 writable = 1; in __usnic_uiom_reg_release()
259 flags |= (uiomr->writable) ? IOMMU_WRITE : 0; in usnic_uiom_map_sorted_intervals()
336 int writable, int dmasync) in usnic_uiom_reg_get() argument
351 writable = 1; in usnic_uiom_reg_get()
366 uiomr->writable = writable; in usnic_uiom_reg_get()
369 err = usnic_uiom_get_pages(addr, size, writable, dmasync, in usnic_uiom_reg_get()
379 (writable) ? IOMMU_WRITE : 0, in usnic_uiom_reg_get()
[all …]
/linux/drivers/crypto/ccp/
A Dsev-dev.c344 if (!writable) in sev_ioctl_do_reset()
392 if (!writable) in sev_ioctl_do_pek_pdh_gen()
413 if (!writable) in sev_ioctl_do_pek_csr()
595 if (!writable) in sev_ioctl_do_pek_import()
743 if (!writable) in sev_ioctl_do_pdh_export()
827 bool writable = file->f_mode & FMODE_WRITE; in sev_ioctl() local
846 ret = sev_ioctl_do_reset(&input, writable); in sev_ioctl()
852 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PEK_GEN, &input, writable); in sev_ioctl()
858 ret = sev_ioctl_do_pek_csr(&input, writable); in sev_ioctl()
861 ret = sev_ioctl_do_pek_import(&input, writable); in sev_ioctl()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dtest_module_attach.c36 struct bpf_testmod_test_writable_ctx *writable) in BPF_PROG() argument
38 raw_tp_writable_bare_in_val = writable->val; in BPF_PROG()
39 writable->early_ret = raw_tp_writable_bare_early_ret; in BPF_PROG()
40 writable->val = raw_tp_writable_bare_out_val; in BPF_PROG()
/linux/tools/testing/selftests/bpf/bpf_testmod/
A Dbpf_testmod.c75 struct bpf_testmod_test_writable_ctx writable = { in bpf_testmod_test_read() local
78 trace_bpf_testmod_test_writable_bare(&writable); in bpf_testmod_test_read()
79 if (writable.early_ret) in bpf_testmod_test_read()
80 return snprintf(buf, len, "%d\n", writable.val); in bpf_testmod_test_read()
/linux/Documentation/vm/
A Darch_pgtable_helpers.rst31 | pte_write | Tests a writable PTE |
51 | pte_mkwrite | Creates a writable PTE |
101 | pmd_write | Tests a writable PMD |
121 | pmd_mkwrite | Creates a writable PMD |
175 | pud_write | Tests a writable PUD |
187 | pud_mkwrite | Creates a writable PUD |
221 | huge_pte_write | Tests a writable HugeTLB |
225 | huge_pte_mkwrite | Creates a writable HugeTLB |
/linux/Documentation/virt/kvm/
A Dlocking.rst58 What we use to avoid all the race is the Host-writable bit and MMU-writable bit
61 - Host-writable means the gfn is writable in the host kernel page tables and in
63 - MMU-writable means the gfn is writable in the guest's mmu and it is not
123 - The pfn is writable and therefore it cannot be shared between different gfns
135 writable between reading spte and updating spte. Like below case:
182 If the spte is updated from writable to readonly, we should flush all TLBs,
184 writable spte might be cached on a CPU's TLB.
186 As mentioned before, the spte can be updated to writable out of mmu-lock on
/linux/drivers/mfd/
A Dwm8350-regmap.c19 u16 writable; /* Mask of writable bits */ member
298 return wm8350_reg_io_map[reg].writable; in wm8350_writeable()
/linux/Documentation/devicetree/bindings/nvmem/
A Dqcom,qfprom.yaml33 # needs to be provided. If the QFPROM is writable then all 4 regions
44 # Clock must be provided if QFPROM is writable from the OS image.
50 # Supply reference must be provided if QFPROM is writable from the OS image.
/linux/drivers/infiniband/sw/siw/
A Dsiw_mem.c78 umem->writable && dirty); in siw_umem_release()
365 struct siw_umem *siw_umem_get(u64 start, u64 len, bool writable) in siw_umem_get() argument
390 umem->writable = writable; in siw_umem_get()
394 if (!writable) in siw_umem_get()
/linux/drivers/infiniband/hw/hfi1/
A Duser_pages.c62 bool writable, struct page **pages) in hfi1_acquire_user_pages() argument
65 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages()
/linux/fs/fuse/
A Ddax.c56 bool writable; member
183 struct fuse_dax_mapping *dmap, bool writable, in fuse_setup_one_mapping() argument
203 if (writable) in fuse_setup_one_mapping()
213 dmap->writable = writable; in fuse_setup_one_mapping()
440 bool writable = flags & IOMAP_WRITE; in fuse_setup_new_dax_mapping() local
488 writable, false); in fuse_setup_new_dax_mapping()
542 if (dmap->writable) { in fuse_upgrade_dax_mapping()
568 bool writable = flags & IOMAP_WRITE; in fuse_iomap_begin() local
592 if (writable && !dmap->writable) { in fuse_iomap_begin()
/linux/drivers/infiniband/core/
A Dumem.c50 bool make_dirty = umem->writable && dirty; in __ib_umem_release()
186 umem->writable = ib_access_writable(access); in ib_umem_get()
213 if (!umem->writable) in ib_umem_get()
A Dumem_odp.c133 umem->writable = ib_access_writable(access); in ib_umem_odp_alloc_implicit()
182 umem->writable = root->umem.writable; in ib_umem_odp_alloc_child()
243 umem_odp->umem.writable = ib_access_writable(access); in ib_umem_odp_get()
/linux/arch/arm64/kvm/
A Dmmu.c643 phys_addr_t pa, unsigned long size, bool writable) in kvm_phys_addr_ioremap() argument
651 (writable ? KVM_PGTABLE_PROT_W : 0); in kvm_phys_addr_ioremap()
947 bool write_fault, writable, force_pte = false; in user_mem_abort() local
1060 write_fault, &writable, NULL); in user_mem_abort()
1085 writable = false; in user_mem_abort()
1119 if (writable) in user_mem_abort()
1144 if (writable && !ret) { in user_mem_abort()
1192 bool is_iabt, write_fault, writable; in kvm_handle_guest_abort() local
1230 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in kvm_handle_guest_abort()
1232 if (kvm_is_error_hva(hva) || (write_fault && !writable)) { in kvm_handle_guest_abort()
/linux/virt/kvm/
A Dkvm_main.c2264 if (writable) in hva_to_pfn_fast()
2265 *writable = true; in hva_to_pfn_fast()
2285 if (writable) in hva_to_pfn_slow()
2302 *writable = true; in hva_to_pfn_slow()
2364 if (writable) in hva_to_pfn_remapped()
2467 if (writable) in __gfn_to_pfn_memslot()
2468 *writable = false; in __gfn_to_pfn_memslot()
2473 if (writable) in __gfn_to_pfn_memslot()
2480 *writable = false; in __gfn_to_pfn_memslot()
2481 writable = NULL; in __gfn_to_pfn_memslot()
[all …]
/linux/tools/testing/selftests/kvm/lib/x86_64/
A Dvmx.c25 uint64_t writable:1; member
430 pml4e[index[3]].writable = true; in nested_pg_map()
440 pdpe[index[2]].writable = true; in nested_pg_map()
450 pde[index[1]].writable = true; in nested_pg_map()
459 pte[index[0]].writable = true; in nested_pg_map()
/linux/Documentation/security/
A Dself-protection.rst37 APIs hard to use incorrectly, minimizing the areas of writable kernel
43 When all of kernel memory is writable, it becomes trivial for attacks
47 Executable code and read-only data must not be writable
50 Any areas of the kernel with executable memory must not be writable.
56 made writable during the update, and then returned to the original
61 writable, data is not executable, and read-only data is neither writable
70 Function pointers and sensitive variables must not be writable
/linux/arch/arm/
A DKconfig-nommu50 vectors to be mapped to writable memory, say 'n' here.
54 the writable versions located at DRAM_BASE.
/linux/Documentation/ABI/testing/
A Dsysfs-kernel-livepatch24 A writable attribute that indicates whether the patched
41 A writable attribute that allows administrator to affect the
/linux/drivers/misc/eeprom/
A Dat24.c600 bool writable; in at24_probe() local
702 writable = !(flags & AT24_FLAG_READONLY); in at24_probe()
703 if (writable) { in at24_probe()
737 nvmem_config.read_only = !writable; in at24_probe()
788 if (writable) in at24_probe()
/linux/arch/riscv/kvm/
A Dmmu.c381 unsigned long size, bool writable) in stage2_ioremap() argument
395 if (!writable) in stage2_ioremap()
486 bool writable = !(mem->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region() local
526 if (writable && !(vma->vm_flags & VM_WRITE)) { in kvm_arch_prepare_memory_region()
550 vm_end - vm_start, writable); in kvm_arch_prepare_memory_region()
/linux/arch/powerpc/kvm/
A Dbook3s_32_mmu_host.c145 bool writable; in kvmppc_mmu_map_page() local
148 hpaddr = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable); in kvmppc_mmu_map_page()
198 if (orig_pte->may_write && writable) { in kvmppc_mmu_map_page()
A Dbook3s_64_mmu_host.c85 bool writable; in kvmppc_mmu_map_page() local
97 pfn = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable); in kvmppc_mmu_map_page()
125 if (!orig_pte->may_write || !writable) in kvmppc_mmu_map_page()
/linux/Documentation/admin-guide/mm/
A Dsoft-dirty.rst24 Internally, to do this tracking, the writable bit is cleared from PTEs
32 the kernel does is finds this fact out and puts both writable and soft-dirty

Completed in 71 milliseconds

123456