Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/kvm/lib/
H A 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()
H A Dkvm_util.c117 int kvm_fd; in kvm_check_cap() local
119 kvm_fd = open_kvm_dev_path_or_exit(); in kvm_check_cap()
120 ret = __kvm_ioctl(kvm_fd, KVM_CHECK_EXTENSION, (void *)cap); in kvm_check_cap()
123 close(kvm_fd); in kvm_check_cap()
139 vm->kvm_fd = _open_kvm_dev_path_or_exit(O_RDWR); in vm_open()
143 vm->fd = __kvm_ioctl(vm->kvm_fd, KVM_CREATE_VM, (void *)vm->type); in vm_open()
672 ret = close(vmp->kvm_fd); in kvm_vm_release()
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c630 int kvm_fd; in kvm_get_supported_cpuid() local
636 kvm_fd = open_kvm_dev_path_or_exit(); in kvm_get_supported_cpuid()
641 close(kvm_fd); in kvm_get_supported_cpuid()
687 int r, kvm_fd; in kvm_get_feature_msr() local
696 close(kvm_fd); in kvm_get_feature_msr()
702 int kvm_fd; in __vm_xsave_require_permission() local
719 close(kvm_fd); in __vm_xsave_require_permission()
876 int kvm_fd, r; in __kvm_get_msr_index_list() local
898 close(kvm_fd); in __kvm_get_msr_index_list()
1191 int kvm_fd; in kvm_get_supported_hv_cpuid() local
[all …]
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_base.h93 int kvm_fd; member
260 #define __kvm_ioctl(kvm_fd, cmd, arg) \ argument
261 kvm_do_ioctl(kvm_fd, cmd, arg)
264 #define _kvm_ioctl(kvm_fd, cmd, name, arg) \ argument
266 int ret = __kvm_ioctl(kvm_fd, cmd, arg); \
271 #define kvm_ioctl(kvm_fd, cmd, arg) \ argument
272 _kvm_ioctl(kvm_fd, cmd, #cmd, arg)
/openbmc/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c499 int kvm_fd, vm_fd, vcpu_fd, err; in aarch64_get_supported_page_sizes() local
506 kvm_fd = open_kvm_dev_path_or_exit(); in aarch64_get_supported_page_sizes()
507 vm_fd = __kvm_ioctl(kvm_fd, KVM_CREATE_VM, (void *)(unsigned long)ipa); in aarch64_get_supported_page_sizes()
527 close(kvm_fd); in aarch64_get_supported_page_sizes()
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c77 int kvm_fd; member
415 vcpu->kvm_fd = cpu->kvm_fd; in kvm_park_vcpu()
422 int kvm_fd = -ENOENT; in kvm_unpark_vcpu() local
427 kvm_fd = cpu->kvm_fd; in kvm_unpark_vcpu()
435 return kvm_fd; in kvm_unpark_vcpu()
442 int kvm_fd; in kvm_create_vcpu() local
446 if (kvm_fd < 0) { in kvm_create_vcpu()
449 if (kvm_fd < 0) { in kvm_create_vcpu()
451 return kvm_fd; in kvm_create_vcpu()
455 cpu->kvm_fd = kvm_fd; in kvm_create_vcpu()
[all …]
H A Dtrace-events12 kvm_create_vcpu(int cpu_index, unsigned long arch_cpu_id, int kvm_fd) "index: %d, id: %lu, kvm fd: …
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_cpuid.c124 ret = __kvm_ioctl(vm->kvm_fd, KVM_GET_SUPPORTED_HV_CPUID, &cpuid); in test_hv_cpuid_e2big()
H A Ducna_injection_test.c276 kvm_ioctl(vm->kvm_fd, KVM_X86_GET_MCE_CAP_SUPPORTED, in main()
/openbmc/qemu/include/hw/core/
H A Dcpu.h525 int kvm_fd; member
/openbmc/qemu/tests/qtest/
H A Dmigration-test.c3759 int ret, kvm_fd = open("/dev/kvm", O_RDONLY); in kvm_dirty_ring_supported() local
3761 if (kvm_fd < 0) { in kvm_dirty_ring_supported()
3765 ret = ioctl(kvm_fd, KVM_CHECK_EXTENSION, KVM_CAP_DIRTY_LOG_RING); in kvm_dirty_ring_supported()
3766 close(kvm_fd); in kvm_dirty_ring_supported()