/qemu/block/ |
H A D | qcow2-cache.c | 42 int table_size; member 57 int idx = table_offset / c->table_size; in qcow2_cache_get_table_idx() 80 size_t mem_size = (size_t) c->table_size * num_tables; in qcow2_cache_table_release() 124 unsigned table_size) in qcow2_cache_create() argument 130 assert(is_power_of_2(table_size)); in qcow2_cache_create() 131 assert(table_size >= (1 << MIN_CLUSTER_BITS)); in qcow2_cache_create() 132 assert(table_size <= s->cluster_size); in qcow2_cache_create() 136 c->table_size = table_size; in qcow2_cache_create() 210 c->entries[i].offset, c->table_size, false); in qcow2_cache_entry_flush() 339 if (!QEMU_IS_ALIGNED(offset, c->table_size)) { in qcow2_cache_do_get() [all …]
|
H A D | qed.c | 61 cpu->table_size = le32_to_cpu(le->table_size); in qed_header_le_to_cpu() 76 le->table_size = cpu_to_le32(cpu->table_size); in qed_header_cpu_to_le() 162 static bool qed_is_table_size_valid(uint32_t table_size) in qed_is_table_size_valid() argument 164 if (table_size < QED_MIN_TABLE_SIZE || in qed_is_table_size_valid() 165 table_size > QED_MAX_TABLE_SIZE) { in qed_is_table_size_valid() 168 if (table_size & (table_size - 1)) { in qed_is_table_size_valid() 175 uint32_t table_size) in qed_is_image_size_valid() argument 663 qed_opts->table_size = QED_DEFAULT_TABLE_SIZE; in bdrv_qed_co_create() 679 qed_opts->table_size)) in bdrv_qed_co_create() 706 .table_size = qed_opts->table_size, in bdrv_qed_co_create() [all …]
|
H A D | qed-check.c | 119 s->header.table_size); in qed_check_l1_table() 143 if (!qed_set_used_clusters(check, offset, s->header.table_size)) { in qed_check_l1_table()
|
H A D | qed.h | 90 uint32_t table_size; /* for L1 and L2 tables, in clusters */ member 288 uint64_t end_offset = offset + (s->header.table_size - 1) * in qed_check_table_offset()
|
H A D | qcow2-refcount.c | 539 int total_refblock_count, table_size, area_reftable_index, table_clusters; in qcow2_refcount_area() local 564 table_size = total_refblock_count; in qcow2_refcount_area() 566 table_size = total_refblock_count + in qcow2_refcount_area() 570 table_size = ROUND_UP(table_size, s->cluster_size / REFTABLE_ENTRY_SIZE); in qcow2_refcount_area() 571 table_clusters = (table_size * REFTABLE_ENTRY_SIZE) / s->cluster_size; in qcow2_refcount_area() 573 if (table_size > QCOW_MAX_REFTABLE_SIZE) { in qcow2_refcount_area() 577 new_table = g_try_new0(uint64_t, table_size); in qcow2_refcount_area() 579 assert(table_size > 0); in qcow2_refcount_area() 586 if (table_size > s->max_refcount_table_index) { in qcow2_refcount_area() 690 table_size * REFTABLE_ENTRY_SIZE, new_table, 0); in qcow2_refcount_area() [all …]
|
H A D | qed-table.c | 27 unsigned int bytes = s->header.cluster_size * s->header.table_size; in qed_read_table()
|
H A D | qcow2.h | 999 qcow2_cache_create(BlockDriverState *bs, int num_tables, unsigned table_size);
|
/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 364 table_size = int(ceil((max(blocks) + 1) / float(size))) 366 table_start = self._get_adjacent_clusters(data, table_size + 1) 368 table_clusters = set(range(table_start, table_start + table_size)) 372 table_size + 1)) 388 if int(ceil((max(blocks) + 1) / float(size))) > table_size: 389 new_block_id = (table_start + table_size) // block_size 394 table_clusters.add(table_start + table_size) 395 table_size += 1
|
/qemu/docs/interop/ |
H A D | qed_spec.txt | 20 uint32_t table_size; /* for L1 and L2 tables, in clusters */ 37 * ''table_size'' must be a power of 2 in range [1, 16]. 60 #define TABLE_NOFFSETS (table_size * cluster_size / sizeof(uint64_t)) 80 …uous clusters. The table_size header field determines table size for an image file. For example,… 136 # Table offsets must at least ''table_size'' * ''cluster_size'' bytes from the end of the image fil…
|
/qemu/hw/pci/ |
H A D | msix.c | 319 unsigned table_size, pba_size; in msix_init() local 333 table_size = nentries * PCI_MSIX_ENTRY_SIZE; in msix_init() 338 ranges_overlap(table_offset, table_size, pba_offset, pba_size)) || in msix_init() 339 table_offset + table_size > memory_region_size(table_bar) || in msix_init() 368 dev->msix_table = g_malloc0(table_size); in msix_init() 375 "msix-table", table_size); in msix_init()
|
/qemu/hw/ppc/ |
H A D | spapr_iommu.c | 331 size_t table_size = tcet->nb_table * sizeof(uint64_t); in spapr_tce_set_need_vfio() local 351 memcpy(tcet->table, oldtable, table_size); in spapr_tce_set_need_vfio() 443 size_t table_size = tcet->nb_table * sizeof(uint64_t); in spapr_tce_reset() local 446 memset(tcet->table, 0, table_size); in spapr_tce_reset()
|
H A D | spapr_hcall.c | 989 target_ulong table_size = args[3]; in h_register_process_table() local 1000 table_byte_size = 1ULL << (table_size + 12); in h_register_process_table() 1012 } else if (table_size > 24) { in h_register_process_table() 1015 cproc = PATE1_GR | proc_tbl | table_size; in h_register_process_table() 1026 } else if (table_size > 24) { in h_register_process_table() 1030 cproc = (proc_tbl << 25) | page_size << 5 | table_size; in h_register_process_table()
|
/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 1189 uint64_t table_size, table_ptr, remaining; in ahci_command_commit() local 1203 table_size = CMD_TBL_SIZ(prdtl); in ahci_command_commit() 1204 table_ptr = ahci_alloc(ahci, table_size); in ahci_command_commit()
|
/qemu/hw/nvme/ |
H A D | ctrl.c | 7052 static void nvme_update_msixcap_ts(PCIDevice *pci_dev, uint32_t table_size) in nvme_update_msixcap_ts() argument 7060 assert(table_size > 0 && table_size <= pci_dev->msix_entries_nr); in nvme_update_msixcap_ts() 7064 table_size - 1); in nvme_update_msixcap_ts()
|
/qemu/docs/system/ |
H A D | qemu-block-drivers.rst.inc | 202 .. option:: table_size
|
/qemu/disas/ |
H A D | nanomips.c | 21871 int table_size, Dis_info *info) in Disassemble() argument 21873 for (int i = 0; i < table_size; i++) { in Disassemble()
|