Home
last modified time | relevance | path

Searched refs:l2_offset (Results 1 – 13 of 13) sorted by relevance

/openbmc/qemu/tests/qemu-iotests/
H A D06063 l2_offset=262144 # 0x40000 (XXX: just an assumption)
110 truncate -s "$(($l2_offset+65536))" "$TEST_IMG"
115 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x02\x00\x00"
170 poke_file "$TEST_IMG" "$l2_offset" "\x00\x00\x00\x00\x00\x00\x00\x00"
215 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x05\x2a\x00"
223 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x05\x2a\x01"
239 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x05\x2a\x00"
247 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x05\x2a\x00"
256 poke_file "$TEST_IMG" "$l2_offset" "\x80\x00\x00\x00\x00\x05\x2a\x00"
257 poke_file "$TEST_IMG" "$(($l2_offset+8))" "\x80\x00\x00\x00\x00\x06\x2a\x00"
[all …]
H A Dqed.py173 l2_offset = qed.l1_table[l1_index]
174 l2_table = qed.read_table(l2_offset)
178 qed.write_table(l2_offset, l2_table)
200 for l2_offset in qed.l1_table:
201 if l2_offset == 0:
203 l2_table = qed.read_table(l2_offset)
204 out.seek(l2_offset)
H A D27148 l2_offset=$((0x40000))
64 offset=$(($l2_offset + $entry_no * 16))
540 poke_file "$TEST_IMG" $(($l2_offset+8)) "\x00\x00"
583 poke_file "$TEST_IMG" $(($l2_offset+7)) "\x01"
599 poke_file_be "$TEST_IMG" $(($l2_offset+24)) 4 1
617 poke_file "$TEST_IMG" $(($l2_offset+7)) "\x01"
633 poke_file "$TEST_IMG" $(($l2_offset+15)) "\x01"
646 poke_file_be "$TEST_IMG" $(($l2_offset+24)) 8 $(((1 << 32) | 1))
659 poke_file "$TEST_IMG" $(($l2_offset+11)) "\x01\x80"
686 poke_file "$TEST_IMG" "$(($l2_offset+6))" "\x02"
[all …]
H A D108274 l2_offset=$(peek_file_be "$TEST_IMG" $l1_offset 8)
275 l2_offset=$((l2_offset & 0x00fffffffffffe00))
277 $((l2_offset + 4096 / 512 * 8)) 8)
/openbmc/qemu/block/
H A Dqed-cluster.c95 uint64_t l2_offset; in qed_find_cluster() local
106 l2_offset = s->l1_table->offsets[qed_l1_index(s, pos)]; in qed_find_cluster()
107 if (qed_offset_is_unalloc_cluster(l2_offset)) { in qed_find_cluster()
111 if (!qed_check_table_offset(s, l2_offset)) { in qed_find_cluster()
116 ret = qed_read_l2_table(s, request, l2_offset); in qed_find_cluster()
H A Dqcow2-cluster.c212 uint64_t l2_offset, uint64_t **l2_slice) in l2_load() argument
218 return qcow2_cache_get(bs, s->l2_table_cache, l2_offset + start_of_slice, in l2_load()
279 int64_t l2_offset; in l2_allocate() local
288 l2_offset = qcow2_alloc_clusters(bs, s->l2_size * l2_entry_size(s)); in l2_allocate()
289 if (l2_offset < 0) { in l2_allocate()
290 ret = l2_offset; in l2_allocate()
295 assert((l2_offset & L1E_OFFSET_MASK) == l2_offset); in l2_allocate()
298 if (l2_offset == 0) { in l2_allocate()
318 l2_offset + slice * slice_size2, in l2_allocate()
360 s->l1_table[l1_index] = l2_offset | QCOW_OFLAG_COPIED; in l2_allocate()
[all …]
H A Dqcow.c365 int64_t l2_offset; in get_cluster_offset() local
372 l2_offset = s->l1_table[l1_index]; in get_cluster_offset()
374 if (!l2_offset) { in get_cluster_offset()
378 l2_offset = bdrv_co_getlength(bs->file->bs); in get_cluster_offset()
379 if (l2_offset < 0) { in get_cluster_offset()
380 return l2_offset; in get_cluster_offset()
383 l2_offset = QEMU_ALIGN_UP(l2_offset, s->cluster_size); in get_cluster_offset()
385 s->l1_table[l1_index] = l2_offset; in get_cluster_offset()
386 tmp = cpu_to_be64(l2_offset); in get_cluster_offset()
397 if (l2_offset == s->l2_cache_offsets[i]) { in get_cluster_offset()
[all …]
H A Dqcow2-refcount.c1248 uint64_t *l1_table, *l2_slice, l2_offset, entry, l1_size2, refcount; in qcow2_update_snapshot_refcount() local
1291 l2_offset = l1_table[i]; in qcow2_update_snapshot_refcount()
1292 if (l2_offset) { in qcow2_update_snapshot_refcount()
1293 old_l2_offset = l2_offset; in qcow2_update_snapshot_refcount()
1294 l2_offset &= L1E_OFFSET_MASK; in qcow2_update_snapshot_refcount()
1296 if (offset_into_cluster(s, l2_offset)) { in qcow2_update_snapshot_refcount()
1299 l2_offset, i); in qcow2_update_snapshot_refcount()
1306 l2_offset + slice * slice_size2, in qcow2_update_snapshot_refcount()
1351 offset, l2_offset, l2_index); in qcow2_update_snapshot_refcount()
1400 ret = qcow2_update_cluster_refcount(bs, l2_offset >> in qcow2_update_snapshot_refcount()
[all …]
H A Dvmdk.c187 unsigned int l2_offset; member
1537 ((int64_t)m_data->l2_offset * 512) in vmdk_L2update()
1544 m_data->l2_offset = extent->l1_backup_table[m_data->l1_index]; in vmdk_L2update()
1546 ((int64_t)m_data->l2_offset * 512) in vmdk_L2update()
1588 unsigned int l1_index, l2_offset, l2_index; in get_cluster_offset() local
1617 l2_offset = 0; in get_cluster_offset()
1634 l2_offset = (unsigned int)(l2_offset_u64); in get_cluster_offset()
1638 l2_offset = ((uint32_t *)extent->l1_table)[l1_index]; in get_cluster_offset()
1640 if (!l2_offset) { in get_cluster_offset()
1644 if (l2_offset == extent->l2_cache_offsets[i]) { in get_cluster_offset()
[all …]
H A Dqed.c1008 uint64_t l2_offset = l2_table->offset; in qed_aio_write_l1_update() local
1022 acb->request.l2_table = qed_find_l2_cache_entry(&s->l2_cache, l2_offset); in qed_aio_write_l1_update()
/openbmc/qemu/docs/interop/
H A Dqed_spec.txt122 l2_offset = l1_table[l1_index]
123 l2_table = load_table(l2_offset)
/openbmc/linux/arch/x86/include/asm/
H A Dkvm_host.h2160 u64 kvm_calc_nested_tsc_offset(u64 l1_offset, u64 l2_offset, u64 l2_multiplier);
/openbmc/linux/arch/x86/kvm/
H A Dx86.c2590 u64 kvm_calc_nested_tsc_offset(u64 l1_offset, u64 l2_offset, u64 l2_multiplier) in kvm_calc_nested_tsc_offset() argument
2600 nested_offset += l2_offset; in kvm_calc_nested_tsc_offset()