Searched refs:kvm_fd (Results 1 – 3 of 3) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 720 int kvm_fd; in kvm_get_supported_cpuid() local 726 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_supported_cpuid() 727 if (kvm_fd < 0) in kvm_get_supported_cpuid() 730 ret = ioctl(kvm_fd, KVM_GET_SUPPORTED_CPUID, cpuid); in kvm_get_supported_cpuid() 734 close(kvm_fd); in kvm_get_supported_cpuid() 1026 static int kvm_get_num_msrs_fd(int kvm_fd) in kvm_get_num_msrs_fd() argument 1032 r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs); in kvm_get_num_msrs_fd() 1041 return kvm_get_num_msrs_fd(vm->kvm_fd); in kvm_get_num_msrs() 1047 int nmsrs, r, kvm_fd; in kvm_get_msr_index_list() local 1049 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_msr_index_list() [all …]
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 50 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()
|
D | kvm_util_internal.h | 47 int kvm_fd; member
|