Lines Matching defs:id
119 uint32_t id = 0, peerid = imsg->hdr.peerid;
153 res = vmm_start_vm(imsg, &id, &pid);
155 if (res == 0 && (id = vm_id2vmid(id, NULL)) == 0)
162 id = vid.vid_id;
165 DPRINTF("%s: recv'ed TERMINATE_VM for %d", __func__, id);
169 if (id == 0) {
171 } else if ((vm = vm_getbyvmid(id)) != NULL) {
179 " to vm %d", __func__, id);
248 id = vid.vid_id;
249 if ((vm = vm_getbyvmid(id)) == NULL) {
261 id = vid.vid_id;
262 if ((vm = vm_getbyvmid(id)) == NULL) {
274 id = vid.vid_id;
275 if ((vm = vm_getbyvmid(id)) == NULL) {
306 res = vmm_start_vm(imsg, &id, &pid);
308 if ((id = vm_id2vmid(id, NULL)) == 0)
348 if (id == 0)
349 id = imsg->hdr.peerid;
356 vmr.vmr_id = id;
415 " (id %d)", __func__,
640 * id: Returns the VM id as reported by the kernel and obtained from the VM.
648 vmm_start_vm(struct imsg *imsg, uint32_t *id, pid_t *pid)
729 /* Read back the kernel-generated vm id from the child */
732 log_debug("%s: failed to receive vm id from vm %s",
739 /* Check for an invalid id. This indicates child failure. */
743 *id = vcp->vcp_id;
818 * imsg: the received imsg including the peer id.
878 log_debug("%s: terminated vm %s (id %d)", __func__,