Home
last modified time | relevance | path

Searched full:l2 (Results 1 – 25 of 152) sorted by relevance

1234567

/qemu/tests/qemu-iotests/
H A D271.out9 L2 entry #0: 0x8000000000050000 0000000000000001
11 L2 entry #0: 0x8000000000050000 0000000000000003
13 L2 entry #0: 0x8000000000050000 0000000000000007
15 L2 entry #0: 0x8000000000050000 000000000000000f
17 L2 entry #0: 0x8000000000050000 000000000000007f
19 L2 entry #0: 0x8000000000050000 00000000000003ff
21 L2 entry #0: 0x8000000000050000 00000000000103ff
23 L2 entry #0: 0x8000000000050000 00000000800103ff
24 L2 entry #1: 0x8000000000060000 0000000000000003
26 L2 entry #0: 0x8000000000050000 00000002800103fd
[all …]
H A D10356 $QEMU_IO -c "open -o cache-size=1.25M,l2-cache-size=1M,refcount-cache-size=0.25M $TEST_IMG" \
58 # l2-cache-size may not exceed cache-size
59 $QEMU_IO -c "open -o cache-size=1M,l2-cache-size=2M $TEST_IMG" 2>&1 \
66 $QEMU_IO -c "open -o cache-size=0,l2-cache-size=0,refcount-cache-size=0 $TEST_IMG" \
70 $QEMU_IO -c "open -o l2-cache-entry-size=256 $TEST_IMG" \
72 $QEMU_IO -c "open -o l2-cache-entry-size=4242 $TEST_IMG" \
74 $QEMU_IO -c "open -o l2-cache-entry-size=128k $TEST_IMG" \
84 $QEMU_IO -c "open -o l2-cache-size=0 $TEST_IMG" -c 'read -P 42 0 64k' \
94 $QEMU_IO -c "open -o cache-size=2M,l2-cache-size=1M $TEST_IMG" \
101 $QEMU_IO -c "open -o l2-cache-size=1M,refcount-cache-size=0.25M $TEST_IMG" \
[all …]
H A D13772 -c "reopen -o overlap-check.active-l2=on" \
73 -c "reopen -o overlap-check.active-l2=off" \
82 -c "reopen -o overlap-check.inactive-l2=on" \
83 -c "reopen -o overlap-check.inactive-l2=off" \
85 -c "reopen -o l2-cache-size=512k" \
86 -c "reopen -o l2-cache-entry-size=512" \
87 -c "reopen -o l2-cache-entry-size=4k" \
88 -c "reopen -o l2-cache-entry-size=64k" \
109 -c "reopen -o cache-size=1M,l2-cache-size=64k,refcount-cache-size=64k" \
110 -c "reopen -o cache-size=1M,l2-cache-size=2M" \
[all …]
H A D026.out17 qemu-io: Failed to flush the L2 table cache: Input/output error
24 qemu-io: Failed to flush the L2 table cache: Input/output error
41 qemu-io: Failed to flush the L2 table cache: No space left on device
48 qemu-io: Failed to flush the L2 table cache: No space left on device
129 qemu-io: Failed to flush the L2 table cache: Input/output error
136 qemu-io: Failed to flush the L2 table cache: Input/output error
153 qemu-io: Failed to flush the L2 table cache: No space left on device
160 qemu-io: Failed to flush the L2 table cache: No space left on device
177 qemu-io: Failed to flush the L2 table cache: Input/output error
184 qemu-io: Failed to flush the L2 table cache: Input/output error
[all …]
H A D026.out.nocache17 qemu-io: Failed to flush the L2 table cache: Input/output error
24 qemu-io: Failed to flush the L2 table cache: Input/output error
41 qemu-io: Failed to flush the L2 table cache: No space left on device
48 qemu-io: Failed to flush the L2 table cache: No space left on device
131 qemu-io: Failed to flush the L2 table cache: Input/output error
139 qemu-io: Failed to flush the L2 table cache: Input/output error
159 qemu-io: Failed to flush the L2 table cache: No space left on device
167 qemu-io: Failed to flush the L2 table cache: No space left on device
185 qemu-io: Failed to flush the L2 table cache: Input/output error
192 qemu-io: Failed to flush the L2 table cache: Input/output error
[all …]
H A D103.out8 qemu-io: can't open device TEST_DIR/t.IMGFMT: cache-size, l2-cache-size and refcount-cache-size may…
9 qemu-io: can't open device TEST_DIR/t.IMGFMT: l2-cache-size may not exceed cache-size
11 qemu-io: can't open device TEST_DIR/t.IMGFMT: cache-size, l2-cache-size and refcount-cache-size may…
12 qemu-io: can't open device TEST_DIR/t.IMGFMT: L2 cache entry size must be a power of two between 51…
13 qemu-io: can't open device TEST_DIR/t.IMGFMT: L2 cache entry size must be a power of two between 51…
14 qemu-io: can't open device TEST_DIR/t.IMGFMT: L2 cache entry size must be a power of two between 51…
33 === Testing minimal L2 cache and COW ===
H A D060.out3 === Testing L2 reference into L1 ===
24 extended l2: false
59 === Testing cluster data reference into inactive L2 table ===
75 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with inactive L2 ta…
110 qcow2: Marking image as corrupt: Preventing invalid write on metadata (overlaps with active L2 tabl…
129 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruptio…
134 qcow2: Marking image as corrupt: L2 table offset 0x42a00 unaligned (L1 index: 0); further corruptio…
137 === Testing unaligned L2 entry ===
142 …g image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0);…
150 …g image as corrupt: Cluster allocation offset 0x52a00 unaligned (L2 offset: 0x40000, L2 index: 0);…
[all …]
H A D092.out10 == Invalid L2 table size ==
12 qemu-io: can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
13 qemu-io: can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
14 qemu-io: can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
15 qemu-io: can't open device TEST_DIR/t.qcow: L2 table size must be between 512 and 64k
H A D137.out19 qemu-io: cache-size, l2-cache-size and refcount-cache-size may not be set at the same time
20 qemu-io: l2-cache-size may not exceed cache-size
22 qemu-io: L2 cache entry size must be a power of two between 512 and the cluster size (65536)
23 qemu-io: L2 cache entry size must be a power of two between 512 and the cluster size (65536)
30 qemu-io: L2 cache size too big
42 qcow2: Marking image as corrupt: Preventing invalid allocation of L2 table at offset 0; further cor…
H A Dqed.py109 '''show [header|l1|l2 <offset>]- Show header or l1/l2 tables'''
114 elif len(args) == 2 and args[0] == 'l2':
121 '''duplicate l1|l2 - Duplicate a random table element'''
125 elif table_level == 'l2':
134 '''invalidate l1|l2 - Plant an invalid table element at random'''
138 elif table_level == 'l2':
171 err('no l2 table allocated')
199 # Copy L2 tables
H A D06072 echo "=== Testing L2 reference into L1 ==="
75 # Link first L1 entry (first L2 table) onto itself
103 # L2 table linked onto the L1 table be fixed?)
109 # Allocate L2 table
132 echo "=== Testing cluster data reference into inactive L2 table ==="
138 # The inactive L2 table remains at its old offset
165 # Write two clusters, the second one enforces creation of an L2 table after
172 # Now, corrupt the image by marking the second L2 table cluster as free.
176 # any unallocated cluster, leading to an attempt to overwrite the second L2
189 # Create L1/L2
[all …]
H A D065107 'compression-type': compression_type, 'extended-l2': False }
110 'corrupt: false', 'extended l2: false' ]
117 'compression-type': 'zlib', 'extended-l2': False }
120 'corrupt: false', 'extended l2: false' ]
129 'compression-type': 'zlib', 'extended-l2': False }
145 'compression-type': compression_type, 'extended-l2': False }
H A D242.out19 extended l2: false
46 extended l2: false
85 extended l2: false
129 extended l2: false
174 extended l2: false
H A D2714 # Test qcow2 images with extended L2 entries
57 # Compare the bitmap of an extended L2 entry against an expected value
60 entry_no="$1" # L2 entry number, starting from 0
78 printf "L2 entry #%d: 0x%016x %016x\n" "$entry_no" "$entry" "$bitmap"
235 # write operation need COW or changes to their L2 metadata and simply
554 # A full discard should clear the L2 entry completely. However
569 # Test that corrupted L2 entries are detected in both read and write
573 echo "### Corrupted L2 entries - $corruption_test_cmd test (allocated) ###"
578 # The 'cluster is zero' bit is unused in extended L2 entries so
598 # Corrupt the L2 entry from cluster #1
[all …]
/qemu/tests/unit/
H A Dtest-hbitmap.c20 #define L2 (BITS_PER_LONG * L1) macro
21 #define L3 (BITS_PER_LONG * L2)
245 hbitmap_test_check(data, L2 - 1); in test_hbitmap_iter_partial()
246 hbitmap_test_check(data, L2); in test_hbitmap_iter_partial()
247 hbitmap_test_check(data, L2 + 1); in test_hbitmap_iter_partial()
248 hbitmap_test_check(data, L2 + L1); in test_hbitmap_iter_partial()
249 hbitmap_test_check(data, L2 + L1 * 2 - 1); in test_hbitmap_iter_partial()
250 hbitmap_test_check(data, L2 * 2 - 1); in test_hbitmap_iter_partial()
251 hbitmap_test_check(data, L2 * 2); in test_hbitmap_iter_partial()
252 hbitmap_test_check(data, L2 * 2 + 1); in test_hbitmap_iter_partial()
[all …]
/qemu/docs/
H A Dqcow2-cache.txt1 qcow2 L2/refcount cache configuration
15 This document attempts to give an overview of the L2 and refcount
36 The L2 tables
40 called the L1 and L2 tables.
45 There can be many L2 tables, depending on how much space has been
48 corresponding L2 table to find out where that data is located. Since
50 an L2 cache in memory to speed up disk access.
52 The size of the L2 cache can be configured, and setting the right
61 L1/L2 tables described above.
74 aforementioned L2 cache, and its size can also be configured.
[all …]
/qemu/block/
H A Dqed-l2-cache.c2 * QEMU Enhanced Disk Format L2 Cache
15 * L2 table cache usage is as follows:
17 * An open image has one L2 table cache that is used to avoid accessing the
18 * image file for recently referenced L2 tables.
22 * the L1 and L2 tables which store cluster offsets. It is here where the L2
23 * table cache serves up recently referenced L2 tables.
25 * If there is a cache miss, that L2 table is read from the image file and
26 * committed to the cache. Subsequent accesses to that L2 table will be served
29 * L2 tables are also committed to the cache when new L2 tables are allocated
30 * in the image file. Since the L2 table cache is write-through, the new L2
[all …]
H A Dqed-cluster.c22 * @table: L2 table
68 * @request: L2 cache entry
77 * If the L2 table exists, request->l2_table points to the L2 table cache entry
79 * entry is exposed in this way to avoid callers having to read the L2 table
86 * On failure QED_CLUSTER_L2 or QED_CLUSTER_L1 is returned for missing L2 or L1
101 /* Limit length to L2 boundary. Requests are broken up at the L2 boundary in qed_find_cluster()
102 * so that a request acts on one L2 table at a time. in qed_find_cluster()
H A Dqcow2-cluster.c200 * @offset: A guest offset, used to calculate what slice of the L2
202 * @l2_offset: Offset to the L2 table in the image file.
203 * @l2_slice: Location to store the pointer to the L2 slice.
205 * Loads a L2 slice into memory (L2 slices are the parts of L2 tables
207 * the cache is used; otherwise the L2 slice is loaded from the image
266 * Allocate a new l2 entry in the file. If l1_index points to an already
267 * used entry in the L2 table (i.e. we are doing a copy on write for the L2
268 * table) copy the contents of the old L2 table into the newly allocated one.
286 /* allocate a new l2 entry */ in l2_allocate()
300 "allocation of L2 table at offset 0"); in l2_allocate()
[all …]
H A Dqed.h34 * | L2 table | ... | L2 table |
41 * The L1 table is fixed size and always present. L2 tables are allocated on
90 uint32_t table_size; /* for L1 and L2 tables, in clusters */
109 /* The L2 cache is a simple write-through cache for L2 structures */
146 int find_cluster_ret; /* used for L1/L2 update */
162 L2TableCache l2_cache; /* l2 table cache */
181 QED_CLUSTER_L2, /* cluster missing in L2 */
191 * L2 cache functions
H A Dqcow2.h93 /* L2 entry bitmap with all allocation bits set */
95 /* L2 entry bitmap with all "read as zeroes" bits set */
98 /* Size of normal and extended L2 entries */
141 #define QCOW2_OPT_OVERLAP_ACTIVE_L2 "overlap-check.active-l2"
146 #define QCOW2_OPT_OVERLAP_INACTIVE_L2 "overlap-check.inactive-l2"
149 #define QCOW2_OPT_L2_CACHE_SIZE "l2-cache-size"
150 #define QCOW2_OPT_L2_CACHE_ENTRY_SIZE "l2-cache-entry-size"
440 * that need to have their L2 table entries updated (because they are
441 * newly allocated or need changes in their L2 bitmaps)
485 * If the image has extended L2 entries this means that no new individual
[all …]
/qemu/target/i386/
H A Dmonitor.c73 unsigned int l1, l2; in tlb_info_32() local
85 for(l2 = 0; l2 < 1024; l2++) { in tlb_info_32()
86 cpu_physical_memory_read((pde & ~0xfff) + l2 * 4, &pte, 4); in tlb_info_32()
89 print_pte(mon, env, (l1 << 22) + (l2 << 12), in tlb_info_32()
101 unsigned int l1, l2, l3; in tlb_info_pae32() local
111 for (l2 = 0; l2 < 512; l2++) { in tlb_info_pae32()
112 cpu_physical_memory_read(pd_addr + l2 * 8, &pde, 8); in tlb_info_pae32()
117 print_pte(mon, env, (l1 << 30) + (l2 << 21), pde, in tlb_info_pae32()
125 print_pte(mon, env, (l1 << 30) + (l2 << 21) in tlb_info_pae32()
142 uint64_t l1, l2, l3, l4; in tlb_info_la48() local
[all …]
/qemu/target/mips/tcg/
H A Dloong_translate.c32 TCGLabel *l1, *l2, *l3; in gen_lext_DIV_G() local
42 l2 = gen_new_label(); in gen_lext_DIV_G()
57 tcg_gen_brcondi_tl(TCG_COND_NE, t0, is_double ? LLONG_MIN : INT_MIN, l2); in gen_lext_DIV_G()
58 tcg_gen_brcondi_tl(TCG_COND_NE, t1, -1LL, l2); in gen_lext_DIV_G()
62 gen_set_label(l2); in gen_lext_DIV_G()
86 TCGLabel *l1, *l2; in gen_lext_DIVU_G() local
96 l2 = gen_new_label(); in gen_lext_DIVU_G()
108 tcg_gen_br(l2); in gen_lext_DIVU_G()
114 gen_set_label(l2); in gen_lext_DIVU_G()
133 TCGLabel *l1, *l2, *l3; in gen_lext_MOD_G() local
[all …]
/qemu/docs/interop/
H A Dqed_spec.txt9 …e. A regular cluster may be a '''data cluster''', an '''L2''', or an '''L1 table'''. L1 and L2 t…
20 uint32_t table_size; /* for L1 and L2 tables, in clusters */
73 | L2 table | ... | L2 table |
85 L1, L2, and data cluster offsets must be aligned to header.cluster_size. The following offsets hav…
87 ===L2 table offsets===
88 * 0 - unallocated. The L2 table is not yet allocated.
96 ===Unallocated L2 tables and data clusters===
99 Writes to an unallocated area cause a new data clusters to be allocated, and a new L2 table if that…
114 | L1 index | L2 index | byte offset |
134 …t is an inconsistency to have a cluster referenced more than once by L1 or L2 tables. A cluster h…
[all …]
H A Dqcow2.rst47 Note: if the image has Extended L2 Entries then cluster_bits
58 larger than 128 GB (37 bits). Meanwhile, L1/L2
100 may be inconsistent, make sure to scan L1/L2
126 Bit 4: Extended L2 Entries. If this bit is set then
127 L2 table entries use an extended format that
129 Extended L2 Entries section for more details.
168 of only setting the zero flag in the L2 table
471 large), note that some qcow2 metadata such as L1/L2 tables must point
515 guest clusters to host clusters. They are called L1 and L2 table.
518 clusters, however it must be contiguous in the image file. L2 tables are
[all …]

1234567