| /qemu/util/ |
| A D | memalign.c | 32 void *qemu_try_memalign(size_t alignment, size_t size) in qemu_try_memalign() argument 36 if (alignment < sizeof(void*)) { in qemu_try_memalign() 37 alignment = sizeof(void*); in qemu_try_memalign() 39 g_assert(is_power_of_2(alignment)); in qemu_try_memalign() 53 ret = posix_memalign(&ptr, alignment, size); in qemu_try_memalign() 59 ptr = _aligned_malloc(size, alignment); in qemu_try_memalign() 63 ptr = memalign(alignment, size); in qemu_try_memalign() 67 trace_qemu_memalign(alignment, size, ptr); in qemu_try_memalign() 71 void *qemu_memalign(size_t alignment, size_t size) in qemu_memalign() argument 73 void *p = qemu_try_memalign(alignment, size); in qemu_memalign() [all …]
|
| A D | oslib-posix.c | 192 void *qemu_anon_ram_alloc(size_t size, uint64_t *alignment, bool shared, in qemu_anon_ram_alloc() argument 204 if (alignment) { in qemu_anon_ram_alloc() 205 *alignment = align; in qemu_anon_ram_alloc()
|
| A D | trace-events | 50 qemu_memalign(size_t alignment, size_t size, void *ptr) "alignment %zu size %zu ptr %p"
|
| /qemu/include/qemu/ |
| A D | memalign.h | 24 void *qemu_try_memalign(size_t alignment, size_t size); 36 void *qemu_memalign(size_t alignment, size_t size);
|
| /qemu/tests/qemu-iotests/ |
| A D | 241.out | 3 === Exporting unaligned raw image, natural alignment === 14 === Exporting unaligned raw image, forced server sector alignment === 27 === Exporting unaligned raw image, forced client sector alignment ===
|
| A D | 268.out | 3 == Required alignment larger than cluster size ==
|
| A D | 204.out | 11 == constrained alignment and max-transfer == 29 == block status smaller than alignment ==
|
| A D | 177.out | 11 == constrained alignment and max-transfer ==
|
| /qemu/bsd-user/ |
| A D | mmap.c | 257 abi_ulong alignment) in mmap_find_vma_reserved() argument 261 ret = page_find_range_empty(start, reserved_va, size, alignment); in mmap_find_vma_reserved() 265 size, alignment); in mmap_find_vma_reserved() 278 abi_ulong alignment) in mmap_find_vma_aligned() argument 296 (alignment != 0 ? 1 << alignment : in mmap_find_vma_aligned() 304 if (alignment != 0) { in mmap_find_vma_aligned() 305 flags |= MAP_ALIGNED(alignment); in mmap_find_vma_aligned()
|
| /qemu/docs/ |
| A D | nvdimm.txt | 78 2. QEMU v2.6.0 only puts a basic alignment requirement on the "size" 79 option of memory-backend-file, e.g. 4KB alignment on x86. However, 80 QEMU v.2.7.0 puts an additional alignment requirement, which may 83 the basic alignment. 85 QEMU v2.8.0 and later remove the additional alignment on non-s390x 142 types of backends may require an alignment different than the page 144 memory-backend-file to allow users to specify the proper alignment. 145 For device dax (e.g., /dev/dax0.0), this alignment needs to match the 146 alignment requirement of the device dax. The NUM of 'align=NUM' option 156 For example, device dax require the 2 MB alignment, so we can use
|
| A D | igd-assign.txt | 105 region should be created below 4GB (recommended 4KB alignment), sized 118 alignment equal to this size. Additionally the base address of this
|
| /qemu/rust/qemu-api/src/ |
| A D | lib.rs | 49 alignment: bindings::gsize, in g_aligned_alloc0() 56 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign()
|
| /qemu/hw/core/ |
| A D | platform-bus.c | 134 uint64_t alignment = (1ULL << (63 - clz64(size + size - 1))); in platform_bus_map_mmio() local 147 for (off = 0; off < pbus->mmio_size; off += alignment) { in platform_bus_map_mmio()
|
| /qemu/include/standard-headers/linux/ |
| A D | virtio_bt.h | 33 uint8_t alignment; member
|
| /qemu/hw/net/ |
| A D | spapr_llan.c | 419 target_ulong alignment) in check_bd() argument 421 if ((VLAN_BD_ADDR(bd) % alignment) in check_bd() 422 || (VLAN_BD_LEN(bd) % alignment)) { in check_bd()
|
| /qemu/tests/tcg/tricore/c/ |
| A D | crt0-tc2x.S | 165 addi %d0,%d0,63 #; force alignment (2^6) 169 andn %d2,%d2,63 #; force alignment (2^6)
|
| /qemu/docs/devel/ |
| A D | loads-stores.rst | 78 translated, plus a ``MemOp`` which contains alignment requirements 88 (e.g. for an alignment fault or MMU fault) which will result in 133 and therefore there is no required alignment supplied or enforced. 170 be performed with a context other than the default, or alignment
|
| /qemu/block/ |
| A D | io.c | 1845 int alignment = MAX(bs->bl.pwrite_zeroes_alignment, in bdrv_co_do_pwrite_zeroes() local 1873 assert(alignment % bs->bl.request_alignment == 0); in bdrv_co_do_pwrite_zeroes() 1874 head = offset % alignment; in bdrv_co_do_pwrite_zeroes() 1875 tail = (offset + bytes) % alignment; in bdrv_co_do_pwrite_zeroes() 1876 max_write_zeroes = QEMU_ALIGN_DOWN(max_write_zeroes, alignment); in bdrv_co_do_pwrite_zeroes() 1890 num = MIN(MIN(bytes, max_transfer), alignment - head); in bdrv_co_do_pwrite_zeroes() 1891 head = (head + num) % alignment; in bdrv_co_do_pwrite_zeroes() 1893 } else if (tail && num > alignment) { in bdrv_co_do_pwrite_zeroes()
|
| /qemu/ |
| A D | qemu-img.c | 1180 int64_t sector_num, int alignment) in is_allocated_sectors() argument 1206 tail = (sector_num + i) & (alignment - 1); in is_allocated_sectors() 1217 i += alignment - tail; in is_allocated_sectors() 1238 int min, int64_t sector_num, int alignment) in is_allocated_sectors_min() argument 1247 ret = is_allocated_sectors(buf, n, pnum, sector_num, alignment); in is_allocated_sectors_min() 1259 ret = is_allocated_sectors(buf, n, pnum, sector_num, alignment); in is_allocated_sectors_min() 1693 int alignment; member 1905 sector_num, s->alignment)) || in convert_co_write() 2739 s.alignment = MAX(pow2floor(s.min_sparse), in img_convert() 2742 assert(is_power_of_2(s.alignment)); in img_convert()
|
| /qemu/tcg/arm/ |
| A D | tcg-target.c.inc | 1487 * Check alignment, check comparators. 1494 * For unaligned accesses, test the page of the last unit of alignment. 1495 * This leaves the least significant alignment bits unchanged, and of 1532 /* We are expecting alignment to max out at 7 */ 1589 /* LDRD requires alignment; double-check that. */ 1597 * Since datalo is aligned, we can simplify the test via alignment. 1693 /* STRD requires alignment; double-check that. */ 2339 * We have only 8-byte alignment for the stack per the ABI. 2341 * to simply not request alignment beyond that. So: 2363 /* See tcg_out_ld re alignment: regs 2; size 8; align 8 */
|
| /qemu/qapi/ |
| A D | qom.json | 646 # @align: the base address alignment when QEMU mmap(2)s @mem-path. 647 # Some backend stores specified by @mem-path require an alignment 649 # /dev/dax0.0 requires 2M alignment rather than 4K. In such 650 # cases, users can specify the required alignment via this option. 651 # 0 selects a default alignment (currently the page size).
|
| /qemu/docs/devel/migration/ |
| A D | mapped-ram.rst | 18 pages are ensured to be written respecting O_DIRECT alignment
|
| /qemu/accel/tcg/ |
| A D | ldst_atomicity.c.inc | 77 * Examine the alignment of p to determine if there are subobjects 465 * individual byte loads (when the host requires alignment), 732 /* Find minimum of alignment and size */
|
| /qemu/tcg/i386/ |
| A D | tcg-target.c.inc | 1193 /* There is no instruction that can validate 8-byte alignment. */ 1208 * The gvec infrastructure only requires 16-byte alignment, 1238 /* There is no instruction that can validate 8-byte alignment. */ 1260 * The gvec infrastructure only requires 16-byte alignment, 2135 * For useronly, perform any required alignment tests. 2199 * If the required alignment is at least as large as the access, 2376 * If we already have 16-byte alignment, then VMOVDQA always works. 2377 * Else if VMOVDQU has atomicity with dynamic alignment, use that. 2378 * Else use we require a runtime test for alignment for VMOVDQA; 2505 * Else if VMOVDQU has atomicity with dynamic alignment, use that. [all …]
|
| /qemu/tcg/sparc64/ |
| A D | tcg-target.c.inc | 1059 * For user-mode, perform any required alignment tests. 1110 /* Mask out the page offset, except for the required alignment. */ 1131 * If the size equals the required alignment, we can skip the test 1133 * Otherwise, test for at least natural alignment and defer
|