Home
last modified time | relevance | path

Searched refs:kvm_fd (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/kvm/lib/
Dkvm_util.c50 int kvm_fd; in kvm_check_cap() local
52 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_check_cap()
53 if (kvm_fd < 0) in kvm_check_cap()
56 ret = ioctl(kvm_fd, KVM_CHECK_EXTENSION, cap); in kvm_check_cap()
60 close(kvm_fd); in kvm_check_cap()
90 vm->kvm_fd = open(KVM_DEV_PATH, perm); in vm_open()
91 if (vm->kvm_fd < 0) in vm_open()
99 vm->fd = ioctl(vm->kvm_fd, KVM_CREATE_VM, vm->type); in vm_open()
438 close(vmp->kvm_fd); in kvm_vm_release()
440 " vmp->kvm_fd: %i rc: %i errno: %i", vmp->kvm_fd, ret, errno); in kvm_vm_release()
Dkvm_util_internal.h47 int kvm_fd; member
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c721 int kvm_fd; in kvm_get_supported_cpuid() local
727 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_supported_cpuid()
728 if (kvm_fd < 0) in kvm_get_supported_cpuid()
731 ret = ioctl(kvm_fd, KVM_GET_SUPPORTED_CPUID, cpuid); in kvm_get_supported_cpuid()
735 close(kvm_fd); in kvm_get_supported_cpuid()
1010 r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs); in kvm_get_num_msrs()
1043 r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, list); in vcpu_save_state()