/openbmc/qemu/backends/ |
H A D | hostmem-ram.c | 23 uint32_t ram_flags; in ram_backend_memory_alloc() local 31 ram_flags = backend->share ? RAM_SHARED : 0; in ram_backend_memory_alloc() 32 ram_flags |= backend->reserve ? 0 : RAM_NORESERVE; in ram_backend_memory_alloc() 33 ram_flags |= backend->guest_memfd ? RAM_GUEST_MEMFD : 0; in ram_backend_memory_alloc() 36 ram_flags, errp); in ram_backend_memory_alloc()
|
H A D | hostmem-file.c | 49 uint32_t ram_flags; in file_backend_memory_alloc() 85 ram_flags = backend->share ? RAM_SHARED : 0; in file_backend_memory_alloc() 86 ram_flags |= fb->readonly ? RAM_READONLY_FD : 0; in file_backend_memory_alloc() 87 ram_flags |= fb->rom == ON_OFF_AUTO_ON ? RAM_READONLY : 0; in file_backend_memory_alloc() 88 ram_flags |= backend->reserve ? 0 : RAM_NORESERVE; in file_backend_memory_alloc() 89 ram_flags |= backend->guest_memfd ? RAM_GUEST_MEMFD : 0; in file_backend_memory_alloc() 90 ram_flags |= fb->is_pmem ? RAM_PMEM : 0; in file_backend_memory_alloc() 91 ram_flags |= RAM_NAMED_FILE; in file_backend_memory_alloc() 93 backend->size, fb->align, ram_flags, in file_backend_memory_alloc()
|
H A D | hostmem-shm.c | 30 uint32_t ram_flags; in shm_backend_memory_alloc() local 86 ram_flags = RAM_SHARED; in shm_backend_memory_alloc() 87 ram_flags |= backend->reserve ? 0 : RAM_NORESERVE; in shm_backend_memory_alloc() 91 ram_flags, fd, 0, errp); in shm_backend_memory_alloc()
|
H A D | hostmem-memfd.c | 39 uint32_t ram_flags; in memfd_backend_memory_alloc() local 57 ram_flags = backend->share ? RAM_SHARED : 0; in memfd_backend_memory_alloc() 58 ram_flags |= backend->reserve ? 0 : RAM_NORESERVE; in memfd_backend_memory_alloc() 59 ram_flags |= backend->guest_memfd ? RAM_GUEST_MEMFD : 0; in memfd_backend_memory_alloc() 61 backend->size, ram_flags, fd, 0, errp); in memfd_backend_memory_alloc()
|
H A D | hostmem-epc.c | 24 uint32_t ram_flags; in sgx_epc_backend_memory_alloc() local 39 ram_flags = (backend->share ? RAM_SHARED : 0) | RAM_PROTECTED; in sgx_epc_backend_memory_alloc() 41 backend->size, ram_flags, fd, 0, errp); in sgx_epc_backend_memory_alloc()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | setup_32.c | 186 extern unsigned short ram_flags; 354 rd_image_start = ram_flags & RAMDISK_IMAGE_START_MASK; in setup_arch()
|
H A D | setup_64.c | 159 extern unsigned short ram_flags; 659 rd_image_start = ram_flags & RAMDISK_IMAGE_START_MASK; in setup_arch()
|
H A D | head_32.S | 68 .global ram_flags 84 ram_flags: label
|
H A D | head_64.S | 55 .global root_flags, ram_flags, root_dev 74 ram_flags: label
|
/openbmc/qemu/include/exec/ |
H A D | ram_addr.h | 124 uint32_t ram_flags, const char *mem_path, 127 uint32_t ram_flags, int fd, off_t offset, 132 RAMBlock *qemu_ram_alloc(ram_addr_t size, uint32_t ram_flags, MemoryRegion *mr,
|
H A D | memory.h | 1311 uint32_t ram_flags, 1376 uint32_t ram_flags, 1405 uint32_t ram_flags,
|
/openbmc/qemu/system/ |
H A D | physmem.c | 1946 uint32_t ram_flags, int fd, off_t offset, in qemu_ram_alloc_from_fd() argument 1954 assert((ram_flags & ~(RAM_SHARED | RAM_PMEM | RAM_NORESERVE | in qemu_ram_alloc_from_fd() 1992 new_block->flags = ram_flags; in qemu_ram_alloc_from_fd() 2021 !!(ram_flags & RAM_READONLY_FD), &created); in qemu_ram_alloc_from_file() 2025 if (!(ram_flags & RAM_READONLY_FD) && !(ram_flags & RAM_SHARED) && in qemu_ram_alloc_from_file() 2047 block = qemu_ram_alloc_from_fd(size, mr, ram_flags, fd, offset, errp); in qemu_ram_alloc_from_file() 2065 void *host, uint32_t ram_flags, in qemu_ram_alloc_internal() argument 2072 assert((ram_flags & ~(RAM_SHARED | RAM_RESIZEABLE | RAM_PREALLOC | in qemu_ram_alloc_internal() 2074 assert(!host ^ (ram_flags & RAM_PREALLOC)); in qemu_ram_alloc_internal() 2091 new_block->flags = ram_flags; in qemu_ram_alloc_internal() [all …]
|
H A D | memory.c | 1563 uint32_t ram_flags, in memory_region_init_ram_flags_nomigrate() argument 1571 mr->ram_block = qemu_ram_alloc(size, ram_flags, mr, &err); in memory_region_init_ram_flags_nomigrate() 1613 uint32_t ram_flags, in memory_region_init_ram_from_file() argument 1621 mr->readonly = !!(ram_flags & RAM_READONLY); in memory_region_init_ram_from_file() 1625 mr->ram_block = qemu_ram_alloc_from_file(size, mr, ram_flags, path, in memory_region_init_ram_from_file() 1640 uint32_t ram_flags, in memory_region_init_ram_from_fd() argument 1648 mr->readonly = !!(ram_flags & RAM_READONLY); in memory_region_init_ram_from_fd() 1651 mr->ram_block = qemu_ram_alloc_from_fd(size, mr, ram_flags, fd, offset, in memory_region_init_ram_from_fd()
|