| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 066 | 4 # Test case for preallocated zero clusters in qcow2 43 # We need zero clusters and snapshots 55 # Write some normal clusters, zero some of them (creating preallocated 56 # zero clusters) and discard everything. Everything should now read as 0. 63 # Map the image (we want all clusters to be gone) 70 echo '=== Writing to preallocated zero clusters ===' 75 # Create data clusters (not aligned to an L2 table) 79 # Convert the data clusters to preallocated zero clusters 99 echo 'Successfully reused original clusters.' 101 echo 'Failed to reuse original clusters.' [all …]
|
| H A D | common.pattern | 76 # Complete clusters 92 # Spanning multiple clusters 97 # L2 table size: 512 clusters of 4k = 2M 108 # Pattern (repeat after 9 clusters): 112 # Write the clusters to be compressed 113 echo '=== Clusters to be compressed [1]' 115 echo '=== Clusters to be compressed [2]' 117 echo '=== Clusters to be compressed [3]' 123 # Write the used clusters 124 echo '=== Used clusters [1]' [all …]
|
| H A D | 019 | 5 # the backing file clusters must not copied. The data must still be 66 # Some clusters with alternating backing file/image file reads 69 # Complete backing clusters 84 # Some clusters with alternating backing file/image file reads 87 # Complete test image clusters 105 echo "Checking if backing clusters are allocated when they shouldn't" 108 # Complete backing clusters 116 # Some clusters with alternating backing file/image file reads 120 # Complete test image clusters
|
| H A D | 260.out | 6 initial bitmap: name=bitmap0 dirty-clusters=1 16 check bitmap after commit: name=bitmap0 dirty-clusters=2 17 check updated bitmap: name=bitmap0 dirty-clusters=3 23 initial bitmap: name=bitmap0 dirty-clusters=1 33 check bitmap after commit: name=bitmap0 dirty-clusters=2 34 check updated bitmap: name=bitmap0 dirty-clusters=3 40 initial bitmap: name=bitmap0 dirty-clusters=1 51 check bitmap after commit: name=bitmap0 dirty-clusters=2 52 check updated bitmap: name=bitmap0 dirty-clusters=3
|
| H A D | 290.out | 7 # Fill all clusters with data and then discard them 12 # Read the data from the discarded clusters 19 # Fill all clusters with data and then discard them 24 # Read the data from the discarded clusters 38 # Fill all clusters with data and then discard them 43 # Read the data from the discarded clusters 51 # Fill all clusters with data and then discard them 56 # Read the data from the discarded clusters
|
| H A D | 115 | 51 # number of clusters which can be described by a single refblock; therefore, at 52 # least two refblocks cannot count their own refcounts because all the clusters 56 # 512/8 = 64 clusters, therefore the L1 table should cover 128 clusters, which 59 # 8192 * 512/8 = 524,288 clusters which cover a space of 256 MB. 76 # indeed all the clusters are allocated, which is done by qemu-img check. 79 # refcount blocks; since all clusters of the tables are referenced, we can use 83 sed -e 's/^.* = \([0-9]\+\.[0-9]\+% allocated\).*\(clusters\)$/\1 \2/' \
|
| H A D | 018 | 58 # Some clusters with alternating backing file/image file reads 61 # Complete backing clusters 76 # Some clusters with alternating backing file/image file reads 79 # Complete test image clusters 91 # Some clusters with alternating backing file/image file reads 95 # Complete test image clusters
|
| H A D | 017 | 57 # Some clusters with alternating backing file/image file reads 60 # Complete backing clusters 75 # Some clusters with alternating backing file/image file reads 78 # Complete test image clusters 87 # Some clusters with alternating backing file/image file reads 91 # Complete test image clusters
|
| H A D | 290 | 53 echo "# Fill all clusters with data and then discard them" 57 echo "# Read the data from the discarded clusters" 77 echo "# Fill all clusters with data and then discard them" 81 echo "# Read the data from the discarded clusters" 83 # In qcow2 v3 clusters are zeroed (with QCOW_OFLAG_ZERO) 86 # In qcow2 v2 if there's a backing image we cannot zero the clusters
|
| H A D | 108.out | 15 0 leaked clusters 39 0 leaked clusters 56 0 leaked clusters 73 0 leaked clusters 89 0 leaked clusters 105 0 leaked clusters 123 0 leaked clusters 145 0 leaked clusters 186 0 leaked clusters
|
| H A D | 062 | 4 # Test case for snapshotting images with unallocated zero clusters in 44 # We need zero clusters and snapshots 50 echo "=== Testing snapshotting an image with zero clusters ===" 53 # Write some zero clusters
|
| H A D | 312 | 80 # (unallocated clusters, zero clusters, data clusters with zeroes) 86 # Test 1: data regions surrounded by unallocated clusters. 93 # Test 2: zero regions surrounded by data clusters. 94 # First we allocate the data clusters. 105 # Test 3: zero clusters surrounded by unallocated clusters. 111 # Test 4: mix of data and zero clusters.
|
| H A D | 214 | 43 # External data files do not support compressed clusters. 51 # The L2 entries of the two compressed clusters are located at 74 # In this case the compressed data would span 3 host clusters 86 # of the compressed data it now reaches the following host clusters. 88 # those clusters. 95 echo "=== Write compressed data of multiple clusters ===" 137 sed -n 's/,$//; /"compressed-clusters":/ s/^ *//p'
|
| H A D | 271 | 234 # calculate_l2_meta() checks if none of the clusters affected by a 237 # Here clusters #0-#3 are overwritten but only #1 and #2 need changes. 239 echo '### Overwriting several clusters without COW ###' 277 echo "### Writing zeroes 1: unallocated clusters (backing file: $use_backing_file) ###" 282 # Cluster-aligned request from clusters #0 to #2 288 # Subcluster-aligned request from clusters #3 to #5 296 # Unaligned request from clusters #6 to #8 313 echo "### Writing zeroes 2: allocated clusters (backing file: $use_backing_file) ###" 326 # Cluster-aligned request from clusters #9 to #11 332 # Subcluster-aligned request from clusters #12 to #14 [all …]
|
| H A D | 020 | 67 # Some clusters with alternating backing file/image file reads 70 # Complete backing clusters 85 # Some clusters with alternating backing file/image file reads 88 # Complete test image clusters 100 # Some clusters with alternating backing file/image file reads 104 # Complete test image clusters
|
| H A D | 305 | 49 # The reference counts of the clusters for the first 123k of this 56 echo '### Discard two of the last data clusters, leave one in the middle' 64 # This tries to allocate the two clusters discarded earlier (guest 69 echo '### Try to allocate the discarded clusters again'
|
| H A D | 121 | 81 # This results in an L1 table growth which in turn results in some clusters at 105 # This results in an image with 256 used clusters: the qcow2 header, 107 # and 248 data clusters 110 # 256 clusters of 512 bytes each give us a 128K image 117 # Two more clusters, the image size should be 129K now
|
| /openbmc/qemu/tests/image-fuzzer/qcow2/ |
| H A D | layout.py | 279 # Compressed clusters are not supported => bit #62 = 0 292 # All metadata for an empty guest image needs 4 clusters: 294 # Header takes cluster #0, other clusters ##1-3 can be used 305 # Number of clusters necessary for L1 table 313 # Host clusters allocated for L2 tables 339 """Return indices of clusters allocated for refcount blocks.""" 343 # Allocate all yet not allocated clusters 346 # Indices of new refcount blocks necessary to cover clusters 354 """Return indices of clusters allocated for the refcount table 355 and updated indices of clusters allocated for blocks and indices [all …]
|
| /openbmc/qemu/docs/interop/ |
| H A D | qcow2.rst | 6 (host) clusters. A cluster is the unit in which all allocations are done, 10 clusters of the same size. 41 Must not be less than 9 (i.e. 512 byte clusters). 48 must be at least 14 (i.e. 16384 byte clusters). 60 (56 bits) of populated clusters, and an image may 81 Number of clusters that the refcount table occupies 110 external data file is used. Guest clusters are 112 images, clusters in the external data file are 115 guest offset and neither compressed clusters 123 clusters. The compression_type field must be [all …]
|
| H A D | qed_spec.rst | 12 about where regular clusters start; this allows the header to be extensible and 15 of one or more contiguous clusters. 33 uint32_t table_size; /* for L1 and L2 tables, in clusters */ 34 uint32_t header_size; /* in clusters */ 53 - ``header_size`` is the number of clusters used by the header and any additional 54 information stored before regular clusters. 73 The string must be stored within the first ``header_size`` clusters. The backing filename 120 A table is made up of one or more contiguous clusters. The ``table_size`` header 125 clusters rooted by the L1 table: 150 Unallocated L2 tables and data clusters [all …]
|
| H A D | parallels.rst | 60 Disk size, in clusters (BAT size). 119 corresponding cluster. The offset set in clusters for ``WithouFreSpacExt`` 139 contiguous array of clusters. Most of them are allocated by the BAT, some may 141 allocated by extensions. All clusters allocated by ``ext_off`` and extensions 142 should meet the same requirements as clusters specified by BAT entries. 222 clusters inside the Parallels image file. The offsets of these clusters are
|
| /openbmc/qemu/hw/core/ |
| H A D | machine-smp.c | 51 g_string_append_printf(s, " * clusters (%u)", ms->smp.clusters); in cpu_hierarchy_to_string() 94 unsigned clusters = config->has_clusters ? config->clusters : 0; in machine_parse_smp_config() local 110 (config->has_clusters && config->clusters == 0) || in machine_parse_smp_config() 133 config->has_clusters && config->clusters > 1) { in machine_parse_smp_config() 135 "clusters > 1 not supported by this machine's CPU topology"); in machine_parse_smp_config() 138 clusters = clusters > 0 ? clusters : 1; in machine_parse_smp_config() 178 (drawers * books * dies * clusters * in machine_parse_smp_config() 184 clusters * modules * threads); in machine_parse_smp_config() 193 clusters * modules * threads); in machine_parse_smp_config() 197 (drawers * books * dies * clusters * in machine_parse_smp_config() [all …]
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | vvfat | 57 for i in range(8 * 2): # two clusters 62 for i in range(8 * 3): # 3 clusters 252 directly clusters and thus we don't go through the modification of 286 clusters 304 Test truncating the file without changing number of clusters 323 Test truncating the file without changing number of clusters 356 # without changing the number of clusters or filesize 366 Test truncating a file by reducing the number of clusters 381 Test truncating a file by reducing the number of clusters 397 Test truncating a file by increasing the number of clusters [all …]
|
| /openbmc/qemu/block/ |
| H A D | qed-cluster.c | 19 * Count the number of contiguous data clusters 24 * @n: Maximum number of clusters 27 * This function scans tables for contiguous clusters. A contiguous run of 28 * clusters may be allocated, unallocated, or zero. 44 /* Counting unallocated clusters */ in qed_count_contiguous_clusters() 49 /* Counting zero clusters */ in qed_count_contiguous_clusters() 54 /* Counting allocated clusters */ in qed_count_contiguous_clusters()
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-smp-parse.c | 68 * -sockets/clusters/cores/threads 74 .has_clusters = hc, .clusters = c, \ 99 * -drawers/books/sockets/dies/clusters/modules/cores/threads 108 .has_clusters = true, .clusters = f, \ 340 * -smp 8,drawers=1,books=1,sockets=2,dies=1,clusters=1,modules=1,\ 361 /* config: -smp 2,clusters=2 */ 363 .expect_error = "clusters > 1 not supported by this machine's CPU topology", 478 /* config: -smp 16,sockets=2,clusters=2,cores=4,threads=2,maxcpus=16 */ 482 "sockets (2) * clusters (2) * cores (4) * threads (2) " 485 /* config: -smp 34,sockets=2,clusters=2,cores=4,threads=2,maxcpus=32 */ [all …]
|