Home
last modified time | relevance | path

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

/openbmc/qemu/accel/kvm/
H A Dkvm-all.c179 static bool kvm_slots_grow(KVMMemoryListener *kml, unsigned int nr_slots_new) in kvm_slots_grow() argument
184 if (nr_slots_new > kvm_state->nr_slots) { in kvm_slots_grow()
185 nr_slots_new = kvm_state->nr_slots; in kvm_slots_grow()
188 if (cur >= nr_slots_new) { in kvm_slots_grow()
194 slots = g_new0(KVMSlot, nr_slots_new); in kvm_slots_grow()
197 slots = g_renew(KVMSlot, kml->slots, nr_slots_new); in kvm_slots_grow()
203 memset(&slots[cur], 0x0, sizeof(slots[0]) * (nr_slots_new - cur)); in kvm_slots_grow()
206 for (i = cur; i < nr_slots_new; i++) { in kvm_slots_grow()
211 kml->nr_slots_allocated = nr_slots_new; in kvm_slots_grow()
212 trace_kvm_slots_grow(cur, nr_slots_new); in kvm_slots_grow()