Home
last modified time | relevance | path

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

12345678

/linux/Documentation/mm/
H A Darch_pgtable_helpers.rst27 | pte_write | Tests a writable PTE |
45 | pte_mkwrite | Creates a writable PTE of the type specified by |
48 | pte_mkwrite_novma | Creates a writable PTE, of the conventional type |
49 | | of writable. |
97 | pmd_write | Tests a writable PMD |
115 | pmd_mkwrite | Creates a writable PMD of the type specified by |
118 | pmd_mkwrite_novma | Creates a writable PMD, of the conventional type |
119 | | of writable. |
170 | pud_write | Tests a writable PUD |
180 | pud_mkwrite | Creates a writable PUD |
[all …]
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom.c84 static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, in usnic_uiom_get_pages() argument
134 if (writable) in usnic_uiom_get_pages()
216 int writable = 0; in __usnic_uiom_reg_release() local
230 writable = 1; in __usnic_uiom_reg_release()
235 usnic_uiom_put_pages(&uiomr->chunk_list, dirty & writable); in __usnic_uiom_reg_release()
254 flags |= (uiomr->writable) ? IOMMU_WRITE : 0; in usnic_uiom_map_sorted_intervals()
331 int writable, int dmasync) in usnic_uiom_reg_get() argument
346 writable = 1; in usnic_uiom_reg_get()
361 uiomr->writable = writable; in usnic_uiom_reg_get()
364 err = usnic_uiom_get_pages(addr, size, writable, dmasync, in usnic_uiom_reg_get()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H 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/arch/riscv/kvm/
H A Dmmu.c39 unsigned long size, bool writable, bool in_atomic) in kvm_riscv_mmu_ioremap() argument
67 if (!writable) in kvm_riscv_mmu_ioremap()
174 bool writable; in kvm_arch_prepare_memory_region() local
192 writable = !(new->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region()
219 if (writable && !(vma->vm_flags & VM_WRITE)) { in kvm_arch_prepare_memory_region()
311 bool writable; in kvm_riscv_mmu_map() local
377 &writable, &page); in kvm_riscv_mmu_map()
391 writable = false; in kvm_riscv_mmu_map()
398 if (writable) { in kvm_riscv_mmu_map()
411 kvm_release_faultin_page(kvm, page, ret && ret != -EEXIST, writable); in kvm_riscv_mmu_map()
H A Dvcpu_exit.c21 bool writable; in gstage_page_fault() local
28 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in gstage_page_fault()
31 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault()
/linux/arch/powerpc/kvm/
H A De500_mmu_host.c48 static inline u32 e500_shadow_mas3_attrib(u32 mas3, bool writable, int usermode) in e500_shadow_mas3_attrib() argument
53 if (!writable) in e500_shadow_mas3_attrib()
251 bool writable) in kvmppc_e500_ref_setup() argument
255 if (writable) in kvmppc_e500_ref_setup()
312 bool writable = !!(ref->flags & E500_TLB_WRITABLE); in kvmppc_e500_setup_stlbe() local
320 e500_shadow_mas3_attrib(gtlbe->mas7_3, writable, pr); in kvmppc_e500_setup_stlbe()
341 bool writable = false; in kvmppc_e500_shadow_map() local
358 pfn = __kvm_faultin_pfn(slot, gfn, FOLL_WRITE, &writable, &page); in kvmppc_e500_shadow_map()
458 kvmppc_e500_ref_setup(ref, gtlbe, pfn, wimg, writable); in kvmppc_e500_shadow_map()
461 writable = tlbe_is_writable(stlbe); in kvmppc_e500_shadow_map()
[all …]
H A Dbook3s_64_mmu_host.c85 bool writable; in kvmppc_mmu_map_page() local
98 pfn = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable, &page); in kvmppc_mmu_map_page()
125 if (!orig_pte->may_write || !writable) in kvmppc_mmu_map_page()
205 orig_pte->may_write && writable); in kvmppc_mmu_map_page()
H A Dbook3s_32_mmu_host.c144 bool writable; in kvmppc_mmu_map_page() local
147 hpaddr = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable, &page); in kvmppc_mmu_map_page()
197 if (orig_pte->may_write && writable) { in kvmppc_mmu_map_page()
/linux/security/loadpin/
H A Dloadpin.c83 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument
89 writable ? "writable" : "read-only"); in report_writable()
93 if (!writable) in report_writable()
103 bool writable = true; in sb_is_writable() local
106 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
108 return writable; in sb_is_writable()
/linux/Documentation/virt/kvm/
H A Dlocking.rst78 What we use to avoid all the races is the Host-writable bit and MMU-writable bit
81 - Host-writable means the gfn is writable in the host kernel page tables and in
83 - MMU-writable means the gfn is writable in the guest's mmu and it is not
143 - The pfn is writable and therefore it cannot be shared between different gfns
155 writable between reading spte and updating spte. Like below case:
204 If the spte is updated from writable to read-only, we should flush all TLBs,
206 writable spte might be cached on a CPU's TLB.
208 As mentioned before, the spte can be updated to writable out of mmu-lock on
/linux/arch/arm64/kvm/
H A Dmmu.c1145 phys_addr_t pa, unsigned long size, bool writable) in kvm_phys_addr_ioremap() argument
1154 (writable ? KVM_PGTABLE_PROT_W : 0); in kvm_phys_addr_ioremap()
1515 bool *writable) in adjust_nested_fault_perms() argument
1517 *writable &= kvm_s2_trans_writable(nested); in adjust_nested_fault_perms()
1530 bool write_fault, exec_fault, writable; in gmem_abort() local
1567 writable = !(memslot->flags & KVM_MEM_READONLY); in gmem_abort()
1570 adjust_nested_fault_perms(nested, &prot, &writable); in gmem_abort()
1572 if (writable) in gmem_abort()
1591 kvm_release_faultin_page(kvm, page, !!ret, writable); in gmem_abort()
1594 if (writable && !ret) in gmem_abort()
[all …]
/linux/drivers/crypto/ccp/
H A Dsev-dev.c1729 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument
1733 if (!writable) in sev_ioctl_do_reset()
1778 static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_pdh_gen() argument
1784 if (!writable) in sev_ioctl_do_pek_pdh_gen()
1801 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument
1811 if (!writable) in sev_ioctl_do_pek_csr()
2100 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument
2109 if (!writable) in sev_ioctl_do_pek_import()
2255 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument
2307 if (!writable) { in sev_ioctl_do_pdh_export()
[all …]
/linux/drivers/mfd/
H A Dwm8350-regmap.c19 u16 writable; /* Mask of writable bits */ member
298 return wm8350_reg_io_map[reg].writable; in wm8350_writeable()
/linux/drivers/infiniband/hw/hfi1/
H A Duser_pages.c81 bool writable, struct page **pages) in hfi1_acquire_user_pages() argument
84 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages()
/linux/drivers/iommu/iommufd/
H A Dio_pagetable.h213 bool writable:1; member
224 unsigned long length, bool writable);
226 unsigned long length, bool writable);
/linux/drivers/virt/acrn/
H A Dmm.c180 bool writable; in acrn_vm_ram_map() local
200 writable = args.writable; in acrn_vm_ram_map()
204 if (!writable && in acrn_vm_ram_map()
/linux/fs/fuse/
H A Ddax.c55 bool writable; member
182 struct fuse_dax_mapping *dmap, bool writable, in fuse_setup_one_mapping() argument
202 if (writable) in fuse_setup_one_mapping()
212 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/
H A Dumem.c50 bool make_dirty = umem->writable && dirty; in __ib_umem_release()
197 umem->writable = ib_access_writable(access); in ib_umem_get()
224 if (umem->writable) in ib_umem_get()
H A Dumem_odp.c148 umem->writable = ib_access_writable(access); in ib_umem_odp_alloc_implicit()
191 umem->writable = root->umem.writable; in ib_umem_odp_alloc_child()
251 umem_odp->umem.writable = ib_access_writable(access); in ib_umem_odp_get()
/linux/arch/arm/
H A DKconfig-nommu50 vectors to be mapped to writable memory, say 'n' here.
54 the writable versions located at DRAM_BASE.
/linux/Documentation/security/
H 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/Documentation/admin-guide/mm/
H A Dsoft-dirty.rst22 Internally, to do this tracking, the writable bit is cleared from PTEs
30 the kernel does is finds this fact out and puts both writable and soft-dirty
/linux/arch/riscv/include/asm/
H A Dkvm_mmu.h12 unsigned long size, bool writable, bool in_atomic);
/linux/drivers/misc/eeprom/
H A Dat24.c608 bool writable; in at24_probe() local
710 writable = !(flags & AT24_FLAG_READONLY); in at24_probe()
711 if (writable) { in at24_probe()
745 nvmem_config.read_only = !writable; in at24_probe()
801 if (writable) in at24_probe()
/linux/include/linux/
H A Dmm_types_task.h87 bool writable; member

12345678