Searched refs:kvm_fd (Results 1 – 3 of 3) sorted by relevance
/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() 94 vm->fd = ioctl(vm->kvm_fd, KVM_CREATE_VM, NULL); in vm_open() 128 int kvm_fd; in vm_create() local 372 close(vmp->kvm_fd); in kvm_vm_release() [all …]
|
D | kvm_util_internal.h | 47 int kvm_fd; member
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 722 int kvm_fd; in kvm_get_supported_cpuid() local 728 kvm_fd = open(KVM_DEV_PATH, O_RDONLY); in kvm_get_supported_cpuid() 729 if (kvm_fd < 0) in kvm_get_supported_cpuid() 732 ret = ioctl(kvm_fd, KVM_GET_SUPPORTED_CPUID, cpuid); in kvm_get_supported_cpuid() 736 close(kvm_fd); in kvm_get_supported_cpuid() 1011 r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, &nmsrs); in kvm_get_num_msrs() 1036 r = ioctl(vm->kvm_fd, KVM_GET_MSR_INDEX_LIST, list); in vcpu_save_state()
|