/qemu/hw/hyperv/ |
H A D | hv-balloon-page_range_tree.h | 16 uint64_t start; member 25 uint64_t end = MIN(endr, start); in page_range_part_before() 27 out->start = range->start; in page_range_part_before() 28 if (end > out->start) { in page_range_part_before() 41 uint64_t ends = start + count; in page_range_part_after() 43 out->start = MAX(range->start, ends); in page_range_part_after() 44 if (end > out->start) { in page_range_part_after() 59 out->start = MAX(range->start, start); in page_range_intersect() 60 out->count = out->start < end ? end - out->start : 0; in page_range_intersect() 75 return start + count == range->start; in page_range_joinable_left() [all …]
|
H A D | hv-balloon-page_range_tree.c | 45 *key = range->start = start; in page_range_tree_insert_new() 60 assert(!SUM_OVERFLOW_U64(start, count)); in hvb_page_range_tree_insert() 65 node = g_tree_upper_bound(tree.t, &start); in hvb_page_range_tree_insert() 101 count += start - range->start; in hvb_page_range_tree_insert() 125 count = rangecur->count + (rangecur->start - range->start); in hvb_page_range_tree_insert() 129 start = rangecur->start; in hvb_page_range_tree_insert() 132 g_tree_remove(tree.t, &start); in hvb_page_range_tree_insert() 150 out->start = range->start; in hvb_page_range_tree_pop() 154 out->start += range->count - maxcount; in hvb_page_range_tree_pop() 160 g_tree_remove(tree.t, &out->start); in hvb_page_range_tree_pop() [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 146.out | 5 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c… 9 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c… 13 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c… 17 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c… 21 [{ "start": 0, "length": 136365211648, "depth": 0, "present": true, "zero": true, "data": false, "c… 25 [{ "start": 0, "length": 136363130880, "depth": 0, "present": true, "zero": true, "data": false, "c… 420 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com… 424 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com… 428 [{ "start": 0, "length": 4295467008, "depth": 0, "present": true, "zero": true, "data": false, "com… 436 [{ "start": 0, "length": 4294967296, "depth": 0, "present": true, "zero": true, "data": false, "com… [all …]
|
H A D | 179.out | 16 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr… 17 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c… 18 { "start": 4194304, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "… 19 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c… 20 { "start": 8388608, "length": 58720256, "depth": 0, "present": false, "zero": true, "data": false, … 34 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr… 35 { "start": 2097152, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c… 37 { "start": 6291456, "length": 2097152, "depth": 0, "present": true, "zero": true, "data": false, "c… 60 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr… 90 [{ "start": 0, "length": 2097152, "depth": 0, "present": false, "zero": true, "data": false, "compr… [all …]
|
H A D | 154.out | 14 [{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": true, "data": false, "compresse… 15 { "start": 4096, "length": 4096, "depth": 1, "present": false, "zero": true, "data": false, "compre… 16 { "start": 8192, "length": 4096, "depth": 0, "present": true, "zero": true, "data": false, "compres… 17 { "start": 12288, "length": 4096, "depth": 1, "present": false, "zero": true, "data": false, "compr… 18 { "start": 16384, "length": 4096, "depth": 0, "present": true, "zero": true, "data": false, "compre… 19 { "start": 20480, "length": 4096, "depth": 1, "present": false, "zero": true, "data": false, "compr… 20 { "start": 24576, "length": 8192, "depth": 0, "present": true, "zero": true, "data": false, "compre… 44 [{ "start": 0, "length": 32768, "depth": 1, "present": false, "zero": true, "data": false, "compres… 71 [{ "start": 0, "length": 32768, "depth": 1, "present": false, "zero": true, "data": false, "compres… 104 [{ "start": 0, "length": 4096, "depth": 1, "present": false, "zero": true, "data": false, "compress… [all …]
|
H A D | 253.out | 6 [{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 7 { "start": 4096, "length": 1044480, "depth": 0, "present": true, "zero": true, "data": false, "comp… 8 [{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 9 { "start": 4096, "length": 1044480, "depth": 0, "present": true, "zero": true, "data": false, "comp… 12 [{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 13 { "start": 4096, "length": 978944, "depth": 0, "present": true, "zero": true, "data": false, "compr… 14 { "start": 983040, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true, "comp… 15 [{ "start": 0, "length": 4096, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 16 { "start": 4096, "length": 978944, "depth": 0, "present": true, "zero": true, "data": false, "compr… 17 { "start": 983040, "length": 65536, "depth": 0, "present": true, "zero": false, "data": true, "comp…
|
H A D | 223.out | 25 === End dirty bitmaps, and start serving image over NBD === 49 {"execute":"nbd-server-start", 53 {"execute":"nbd-server-start", 129 [{ "start": 0, "length": 65536, "depth": 0, "present": false, "zero": false, "data": false, "compre… 136 { "start": 512, "length": 512, "depth": 0, "present": false, "zero": false, "data": false, "compres… 171 {"execute":"nbd-server-start", 175 {"execute":"nbd-server-start", 251 [{ "start": 0, "length": 65536, "depth": 0, "present": false, "zero": false, "data": false, "compre… 258 { "start": 512, "length": 512, "depth": 0, "present": false, "zero": false, "data": false, "compres… 290 [{ "start": 0, "length": 65536, "depth": 0, "present": false, "zero": false, "data": false, "compre… [all …]
|
H A D | 221.out | 8 [{ "start": 0, "length": 66048, "depth": 0, "present": true, "zero": true, "data": false, "compress… 9 [{ "start": 0, "length": 66048, "depth": 0, "present": true, "zero": true, "data": false, "compress… 12 [{ "start": 0, "length": 65536, "depth": 0, "present": true, "zero": true, "data": false, "compress… 13 { "start": 65536, "length": 1, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 14 { "start": 65537, "length": 511, "depth": 0, "present": true, "zero": true, "data": false, "compres… 15 [{ "start": 0, "length": 65536, "depth": 0, "present": true, "zero": true, "data": false, "compress… 16 { "start": 65536, "length": 1, "depth": 0, "present": true, "zero": false, "data": true, "compresse… 17 { "start": 65537, "length": 511, "depth": 0, "present": true, "zero": true, "data": false, "compres…
|
/qemu/bsd-user/ |
H A D | mmap.c | 76 end = start + len; in target_mprotect() 77 if (end < start) in target_mprotect() 122 page_set_flags(start, start + len - 1, prot | PAGE_VALID); in target_mprotect() 192 if (pread(fd, g2h_untagged(start), end - start, offset) == -1) { in mmap_frag() 204 memset(g2h_untagged(start), 0, end - start); in mmap_frag() 251 if (start == 0) { in mmap_find_vma_aligned() 265 addr = start; in mmap_find_vma_aligned() 625 page_set_flags(start, start + len - 1, prot | PAGE_VALID); in target_mmap() 633 return start; in target_mmap() 736 page_set_flags(start, start + len - 1, 0); in target_munmap() [all …]
|
/qemu/linux-user/ |
H A D | mmap.c | 80 i->start = start; in shm_region_add() 89 for (i = interval_tree_iter_first(&shm_regions, start, start); i; in shm_region_find() 90 i = interval_tree_iter_next(i, start, start)) { in shm_region_find() 91 if (i->start == start) { in shm_region_find() 104 if (i->start >= start && i->last <= last) { in shm_region_rm_complete() 358 memset(g2h_untagged(start), 0, last - start + 1); in mmap_frag() 415 start = ROUND_UP(start, align); in mmap_find_vma() 422 addr = start; in mmap_find_vma() 551 return start; in mmap_end() 1048 page_set_flags(start, start + len - 1, 0); in target_munmap() [all …]
|
/qemu/util/ |
H A D | hbitmap.c | 208 end = count > hb->orig_size - start ? hb->orig_size : start + count; in hbitmap_next_dirty() 265 if (res < start) { in hbitmap_next_zero() 267 return start; in hbitmap_next_zero() 282 if (start >= end) { in hbitmap_next_dirty_area() 286 start = hbitmap_next_dirty(hb, start, end - start); in hbitmap_next_dirty_area() 287 if (start < 0) { in hbitmap_next_dirty_area() 291 end = start + MIN(end - start, max_dirty_count); in hbitmap_next_dirty_area() 293 next_zero = hbitmap_next_zero(hb, start, end - start); in hbitmap_next_dirty_area() 298 *dirty_start = start; in hbitmap_next_dirty_area() 309 assert(start >= 0); in hbitmap_status() [all …]
|
H A D | bitmap.c | 163 const long size = start + nr; in bitmap_set() 167 assert(start >= 0 && nr >= 0); in bitmap_set() 185 const long size = start + nr; in bitmap_set_atomic() 189 assert(start >= 0 && nr >= 0); in bitmap_set_atomic() 224 const long size = start + nr; in bitmap_clear() 228 assert(start >= 0 && nr >= 0); in bitmap_clear() 246 const long size = start + nr; in bitmap_test_and_clear() 251 assert(start >= 0 && nr >= 0); in bitmap_test_and_clear() 291 const long size = start + nr; in bitmap_test_and_clear_atomic() 297 assert(start >= 0 && nr >= 0); in bitmap_test_and_clear_atomic() [all …]
|
/qemu/accel/tcg/ |
H A D | user-exec.c | 193 start, end, end - start, in dump_region() 237 p->itree.start = start; in pageflags_create() 263 if (p->itree.start < start) { in pageflags_unset() 295 prev = pageflags_find(start - 1, start - 1); in pageflags_create_merge() 324 next->itree.start = start; in pageflags_create_merge() 443 p->itree.start = start; in pageflags_set_clear() 560 if (start < p->itree.start) { in page_check_range() 684 mprotect(g2h_untagged(start), last - start + 1, in page_protect() 890 if (n->start >= start && n->last <= last) { in page_reset_target_data() 896 if (n->start < start) { in page_reset_target_data() [all …]
|
/qemu/include/qemu/ |
H A D | bitops.h | 351 assert(start >= 0 && length > 0 && length <= 32 - start); in extract32() 370 assert(start >= 0 && length > 0 && length <= 8 - start); in extract8() 371 return extract32(value, start, length); in extract8() 389 assert(start >= 0 && length > 0 && length <= 16 - start); in extract16() 390 return extract32(value, start, length); in extract16() 408 assert(start >= 0 && length > 0 && length <= 64 - start); in extract64() 430 assert(start >= 0 && length > 0 && length <= 32 - start); in sextract32() 455 assert(start >= 0 && length > 0 && length <= 64 - start); in sextract64() 483 assert(start >= 0 && length > 0 && length <= 32 - start); in deposit32() 484 mask = (~0U >> (32 - length)) << start; in deposit32() [all …]
|
H A D | hbitmap.h | 115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count); 130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count); 183 uint64_t start, uint64_t count); 197 uint64_t start, uint64_t count); 214 uint64_t start, uint64_t count, 229 void hbitmap_deserialize_zeroes(HBitmap *hb, uint64_t start, uint64_t count, 244 void hbitmap_deserialize_ones(HBitmap *hb, uint64_t start, uint64_t count, 300 int64_t hbitmap_next_dirty(const HBitmap *hb, int64_t start, int64_t count); 312 int64_t hbitmap_next_zero(const HBitmap *hb, int64_t start, int64_t count); 328 bool hbitmap_next_dirty_area(const HBitmap *hb, int64_t start, int64_t end, [all …]
|
/qemu/tests/qemu-iotests/tests/ |
H A D | zoned.out | 5 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 8 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 9 start: 0x80000, len 0x80000, cap 0x80000, wptr 0x80000, zcond:1, [type: 2] 10 start: 0x100000, len 0x80000, cap 0x80000, wptr 0x100000, zcond:1, [type: 2] 11 start: 0x180000, len 0x80000, cap 0x80000, wptr 0x180000, zcond:1, [type: 2] 12 start: 0x200000, len 0x80000, cap 0x80000, wptr 0x200000, zcond:1, [type: 2] 25 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:3, [type: 2] 38 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 56 start: 0x0, len 0x80000, cap 0x80000, wptr 0x0, zcond:1, [type: 2] 59 start: 0x0, len 0x80000, cap 0x80000, wptr 0x18, zcond:2, [type: 2] [all …]
|
/qemu/include/exec/ |
H A D | ram_addr.h | 56 static inline void clear_bmap_set(RAMBlock *rb, uint64_t start, in clear_bmap_set() argument 166 page = start >> TARGET_PAGE_BITS; in cpu_physical_memory_get_dirty() 206 page = start >> TARGET_PAGE_BITS; in cpu_physical_memory_all_dirty() 302 page = start >> TARGET_PAGE_BITS; in cpu_physical_memory_set_dirty_range() 335 xen_hvm_modified_memory(start, length); in cpu_physical_memory_set_dirty_range() 370 offset = BIT_WORD((start >> TARGET_PAGE_BITS) % in cpu_physical_memory_set_dirty_lebitmap() 436 ram_addr = start + addr; in cpu_physical_memory_set_dirty_lebitmap() 452 tlb_reset_dirty_range_all(start, length); in cpu_physical_memory_dirty_bits_cleared() 489 (start + rb->offset) && in cpu_physical_memory_sync_dirty_bitmap() 527 clear_bmap_set(rb, start >> TARGET_PAGE_BITS, in cpu_physical_memory_sync_dirty_bitmap() [all …]
|
/qemu/hw/openrisc/ |
H A D | boot.c | 69 hwaddr start; in openrisc_load_initrd() local 72 start = TARGET_PAGE_ALIGN(load_start); in openrisc_load_initrd() 74 size = load_ramdisk(filename, start, mem_size - start); in openrisc_load_initrd() 76 size = load_image_targphys(filename, start, mem_size - start); in openrisc_load_initrd() 85 "linux,initrd-start", start); in openrisc_load_initrd() 87 "linux,initrd-end", start + size); in openrisc_load_initrd() 90 return start + size; in openrisc_load_initrd()
|
/qemu/tests/qtest/libqos/ |
H A D | libqos-malloc.c | 157 uint64_t addr = s->start > 0 ? s->start - 1 : 0; in mlist_check() 158 uint64_t next = s->start; in mlist_check() 167 addr = s->start > 0 ? s->start - 1 : 0; in mlist_check() 168 next = s->start; in mlist_check() 239 if ((node->addr != allocator->start) || in alloc_destroy() 240 (node->size != allocator->end - allocator->start)) { in alloc_destroy() 287 uint64_t start, uint64_t end, in alloc_init() argument 293 s->start = start; in alloc_init() 301 node = mlist_new(s->start, s->end - s->start); in alloc_init() 320 g_assert_cmphex(src->start, ==, dst->start); in migrate_allocator() [all …]
|
/qemu/tcg/ |
H A D | perf.c | 68 *host_pc = (uintptr_t)start + start_off; in get_host_pc_size() 108 get_host_pc_size(&host_pc, &host_size, start, insn); in write_perfmap_entry() 240 (uintptr_t)start, size); in perf_report_prologue() 245 static void write_jr_code_debug_info(const void *start, in write_jr_code_debug_info() argument 258 rec.code_addr = (uintptr_t)start; in write_jr_code_debug_info() 303 rec.vma = (uintptr_t)start; in write_jr_code_load() 304 rec.code_addr = (uintptr_t)start; in write_jr_code_load() 309 fwrite(start, host_size, 1, jitdump); in write_jr_code_load() 313 const void *start) in perf_report_code() argument 348 write_perfmap_entry(start, insn, &q[insn]); in perf_report_code() [all …]
|
/qemu/target/i386/ |
H A D | monitor.c | 280 hwaddr start, end; in mem_info_32() local 284 start = -1; in mem_info_32() 309 mem_print(mon, env, &start, &last_prot, end, prot); in mem_info_32() 322 hwaddr start, end; in mem_info_pae32() local 326 start = -1; in mem_info_pae32() 364 mem_print(mon, env, &start, &last_prot, end, prot); in mem_info_pae32() 378 uint64_t pml4_addr, pdp_addr, pd_addr, pt_addr, start, end; in mem_info_la48() local 382 start = -1; in mem_info_la48() 410 mem_print(mon, env, &start, in mem_info_la48() 434 mem_print(mon, env, &start, in mem_info_la48() [all …]
|
/qemu/scripts/codeconverter/codeconverter/ |
H A D | patching.py | 30 start: int 62 def start(self) -> int: member in FileMatch 63 return self.match.start() 118 return Patch(self.start() + start, self.start() + end, replacement) 130 return Patch(self.start(), self.start(), s) 144 return other.start() >= self.start() and other.end() <= self.end() 147 start = self.file.line_col(self.start()) 151 start.line, start.col, 252 p.start, line_col(s, p.start), 255 if last > p.start: [all …]
|
/qemu/tests/qtest/ |
H A D | i440fx-test.c | 161 uint32_t size = end - start + 1; in verify_area() 167 memread(start, data, size); in verify_area() 183 static void write_area(uint32_t start, uint32_t end, uint8_t value) in write_area() argument 185 uint32_t size = end - start + 1; in write_area() 190 memwrite(start, data, size); in write_area() 202 uint32_t start; in test_i440fx_pam() member 226 if (pam_area[i].start == pam_area[i].end) { in test_i440fx_pam() 231 pam_area[i].start, pam_area[i].end); in test_i440fx_pam() 235 g_assert(verify_area(pam_area[i].start, pam_area[i].end, 0)); in test_i440fx_pam() 240 write_area(pam_area[i].start, pam_area[i].end, 0x42); in test_i440fx_pam() [all …]
|
/qemu/tests/migration/ |
H A D | stress.c | 57 char *start, *end; in get_command_arg_str() local 73 start = strstr(line, name); in get_command_arg_str() 74 if (!start) in get_command_arg_str() 77 start += strlen(name); in get_command_arg_str() 79 if (*start != '=') { in get_command_arg_str() 83 start++; in get_command_arg_str() 85 end = strstr(start, " "); in get_command_arg_str() 87 end = strstr(start, "\n"); in get_command_arg_str() 89 if (end == start) { in get_command_arg_str() 96 *val = g_strndup(start, end - start); in get_command_arg_str() [all …]
|
/qemu/hw/loongarch/ |
H A D | boot.c | 75 void *p, void *start) in init_efi_boot_memmap() argument 83 systab->tables[0].table = (struct efi_configuration_table *)(p - start); in init_efi_boot_memmap() 102 void *p, void *start) in init_efi_initrd_table() argument 109 systab->tables[1].table = (struct efi_configuration_table *)(p - start); in init_efi_initrd_table() 131 info->a2 = p - start; in init_systab() 146 init_efi_boot_memmap(systab, p, start); in init_systab() 149 init_efi_initrd_table(systab, p, start); in init_systab() 158 hwaddr cmdline_addr = p - start; in init_cmdline() 267 void *start = p; in init_boot_rom() local 269 init_cmdline(info, p, start); in init_boot_rom() [all …]
|