Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/virt/kvm/
Dkvm_main.c633 slots->id_to_index[i] = -1; in kvm_alloc_memslots()
962 if (WARN_ON(slots->id_to_index[memslot->id] == -1)) in kvm_memslot_delete()
970 for (i = slots->id_to_index[memslot->id]; i < slots->used_slots; i++) { in kvm_memslot_delete()
972 slots->id_to_index[mslots[i].id] = i; in kvm_memslot_delete()
975 slots->id_to_index[memslot->id] = -1; in kvm_memslot_delete()
1000 if (WARN_ON_ONCE(slots->id_to_index[memslot->id] == -1) || in kvm_memslot_move_backward()
1009 for (i = slots->id_to_index[memslot->id]; i < slots->used_slots - 1; i++) { in kvm_memslot_move_backward()
1017 slots->id_to_index[mslots[i].id] = i; in kvm_memslot_move_backward()
1044 slots->id_to_index[mslots[i].id] = i; in kvm_memslot_move_forward()
1110 slots->id_to_index[memslot->id] = i; in update_memslots()
/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h440 short id_to_index[KVM_MEM_SLOTS_NUM]; member
653 int index = slots->id_to_index[id]; in id_to_memslot()