Home
last modified time | relevance | path

Searched refs:readonly (Results 1 – 25 of 66) sorted by relevance

123

/qemu/backends/
H A Dhostmem-file.c35 bool readonly; member
63 fb->rom = fb->readonly ? ON_OFF_AUTO_ON : ON_OFF_AUTO_OFF; in file_backend_memory_alloc()
66 if (!fb->readonly) { in file_backend_memory_alloc()
73 if (fb->readonly && backend->share) { in file_backend_memory_alloc()
85 ram_flags |= fb->readonly ? RAM_READONLY_FD : 0; in file_backend_memory_alloc()
214 return fb->readonly; in file_memory_backend_get_readonly()
229 fb->readonly = value; in file_memory_backend_set_readonly()
H A Diommufd.c143 ram_addr_t size, void *vaddr, bool readonly) in iommufd_backend_map_dma() argument
157 if (!readonly) { in iommufd_backend_map_dma()
163 vaddr, readonly, ret); in iommufd_backend_map_dma()
H A Dtrace-events13 …nt64_t size, void *vaddr, bool readonly, int ret) " iommufd=%d ioas=%d iova=0x%"PRIx64" size=0x%"P…
/qemu/hw/sd/
H A Dcore.c225 void sdbus_set_readonly(SDBus *sdbus, bool readonly) in sdbus_set_readonly() argument
231 sbc->set_readonly(qbus->parent, readonly); in sdbus_set_readonly()
239 bool readonly; in sdbus_reparent_card() local
254 readonly = sc->get_readonly(card); in sdbus_reparent_card()
259 sdbus_set_readonly(to, readonly); in sdbus_reparent_card()
H A Dpxa2xx_mmci.c39 qemu_irq readonly; member
497 static void pxa2xx_mmci_set_readonly(DeviceState *dev, bool readonly) in pxa2xx_mmci_set_readonly() argument
501 qemu_set_irq(s->readonly, readonly); in pxa2xx_mmci_set_readonly()
504 void pxa2xx_mmci_handlers(PXA2xxMMCIState *s, qemu_irq readonly, in pxa2xx_mmci_handlers() argument
509 s->readonly = readonly; in pxa2xx_mmci_handlers()
/qemu/util/
H A Dmmap-alloc.c88 const bool readonly = qemu_map_flags & QEMU_MAP_READONLY; in map_noreserve_effective() local
113 if (readonly || (shared && fd >= 0)) { in map_noreserve_effective()
188 const bool readonly = qemu_map_flags & QEMU_MAP_READONLY; in mmap_activate() local
191 const int prot = PROT_READ | (readonly ? 0 : PROT_WRITE); in mmap_activate()
/qemu/
H A Dqemu-io.c170 int readonly = 0; in open_f() local
191 readonly = 1; in open_f()
238 if (!readonly) { in open_f()
498 int readonly = 0; in main() local
569 readonly = 1; in main()
648 if (!readonly) { in main()
/qemu/docs/system/
H A Dvm-templating.rst40 to the file) and ``readonly=off`` (open the file writable). Note that
41 ``readonly=off`` is implicit.
63 stay private), ``readonly=on`` (open the file readonly) and ``rom=off``
64 (don't make the memory readonly for the VM). Note that ``share=off`` is
73 -object memory-backend-file,id=pc.ram,mem-path=template,size=2g,readonly=on,rom=off,... \\
H A Dtarget-sparc64.rst21 -drive if=pflash,readonly=on,file=/S10image/disk.s10hw2
/qemu/hw/ppc/
H A Dpnv_bmc.c179 bool readonly = false; in hiomap_cmd() local
212 readonly = true; in hiomap_cmd()
216 memory_region_set_readonly(&pnor->mmio, readonly); in hiomap_cmd()
/qemu/hw/vfio/
H A Dcontainer-base.c20 void *vaddr, bool readonly) in vfio_container_dma_map() argument
23 return bcontainer->ops->dma_map(bcontainer, iova, size, vaddr, readonly); in vfio_container_dma_map()
/qemu/system/
H A Dmemory.c225 bool readonly; member
242 .readonly = fr->readonly, in section_from_flat_range()
254 && a->readonly == b->readonly in flatrange_equal()
328 && r1->readonly == r2->readonly in can_merge()
605 bool readonly, in render_memory_region() argument
622 readonly |= mr->readonly; in render_memory_region()
659 fr.readonly = readonly; in render_memory_region()
1720 mr->readonly = true; in memory_region_init_rom_nomigrate()
2391 if (mr->readonly != readonly) { in memory_region_set_readonly()
2393 mr->readonly = readonly; in memory_region_set_readonly()
[all …]
/qemu/include/hw/vfio/
H A Dvfio-container-base.h75 void *vaddr, bool readonly);
116 void *vaddr, bool readonly);
/qemu/tests/qemu-iotests/
H A D223.out70 {"error": {"class": "GenericError", "desc": "Enabled bitmap 'b2' incompatible with readonly export"…
86 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
107 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
192 {"error": {"class": "GenericError", "desc": "Enabled bitmap 'b2' incompatible with readonly export"…
208 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
229 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
H A D307.out18 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
47 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
79 flags: 0x158f ( readonly flush fua df multi cache block-status-payload )
H A D051.pc.out197 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
201 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
205 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
209 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
213 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
217 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-c…
221 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
225 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-h…
394 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
395 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'reado…
/qemu/include/hw/sd/
H A Dsdcard_legacy.h39 void sd_set_cb(SDState *card, qemu_irq readonly, qemu_irq insert);
/qemu/include/exec/
H A Dmemory.h106 bool readonly; member
810 bool readonly; /* For RAM regions */ member
1225 a->readonly == b->readonly && in MemoryRegionSection_eq()
1999 return mr->ram && mr->readonly; in memory_region_is_rom()
2219 void memory_region_set_readonly(MemoryRegion *mr, bool readonly);
3053 return memory_region_is_ram(mr) && !mr->readonly && in memory_access_is_direct()
/qemu/hw/block/
H A Dblock.c199 bool blkconf_apply_backend_options(BlockConf *conf, bool readonly, in blkconf_apply_backend_options() argument
209 if (!readonly) { in blkconf_apply_backend_options()
/qemu/tests/qemu-iotests/tests/
H A Dremove-bitmap-from-backing.out3 {"error": {"class": "GenericError", "desc": "Bitmap 'bitmap0' is readonly and cannot be modified"}}
/qemu/include/sysemu/
H A Diommufd.h33 ram_addr_t size, void *vaddr, bool readonly);
/qemu/hw/mem/
H A Dnvdimm.c158 nvdimm->readonly = true; in nvdimm_prepare_memory_region()
216 assert(!is_write || !nvdimm->readonly); in nvdimm_validate_rw_label_data()
/qemu/include/hw/virtio/
H A Dvhost-vdpa.h82 hwaddr size, void *vaddr, bool readonly);
/qemu/include/hw/mem/
H A Dnvdimm.h84 bool readonly; member
/qemu/block/
H A Ddirty-bitmap.c43 bool readonly; /* Bitmap is read-only. This field also member
691 return bitmap->readonly; in bdrv_dirty_bitmap_readonly()
698 bitmap->readonly = value; in bdrv_dirty_bitmap_set_readonly()
706 if (bm->readonly) { in bdrv_has_readonly_bitmaps()

123