Home | History | Annotate | Download | only in target-i386

Lines Matching refs:vm_id

199 static char *hax_vm_devfs_string(int vm_id)
203 if (vm_id > MAX_VM_ID)
212 sprintf(name, "\\\\.\\hax_vm%02d", vm_id);
217 static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id)
221 if (vm_id > MAX_VM_ID || vcpu_id > MAX_VCPU_ID)
223 dprint("Too big vm id %x or vcpu id %x\n", vm_id, vcpu_id);
229 sprintf(name, "\\\\.\\hax_vm%02d_vcpu%02d", vm_id, vcpu_id);
237 int vm_id = 0;
249 &vm_id, sizeof(vm_id),
256 *vmid = vm_id;
260 hax_fd hax_host_open_vm(struct hax_state *hax, int vm_id)
265 vm_name = hax_vm_devfs_string(vm_id);