Lines Matching defs:id

482 static void kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id)
487 vcpu->vcpu_id = id;
501 /* Fill the stats id string for the vcpu */
503 task_pid_nr(current), id);
1575 hash_add(slots->id_hash, &new->id_node[idx], new->id);
1809 dest->id = src->id;
1996 static bool kvm_check_memslot_overlap(struct kvm_memslots *slots, int id,
2002 if (iter.slot->id != id)
2025 int as_id, id;
2033 id = (u16)mem->slot;
2051 if (as_id >= kvm_arch_nr_memslot_as_ids(kvm) || id >= KVM_MEM_SLOTS_NUM)
2064 old = id_to_memslot(slots, id);
2106 kvm_check_memslot_overlap(slots, id, base_gfn, base_gfn + npages))
2115 new->id = id;
2166 * @log: slot id and address to which we copy the log
2174 int i, as_id, id;
2186 id = (u16)log->slot;
2187 if (as_id >= kvm_arch_nr_memslot_as_ids(kvm) || id >= KVM_USER_MEM_SLOTS)
2191 *memslot = id_to_memslot(slots, id);
2216 * @log: slot id and address to which we copy the log
2237 int i, as_id, id;
2248 id = (u16)log->slot;
2249 if (as_id >= kvm_arch_nr_memslot_as_ids(kvm) || id >= KVM_USER_MEM_SLOTS)
2253 memslot = id_to_memslot(slots, id);
2308 * @log: slot id and address to which we copy the log
2341 * @log: slot id and address from which to fetch the bitmap of dirty pages
2348 int as_id, id;
2360 id = (u16)log->slot;
2361 if (as_id >= kvm_arch_nr_memslot_as_ids(kvm) || id >= KVM_USER_MEM_SLOTS)
2368 memslot = id_to_memslot(slots, id);
3647 u32 slot = (memslot->as_id << 16) | memslot->id;
4244 static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id)
4250 if (id >= KVM_MAX_VCPU_IDS)
4259 r = kvm_arch_vcpu_precreate(kvm, id);
4282 kvm_vcpu_init(vcpu, kvm, id);
4290 id, kvm->dirty_ring_size);
4303 if (kvm_get_vcpu_by_id(kvm, id)) {