Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/lib/
Dkvm_util.c255 void kvm_vm_restart(struct kvm_vm *vmp, int perm) in kvm_vm_restart() argument
259 vm_open(vmp, perm); in kvm_vm_restart()
260 if (vmp->has_irqchip) in kvm_vm_restart()
261 vm_create_irqchip(vmp); in kvm_vm_restart()
263 for (region = vmp->userspace_mem_region_head; region; in kvm_vm_restart()
265 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, &region->region); in kvm_vm_restart()
427 void kvm_vm_release(struct kvm_vm *vmp) in kvm_vm_release() argument
431 while (vmp->vcpu_head) in kvm_vm_release()
432 vm_vcpu_rm(vmp, vmp->vcpu_head->id); in kvm_vm_release()
434 ret = close(vmp->fd); in kvm_vm_release()
[all …]
/tools/testing/selftests/kvm/include/
Dkvm_util.h73 void kvm_vm_free(struct kvm_vm *vmp);
74 void kvm_vm_restart(struct kvm_vm *vmp, int perm);
75 void kvm_vm_release(struct kvm_vm *vmp);