| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 031.out | 12 cluster_bits 16 40 cluster_bits 16 68 cluster_bits 16 103 cluster_bits 16 136 cluster_bits 16 169 cluster_bits 16
|
| H A D | 163 | 51 1 << (h.cluster_bits*2 - entry_size)) 61 cluster = fd.read(1 << h.cluster_bits) 71 reftable = fd.read(h.refcount_table_clusters << h.cluster_bits)
|
| H A D | 061.out | 12 cluster_bits 16 36 cluster_bits 16 70 cluster_bits 16 94 cluster_bits 16 126 cluster_bits 16 155 cluster_bits 16 181 cluster_bits 16 205 cluster_bits 16 231 cluster_bits 16 250 cluster_bits 16 [all …]
|
| H A D | 303.out | 33 cluster_bits 16 116 "cluster_bits": 16,
|
| H A D | qcow2_format.py | 398 self.cluster_size = 1 << self.cluster_bits
|
| /openbmc/qemu/block/ |
| H A D | qcow.c | 63 uint8_t cluster_bits; member 73 int cluster_bits; member 166 if (header.cluster_bits < 9 || header.cluster_bits > 16) { in qcow_open() 233 s->cluster_bits = header.cluster_bits; in qcow_open() 234 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 238 s->cluster_offset_mask = (1LL << (63 - s->cluster_bits)) - 1; in qcow_open() 241 shift = s->cluster_bits + s->l2_bits; in qcow_open() 371 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_offset() [all...] |
| H A D | qcow2.h | 159 uint32_t cluster_bits; member 328 int cluster_bits; member 676 return (size + (s->cluster_size - 1)) >> s->cluster_bits; in size_to_subclusters() 686 int shift = s->cluster_bits + s->l2_bits; 692 return offset >> (s->l2_bits + s->cluster_bits); in offset_to_l2_index() 697 return (offset >> s->cluster_bits) & (s->l2_size - 1); in offset_to_l2_slice_index() 702 return (offset >> s->cluster_bits) & (s->l2_slice_size - 1); in offset_to_sc_index() 712 return (int64_t)s->l1_vm_state_index << (s->cluster_bits + s->l2_bits); 832 return offset >> (s->refcount_block_bits + s->cluster_bits);
|
| H A D | qcow2-refcount.c | 293 uint64_t block_a = offset_a >> (s->cluster_bits + s->refcount_block_bits); in in_same_refcount_block() 294 uint64_t block_b = offset_b >> (s->cluster_bits + s->refcount_block_bits); in in_same_refcount_block() 388 refcount_table_index, cluster_index << s->cluster_bits, new_block); in alloc_refcount_block() 391 if (in_same_refcount_block(s, new_block, cluster_index << s->cluster_bits)) { in alloc_refcount_block() 402 int block_index = (new_block >> s->cluster_bits) & in alloc_refcount_block() 487 (new_block >> s->cluster_bits) + 1), in alloc_refcount_block() 843 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() 855 if (s->free_cluster_index > (start >> s->cluster_bits)) { in update_refcount() 856 s->free_cluster_index = (start >> s->cluster_bits); in update_refcount() 951 ret = update_refcount(bs, cluster_index << s->cluster_bits, in qcow2_update_cluster_refcount() [all...] |
| H A D | qcow2-cluster.c | 607 << s->cluster_bits; in qcow2_get_host_offset() 1068 m->nb_clusters << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1070 uint64_t offset = cluster_offset + ((uint64_t)i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1093 written_from = MAX(written_from, i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1094 written_to = MIN(written_to, (i + 1) << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1134 m->nb_clusters << s->cluster_bits, in qcow2_alloc_cluster_abort() 1183 unsigned write_from = MAX(cow_start_to, i << s->cluster_bits); in calculate_l2_meta() 1184 unsigned write_to = MIN(cow_end_from, (i + 1) << s->cluster_bits); in calculate_l2_meta() 1522 nb_clusters = MIN(nb_clusters, BDRV_REQUEST_MAX_BYTES >> s->cluster_bits); in handle_copied() 1687 nb_clusters = MIN(nb_clusters, BDRV_REQUEST_MAX_BYTES >> s->cluster_bits); in handle_alloc() [all...] |
| H A D | qcow2.c | 1424 header.cluster_bits = be32_to_cpu(header.cluster_bits); in qcow2_do_open() 1448 if (header.cluster_bits < MIN_CLUSTER_BITS || in qcow2_do_open() 1449 header.cluster_bits > MAX_CLUSTER_BITS) { in qcow2_do_open() 1451 header.cluster_bits); in qcow2_do_open() 1456 s->cluster_bits = header.cluster_bits; in qcow2_do_open() 1457 s->cluster_size = 1 << s->cluster_bits; in qcow2_do_open() 1509 ext_end = 1 << header.cluster_bits; in qcow2_do_open() 1608 s->l2_bits = s->cluster_bits in qcow2_do_open() 3422 int cluster_bits = ctz32(cluster_size); validate_cluster_size() local [all...] |
| /openbmc/qemu/tests/image-fuzzer/qcow2/ |
| H A D | layout.py | 96 cluster_bits, self.image_size = self._size_params() 97 self.cluster_size = 1 << cluster_bits 108 self.create_header(cluster_bits, backing_file_name) 121 def create_header(self, cluster_bits, backing_file_name=None): argument 128 ['>I', 20, cluster_bits, 'cluster_bits'], 528 cluster_bits = random.randrange(9, 21) 529 cluster_size = 1 << cluster_bits 531 return (cluster_bits, img_size)
|
| H A D | fuzz.py | 182 def cluster_bits(current): function
|
| /openbmc/qemu/docs/interop/ |
| H A D | qcow2.rst | 38 20 - 23: cluster_bits 40 within a cluster (1 << cluster_bits is the cluster size). 47 Note: if the image has Extended L2 Entries then cluster_bits 600 Compressed Clusters Descriptor ``(x = 62 - (cluster_bits - 8))``:: 603 cluster or sector boundary! If cluster_bits is
|
| H A D | qed_spec.rst | 181 table_bits table_bits cluster_bits
|