/qemu/backends/ |
H A D | hostmem-file.c | 35 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() 86 ram_flags |= fb->readonly ? RAM_READONLY_FD : 0; in file_backend_memory_alloc() 215 return fb->readonly; in file_memory_backend_get_readonly() 230 fb->readonly = value; in file_memory_backend_set_readonly()
|
H A D | trace-events | 13 …nt64_t size, void *vaddr, bool readonly, int ret) " iommufd=%d ioas=%d iova=0x%"PRIx64" size=0x%"P…
|
H A D | iommufd.c | 143 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()
|
/qemu/hw/sd/ |
H A D | core.c | 226 void sdbus_set_readonly(SDBus *sdbus, bool readonly) in sdbus_set_readonly() argument 232 sbc->set_readonly(qbus->parent, readonly); in sdbus_set_readonly() 240 bool readonly; in sdbus_reparent_card() local 255 readonly = sc->get_readonly(card); in sdbus_reparent_card() 260 sdbus_set_readonly(to, readonly); in sdbus_reparent_card()
|
/qemu/util/ |
H A D | mmap-alloc.c | 88 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 D | qemu-io.c | 170 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 D | vm-templating.rst | 40 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 D | target-sparc64.rst | 21 -drive if=pflash,readonly=on,file=/S10image/disk.s10hw2
|
/qemu/hw/ppc/ |
H A D | pnv_bmc.c | 179 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/system/ |
H A D | memory.c | 225 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() 543 !mr->ram_device && !mr->ram && !mr->rom_device && !mr->readonly) { in access_with_adjusted_size() 596 bool readonly, in render_memory_region() argument 613 readonly |= mr->readonly; in render_memory_region() 629 readonly, nonvolatile, unmergeable); in render_memory_region() 636 readonly, nonvolatile, unmergeable); in render_memory_region() 650 fr.readonly = readonly; in render_memory_region() [all …]
|
/qemu/include/hw/vfio/ |
H A D | vfio-container-base.h | 81 void *vaddr, bool readonly); 124 void *vaddr, bool readonly);
|
/qemu/tests/qemu-iotests/ |
H A D | 223.out | 70 {"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 D | 307.out | 18 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 D | 051.pc.out | 197 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/system/ |
H A D | memory.h | 105 bool readonly; member 773 bool readonly; /* For RAM regions */ member 1190 a->readonly == b->readonly && in MemoryRegionSection_eq() 1946 return mr->ram && mr->readonly; in memory_region_is_rom() 2166 void memory_region_set_readonly(MemoryRegion *mr, bool readonly); 3031 return !mr->readonly && !mr->rom_device; in memory_access_is_direct()
|
H A D | iommufd.h | 47 ram_addr_t size, void *vaddr, bool readonly);
|
/qemu/tests/qemu-iotests/tests/ |
H A D | remove-bitmap-from-backing.out | 3 {"error": {"class": "GenericError", "desc": "Bitmap 'bitmap0' is readonly and cannot be modified"}}
|
/qemu/hw/block/ |
H A D | block.c | 204 bool blkconf_apply_backend_options(BlockConf *conf, bool readonly, in blkconf_apply_backend_options() argument 214 if (!readonly) { in blkconf_apply_backend_options()
|
/qemu/hw/mem/ |
H A D | nvdimm.c | 158 nvdimm->readonly = true; in nvdimm_prepare_memory_region() 216 assert(!is_write || !nvdimm->readonly); in nvdimm_validate_rw_label_data()
|
/qemu/block/ |
H A D | dirty-bitmap.c | 43 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()
|
/qemu/include/hw/virtio/ |
H A D | vhost-vdpa.h | 82 hwaddr size, void *vaddr, bool readonly);
|
/qemu/hw/vfio/ |
H A D | container-base.c | 78 void *vaddr, bool readonly) in vfio_container_dma_map() argument 83 return vioc->dma_map(bcontainer, iova, size, vaddr, readonly); in vfio_container_dma_map()
|
/qemu/include/hw/mem/ |
H A D | nvdimm.h | 84 bool readonly; member
|
/qemu/target/loongarch/tcg/insn_trans/ |
H A D | trans_privileged.c.inc | 145 /* CSR is readonly: trap. */ 179 /* CSR is readonly: trap. */ 183 /* So far only readonly csrs have readfn. */
|
/qemu/include/hw/sd/ |
H A D | sd.h | 147 void (*set_readonly)(DeviceState *dev, bool readonly);
|