Searched refs:vm_id (Results 1 – 4 of 4) sorted by relevance
/external/qemu/target-i386/ |
D | hax-darwin.c | 116 static char *hax_vm_devfs_string(int vm_id) in hax_vm_devfs_string() argument 120 if (vm_id > MAX_VM_ID) in hax_vm_devfs_string() 129 sprintf(name, "/dev/hax_vm/vm%02d", vm_id); in hax_vm_devfs_string() 134 static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id) in hax_vcpu_devfs_string() argument 138 if (vm_id > MAX_VM_ID || vcpu_id > MAX_VCPU_ID) in hax_vcpu_devfs_string() 140 dprint("Too big vm id %x or vcpu id %x\n", vm_id, vcpu_id); in hax_vcpu_devfs_string() 148 sprintf(name, "/dev/hax_vm%02d/vcpu%02d", vm_id, vcpu_id); in hax_vcpu_devfs_string() 156 int vm_id = 0; in hax_host_create_vm() local 164 ret = ioctl(hax->fd, HAX_IOCTL_CREATE_VM, &vm_id); in hax_host_create_vm() 165 *vmid = vm_id; in hax_host_create_vm() [all …]
|
D | hax-windows.c | 196 static char *hax_vm_devfs_string(int vm_id) in hax_vm_devfs_string() argument 200 if (vm_id > MAX_VM_ID) in hax_vm_devfs_string() 209 sprintf(name, "\\\\.\\hax_vm%02d", vm_id); in hax_vm_devfs_string() 214 static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id) in hax_vcpu_devfs_string() argument 218 if (vm_id > MAX_VM_ID || vcpu_id > MAX_VCPU_ID) in hax_vcpu_devfs_string() 220 dprint("Too big vm id %x or vcpu id %x\n", vm_id, vcpu_id); in hax_vcpu_devfs_string() 226 sprintf(name, "\\\\.\\hax_vm%02d_vcpu%02d", vm_id, vcpu_id); in hax_vcpu_devfs_string() 234 int vm_id = 0; in hax_host_create_vm() local 246 &vm_id, sizeof(vm_id), in hax_host_create_vm() 253 *vmid = vm_id; in hax_host_create_vm() [all …]
|
D | hax-i386.h | 75 int hax_host_create_vm(struct hax_state *hax, int *vm_id); 76 hax_fd hax_host_open_vm(struct hax_state *hax, int vm_id);
|
D | hax-all.c | 279 int vm_id = 0, ret; in hax_vm_create() local 292 ret = hax_host_create_vm(hax, &vm_id); in hax_vm_create() 297 vm->id = vm_id; in hax_vm_create() 298 vm->fd = hax_host_open_vm(hax, vm_id); in hax_vm_create()
|