Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dguest_modes.c64 int kvm_fd, vm_fd; in guest_modes_append_default() local
67 kvm_fd = open_kvm_dev_path_or_exit(); in guest_modes_append_default()
68 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, NULL); in guest_modes_append_default()
72 close(kvm_fd); in guest_modes_append_default()
Dkvm_util.c111 int kvm_fd; in kvm_check_cap() local
113 kvm_fd = open_kvm_dev_path_or_exit(); in kvm_check_cap()
114 ret = __kvm_ioctl(kvm_fd, KVM_CHECK_EXTENSION, (void *)cap); in kvm_check_cap()
117 close(kvm_fd); in kvm_check_cap()
133 vm->kvm_fd = _open_kvm_dev_path_or_exit(O_RDWR); in vm_open()
137 vm->fd = __kvm_ioctl(vm->kvm_fd, KVM_CREATE_VM, (void *)vm->type); in vm_open()
567 ret = close(vmp->kvm_fd); in kvm_vm_release()
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c610 int kvm_fd; in __vm_xsave_require_permission() local
621 kvm_fd = open_kvm_dev_path_or_exit(); in __vm_xsave_require_permission()
622 rc = __kvm_ioctl(kvm_fd, KVM_GET_DEVICE_ATTR, &attr); in __vm_xsave_require_permission()
623 close(kvm_fd); in __vm_xsave_require_permission()
689 int kvm_fd; in kvm_get_supported_cpuid() local
695 kvm_fd = open_kvm_dev_path_or_exit(); in kvm_get_supported_cpuid()
697 kvm_ioctl(kvm_fd, KVM_GET_SUPPORTED_CPUID, cpuid); in kvm_get_supported_cpuid()
699 close(kvm_fd); in kvm_get_supported_cpuid()
731 int r, kvm_fd; in kvm_get_feature_msr() local
735 kvm_fd = open_kvm_dev_path_or_exit(); in kvm_get_feature_msr()
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/include/
Dkvm_util_base.h70 int kvm_fd; member
201 #define __kvm_ioctl(kvm_fd, cmd, arg) \ argument
202 kvm_do_ioctl(kvm_fd, cmd, arg)
205 #define _kvm_ioctl(kvm_fd, cmd, name, arg) \ argument
207 int ret = __kvm_ioctl(kvm_fd, cmd, arg); \
212 #define kvm_ioctl(kvm_fd, cmd, arg) \ argument
213 _kvm_ioctl(kvm_fd, cmd, #cmd, arg)
/Linux-v6.1/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c467 int kvm_fd, vm_fd, vcpu_fd, err; in aarch64_get_supported_page_sizes() local
474 kvm_fd = open_kvm_dev_path_or_exit(); in aarch64_get_supported_page_sizes()
475 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, (void *)(unsigned long)ipa); in aarch64_get_supported_page_sizes()
495 close(kvm_fd); in aarch64_get_supported_page_sizes()
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/
Dhyperv_cpuid.c124 ret = __kvm_ioctl(vm->kvm_fd, KVM_GET_SUPPORTED_HV_CPUID, &cpuid); in test_hv_cpuid_e2big()
Ducna_injection_test.c290 kvm_ioctl(vm->kvm_fd, KVM_X86_GET_MCE_CAP_SUPPORTED, in main()