Searched refs:kvm_fd (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 656 int kvm_fd; in kvm_get_supported_cpuid() local 662 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_supported_cpuid() 663 if (kvm_fd < 0) in kvm_get_supported_cpuid() 666 ret = ioctl(kvm_fd, KVM_GET_SUPPORTED_CPUID, cpuid); in kvm_get_supported_cpuid() 670 close(kvm_fd); in kvm_get_supported_cpuid() 921 static int kvm_get_num_msrs_fd(int kvm_fd) in kvm_get_num_msrs_fd() argument 927 r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs); in kvm_get_num_msrs_fd() 936 return kvm_get_num_msrs_fd(vm->kvm_fd); in kvm_get_num_msrs() 942 int nmsrs, r, kvm_fd; in kvm_get_msr_index_list() local 944 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_msr_index_list() [all …]
|
/Linux-v5.10/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 51 int kvm_fd; in kvm_check_cap() local 53 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_check_cap() 54 if (kvm_fd < 0) in kvm_check_cap() 57 ret = ioctl(kvm_fd, KVM_CHECK_EXTENSION, cap); in kvm_check_cap() 61 close(kvm_fd); in kvm_check_cap() 119 vm->kvm_fd = open(KVM_DEV_PATH, perm); in vm_open() 120 if (vm->kvm_fd < 0) in vm_open() 128 vm->fd = ioctl(vm->kvm_fd, KVM_CREATE_VM, vm->type); in vm_open() 462 close(vmp->kvm_fd); in kvm_vm_release() 464 " vmp->kvm_fd: %i rc: %i errno: %i", vmp->kvm_fd, ret, errno); in kvm_vm_release()
|
D | kvm_util_internal.h | 36 int kvm_fd; member
|