Searched refs:new_l1_size (Results 1 – 2 of 2) sorted by relevance
34 int new_l1_size, new_l1_size2, ret, i; in qcow2_grow_l1_table() local39 new_l1_size = s->l1_size; in qcow2_grow_l1_table()40 if (min_size <= new_l1_size) in qcow2_grow_l1_table()42 if (new_l1_size == 0) { in qcow2_grow_l1_table()43 new_l1_size = 1; in qcow2_grow_l1_table()45 while (min_size > new_l1_size) { in qcow2_grow_l1_table()46 new_l1_size = (new_l1_size * 3 + 1) / 2; in qcow2_grow_l1_table()49 printf("grow l1_table from %d to %d\n", s->l1_size, new_l1_size); in qcow2_grow_l1_table()52 new_l1_size2 = sizeof(uint64_t) * new_l1_size; in qcow2_grow_l1_table()75 cpu_to_be32w((uint32_t*)data, new_l1_size); in qcow2_grow_l1_table()[all …]
1113 int ret, new_l1_size; in qcow2_truncate() local1129 new_l1_size = size_to_l1(s, offset); in qcow2_truncate()1130 ret = qcow2_grow_l1_table(bs, new_l1_size); in qcow2_truncate()1143 s->l1_vm_state_index = new_l1_size; in qcow2_truncate()