Searched refs:vmp (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 416 void kvm_vm_restart(struct kvm_vm *vmp, int perm) in kvm_vm_restart() argument 421 vm_open(vmp, perm); in kvm_vm_restart() 422 if (vmp->has_irqchip) in kvm_vm_restart() 423 vm_create_irqchip(vmp); in kvm_vm_restart() 425 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart() 426 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, ®ion->region); in kvm_vm_restart() 599 void kvm_vm_release(struct kvm_vm *vmp) in kvm_vm_release() argument 604 list_for_each_entry_safe(vcpu, tmp, &vmp->vcpus, list) in kvm_vm_release() 605 vm_vcpu_rm(vmp, vcpu); in kvm_vm_release() 607 ret = close(vmp->fd); in kvm_vm_release() [all …]
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 92 void kvm_vm_free(struct kvm_vm *vmp); 93 void kvm_vm_restart(struct kvm_vm *vmp, int perm); 94 void kvm_vm_release(struct kvm_vm *vmp);
|